diff --git a/assets/system-upgrade-controller/system-upgrade-controller-100.0.0+up0.3.0.tgz b/assets/system-upgrade-controller/system-upgrade-controller-100.0.0+up0.3.0.tgz new file mode 100644 index 000000000..e9b78e5b0 Binary files /dev/null and b/assets/system-upgrade-controller/system-upgrade-controller-100.0.0+up0.3.0.tgz differ diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/Chart.yaml b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/Chart.yaml new file mode 100644 index 000000000..ff4dd9620 --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/Chart.yaml @@ -0,0 +1,14 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/namespace: cattle-system + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: system-upgrade-controller +apiVersion: v1 +appVersion: v0.7.4 +description: General purpose controller to make system level updates to nodes +home: https://github.com/rancher/system-charts/charts/system-upgrade-controller +name: system-upgrade-controller +sources: +- https://github.com/rancher/system-charts/charts/system-upgrade-controller +version: 100.0.0+up0.3.0 diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/_helpers.tpl b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/_helpers.tpl new file mode 100644 index 000000000..be11b4a66 --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/_helpers.tpl @@ -0,0 +1,9 @@ +{{/* vim: set filetype=mustache: */}} + +{{- define "system_default_registry" -}} +{{- if .Values.global.systemDefaultRegistry -}} +{{- printf "%s/" .Values.global.systemDefaultRegistry -}} +{{- else -}} +{{- "" -}} +{{- end -}} +{{- end -}} diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/clusterrolebinding.yaml b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/clusterrolebinding.yaml new file mode 100644 index 000000000..f2a09949d --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/clusterrolebinding.yaml @@ -0,0 +1,12 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + name: system-upgrade-controller +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: cluster-admin +subjects: + - kind: ServiceAccount + name: system-upgrade-controller + namespace: cattle-system diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/configmap.yaml b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/configmap.yaml new file mode 100644 index 000000000..7619c3974 --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/configmap.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: system-upgrade-controller-config + namespace: cattle-system +data: + SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} + SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} + SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} + SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} + SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} + SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} + SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} + SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} + SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} + diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/deployment.yaml b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/deployment.yaml new file mode 100644 index 000000000..eaf478a60 --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/deployment.yaml @@ -0,0 +1,62 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: system-upgrade-controller + namespace: cattle-system +spec: + selector: + matchLabels: + upgrade.cattle.io/controller: system-upgrade-controller + template: + metadata: + labels: + upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain + spec: + affinity: + nodeAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - preference: + matchExpressions: + - key: node-role.kubernetes.io/control-plane + operator: In + values: + - "true" + weight: 100 + - preference: + matchExpressions: + - key: node-role.kubernetes.io/master + operator: In + values: + - "true" + weight: 100 + tolerations: + operator: "Exists" + serviceAccountName: system-upgrade + containers: + - name: system-upgrade-controller + image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} + imagePullPolicy: IfNotPresent + envFrom: + - configMapRef: + name: system-upgrade-controller-config + env: + - name: SYSTEM_UPGRADE_CONTROLLER_NAME + valueFrom: + fieldRef: + fieldPath: metadata.labels['upgrade.cattle.io/controller'] + - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE + valueFrom: + fieldRef: + fieldPath: metadata.namespace + volumeMounts: + - name: etc-ssl + mountPath: /etc/ssl + - name: tmp + mountPath: /tmp + volumes: + - name: etc-ssl + hostPath: + path: /etc/ssl + type: Directory + - name: tmp + emptyDir: {} diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/serviceaccount.yaml b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/serviceaccount.yaml new file mode 100644 index 000000000..b6cdcf48b --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/templates/serviceaccount.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: system-upgrade-controller + namespace: cattle-system diff --git a/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/values.yaml b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/values.yaml new file mode 100644 index 000000000..8d2d21912 --- /dev/null +++ b/charts/system-upgrade-controller/system-upgrade-controller/100.0.0+up0.3.0/values.yaml @@ -0,0 +1,12 @@ +global: + systemDefaultRegistry: "" + +systemUpgradeController: + image: + repository: rancher/system-upgrade-controller + tag: v0.7.4 + +kubectl: + image: + repository: rancher/kubectl + tag: v1.20.2 diff --git a/index.yaml b/index.yaml index d4c00df6a..b448d04c9 100755 --- a/index.yaml +++ b/index.yaml @@ -4179,3 +4179,23 @@ entries: urls: - assets/rancher-sriov/sriov-crd-0.1.1+up0.1.0.tgz version: 0.1.1+up0.1.0 + system-upgrade-controller: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/hidden: "true" + catalog.cattle.io/namespace: cattle-system + catalog.cattle.io/os: linux + catalog.cattle.io/release-name: system-upgrade-controller + apiVersion: v1 + appVersion: v0.7.4 + created: "2021-08-20T12:27:34.528803-07:00" + description: General purpose controller to make system level updates to nodes + digest: 747873d7f8395a5afdcf132c7244f009d3f5e8e45fa9518c4cc7880649708393 + home: https://github.com/rancher/system-charts/charts/system-upgrade-controller + name: system-upgrade-controller + sources: + - https://github.com/rancher/system-charts/charts/system-upgrade-controller + urls: + - assets/system-upgrade-controller/system-upgrade-controller-100.0.0+up0.3.0.tgz + version: 100.0.0+up0.3.0 +generated: "0001-01-01T00:00:00Z"