From c9ac6384740bc4a0d8a4bcf3d50a477d35f0d3b0 Mon Sep 17 00:00:00 2001 From: actions Date: Thu, 14 Apr 2022 19:30:40 +0000 Subject: [PATCH] Bump harvester cloud provider 0.1.11 Signed-off-by: yaocw2020 --- .../harvester-cloud-provider-0.1.1100.tgz | Bin 0 -> 2960 bytes .../0.1.1100/.helmignore | 23 ++++++ .../0.1.1100/Chart.yaml | 21 ++++++ .../0.1.1100/ci/kind-values.yaml | 3 + .../0.1.1100/questions.yml | 17 +++++ .../0.1.1100/templates/_helpers.tpl | 69 +++++++++++++++++ .../0.1.1100/templates/deployment.yaml | 53 +++++++++++++ .../0.1.1100/templates/rbac.yaml | 37 +++++++++ .../0.1.1100/values.yaml | 71 ++++++++++++++++++ index.yaml | 25 ++++++ 10 files changed, 319 insertions(+) create mode 100755 assets/harvester-cloud-provider/harvester-cloud-provider-0.1.1100.tgz create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/.helmignore create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/Chart.yaml create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/ci/kind-values.yaml create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/questions.yml create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/_helpers.tpl create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/deployment.yaml create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/rbac.yaml create mode 100755 charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/values.yaml diff --git a/assets/harvester-cloud-provider/harvester-cloud-provider-0.1.1100.tgz b/assets/harvester-cloud-provider/harvester-cloud-provider-0.1.1100.tgz new file mode 100755 index 0000000000000000000000000000000000000000..c86e1c7f8a37c4c9ae1ce6dc190b04b8a1618e4e GIT binary patch literal 2960 zcmV;B3vcuviwG0|00000|0w_~VMtOiV@ORlOnEsqVl!4S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8V+B-(IhUEbgq)b zEJNB4T8@qJyUsfA0?N0dHFWqtWX6fBt;%@cqZVl(mbuJ8)=?s7{wer-hyK1W@*Mn$A?IOr8`Q@64kkQ=*y3s|&2lDU z*Y#if!qh*kT)O`KwN565ju*H60$|hn-yf`f|Mh%-?_vGlM@gx{sZ$KPu^tRS3-Fiwaswz<#qXbaCi^pp*)n&QT`nO0RR8j9J5;h GJ^%ni&))g~ literal 0 HcmV?d00001 diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/.helmignore b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/.helmignore new file mode 100755 index 0000000..0e8a0eb --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/Chart.yaml b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/Chart.yaml new file mode 100755 index 0000000..0ad8196 --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/Chart.yaml @@ -0,0 +1,21 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Harvester Cloud Provider + catalog.cattle.io/kube-version: '>= 1.18' + catalog.cattle.io/namespace: kube-system + catalog.cattle.io/os: linux + catalog.cattle.io/rancher-version: '>= 2.6.1-0 <= 2.6.99-0' + catalog.cattle.io/release-name: harvester-cloud-provider + catalog.cattle.io/ui-component: harvester-cloud-provider + catalog.cattle.io/upstream-version: 0.1.8 +apiVersion: v2 +appVersion: v0.1.3 +description: A Helm chart for Harvester Cloud Provider +keywords: +- infrastructure +- harvester +maintainers: +- name: harvester +name: harvester-cloud-provider +type: application +version: 0.1.1100 diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/ci/kind-values.yaml b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/ci/kind-values.yaml new file mode 100755 index 0000000..2f3796b --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/ci/kind-values.yaml @@ -0,0 +1,3 @@ +replicasCount: 1 +# It's an existent but invalid kubeconfig, just for helm installation testing in kind +cloudConfigPath: "/etc/kubernetes/admin.conf" diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/questions.yml b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/questions.yml new file mode 100755 index 0000000..7f52b49 --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/questions.yml @@ -0,0 +1,17 @@ +categories: +- infrastructure +- harvester +namespace: kube-system +questions: +- variable: cloudConfigPath + label: Cloud config file path + description: "Specify the path of the cloud config." + group: "Default" + type: string + default: "/etc/kubernetes/cloud-config" +- variable: clusterName + label: Cluster name + description: "Cluster name" + group: "Default" + type: string + default: "" diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/_helpers.tpl b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/_helpers.tpl new file mode 100755 index 0000000..f637aa2 --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/_helpers.tpl @@ -0,0 +1,69 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "harvester-cloud-provider.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "harvester-cloud-provider.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "harvester-cloud-provider.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "harvester-cloud-provider.labels" -}} +helm.sh/chart: {{ include "harvester-cloud-provider.chart" . }} +{{ include "harvester-cloud-provider.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "harvester-cloud-provider.selectorLabels" -}} +app.kubernetes.io/name: {{ include "harvester-cloud-provider.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} + +{{/* +Create the name of the service account to use +*/}} +{{- define "harvester-cloud-provider.serviceAccountName" -}} +{{- default (include "harvester-cloud-provider.fullname" .) .Values.serviceAccount.name }} +{{- end }} + +{{/* +Global system default registry +*/}} +{{- define "system_default_registry" -}} +{{- if .Values.global.cattle.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} +{{- else -}} +{{- "" -}} +{{- end -}} +{{- end -}} diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/deployment.yaml b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/deployment.yaml new file mode 100755 index 0000000..3c0a17c --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/deployment.yaml @@ -0,0 +1,53 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + namespace: {{ .Release.Namespace }} + labels: + {{- include "harvester-cloud-provider.labels" . | nindent 4 }} + name: {{ include "harvester-cloud-provider.name" . }} +spec: + replicas: {{ .Values.replicasCount}} + selector: + matchLabels: + {{- include "harvester-cloud-provider.selectorLabels" . | nindent 6 }} + template: + metadata: + labels: + {{- include "harvester-cloud-provider.selectorLabels" . | nindent 8 }} + spec: + serviceAccountName: {{ include "harvester-cloud-provider.name" . }} + hostNetwork: true + containers: + - name: {{ include "harvester-cloud-provider.name" . }} + image: {{ template "system_default_registry" . }}{{ .Values.image.repository }}:{{ .Values.image.tag }} + imagePullPolicy: {{ .Values.image.pullPolicy }} + args: + - --cloud-config=/etc/kubernetes/cloud-config + {{- if ne .Values.clusterName "" }} + - --cluster-name={{ .Values.clusterName }} + {{- end }} + command: + - harvester-cloud-provider + resources: + {{- toYaml .Values.resources | nindent 12 }} + volumeMounts: + - mountPath: /etc/kubernetes/cloud-config + name: cloud-config + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} + volumes: + - name: cloud-config + hostPath: + path: {{ required "A valid cloudConfigPath is required!" .Values.cloudConfigPath }} + type: File diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/rbac.yaml b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/rbac.yaml new file mode 100755 index 0000000..f695cfd --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/templates/rbac.yaml @@ -0,0 +1,37 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ include "harvester-cloud-provider.name" . }} + namespace: {{ .Release.Namespace }} + labels: + {{- include "harvester-cloud-provider.labels" . | nindent 4 }} +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: {{ include "harvester-cloud-provider.name" . }} +rules: + - apiGroups: [ "" ] + resources: [ "services", "nodes", "events" ] + verbs: [ "get", "watch", "list", "update", "create", "patch" ] + - apiGroups: [ "" ] + resources: [ "nodes/status", "services/status" ] + verbs: [ "update", "patch" ] + - apiGroups: [ "coordination.k8s.io" ] + resources: [ "leases" ] + verbs: [ "get", "update", "create" ] +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: {{ include "harvester-cloud-provider.name" . }} + labels: + {{- include "harvester-cloud-provider.labels" . | nindent 4 }} +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: {{ include "harvester-cloud-provider.name" . }} +subjects: + - kind: ServiceAccount + name: {{ include "harvester-cloud-provider.name" . }} + namespace: {{ .Release.Namespace }} diff --git a/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/values.yaml b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/values.yaml new file mode 100755 index 0000000..e4dc159 --- /dev/null +++ b/charts/harvester-cloud-provider/harvester-cloud-provider/0.1.1100/values.yaml @@ -0,0 +1,71 @@ +# Default values for harvester-cloud-provider. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicasCount: 1 + +image: + repository: rancher/harvester-cloud-provider + pullPolicy: IfNotPresent + # Overrides the image tag whose default is the chart appVersion. + tag: v0.1.3 + +clusterName: "" +cloudConfigPath: "/etc/kubernetes/cloud-config" + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +serviceAccount: + # Annotations to add to the service account + annotations: {} + # The name of the service account to use. + # If not set and create is true, a name is generated using the fullname template + name: "" + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: + kubernetes.io/os: linux + +tolerations: +- effect: NoSchedule + key: node.cloudprovider.kubernetes.io/uninitialized + operator: Equal + value: "true" +- effect: NoSchedule + key: node-role.kubernetes.io/control-plane + operator: Equal +- effect: NoExecute + key: node-role.kubernetes.io/etcd + operator: Equal +- key: cattle.io/os + operator: Equal + value: "linux" + effect: NoSchedule + +affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchExpressions: + - key: app.kubernetes.io/name + operator: In + values: + - harvester-cloud-provider + topologyKey: kubernetes.io/hostname + +global: + cattle: + systemDefaultRegistry: "" diff --git a/index.yaml b/index.yaml index 2539eb3..8deceac 100755 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,31 @@ apiVersion: v1 entries: harvester-cloud-provider: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: Harvester Cloud Provider + catalog.cattle.io/kube-version: '>= 1.18' + catalog.cattle.io/namespace: kube-system + catalog.cattle.io/os: linux + catalog.cattle.io/rancher-version: '>= 2.6.1-0 <= 2.6.99-0' + catalog.cattle.io/release-name: harvester-cloud-provider + catalog.cattle.io/ui-component: harvester-cloud-provider + catalog.cattle.io/upstream-version: 0.1.8 + apiVersion: v2 + appVersion: v0.1.3 + created: "2022-04-14T19:30:39.829163388Z" + description: A Helm chart for Harvester Cloud Provider + digest: 26aa3c9308f1f577a5936fa4c808a1438b32736fb5f1f0afcc36adeafec03ee9 + keywords: + - infrastructure + - harvester + maintainers: + - name: harvester + name: harvester-cloud-provider + type: application + urls: + - assets/harvester-cloud-provider/harvester-cloud-provider-0.1.1100.tgz + version: 0.1.1100 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: Harvester Cloud Provider