├── .github ├── CODEOWNERS └── workflows │ └── pull-request.yaml ├── .gitignore ├── LICENSE ├── README.md └── charts └── rancher-k3s-upgrader ├── .helmignore ├── 0.1.0 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.2.0 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.2.1 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.3.0 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.3.1 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.3.2 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ ├── psp.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.3.3 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ ├── psp.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.4.0 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ ├── psp.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.5.0 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ ├── psp.yaml │ └── serviceaccount.yaml └── values.yaml ├── 0.6.0 ├── Chart.yaml ├── questions.yml ├── templates │ ├── NOTES.txt │ ├── _helpers.tpl │ ├── clusterrolebinding.yaml │ ├── configmap.yaml │ ├── deployment.yaml │ ├── namespace.yaml │ ├── psp.yaml │ └── serviceaccount.yaml └── values.yaml └── 0.7.0 ├── Chart.yaml ├── questions.yml ├── templates ├── NOTES.txt ├── _helpers.tpl ├── clusterrolebinding.yaml ├── configmap.yaml ├── deployment.yaml ├── namespace.yaml └── serviceaccount.yaml └── values.yaml /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | # Release team is the new owner of the repository 2 | 3 | /.github/* @rancher/release-team 4 | 5 | # Hostbusters is the chart owner for k3s upgrader 6 | /charts/rancher-k3s-upgrader/* @rancher/rancher-team-2-hostbusters-dev -------------------------------------------------------------------------------- /.github/workflows/pull-request.yaml: -------------------------------------------------------------------------------- 1 | name: CI-pullrequest 2 | on: 3 | pull_request: 4 | branches: 5 | - dev-v* 6 | - release-v* 7 | 8 | jobs: 9 | validate-chart-questions: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - name: Checkout 13 | uses: actions/checkout@v2 14 | 15 | - name: Validate all charts have a questions file 16 | run: > 17 | failed=false 18 | 19 | chart_dirs=$(find charts -type d -mindepth 2 -maxdepth 2) 20 | 21 | for chart in $chart_dirs; do 22 | if [[ ! -f $chart/questions.yaml ]] && [[ ! -f $chart/questions.yml ]]; then 23 | echo "$chart is missing a questions file" 24 | failed=true 25 | fi 26 | done 27 | 28 | if [[ $failed == true ]]; then 29 | exit 1 30 | fi 31 | 32 | - name: Validate all questions files have a `rancher_min_version` defined 33 | run: > 34 | failed=false 35 | 36 | questions_files=$(find charts -type f -name questions.y\*ml) 37 | 38 | questions_without_min=$(grep -rL "rancher_min_version" $questions_files) || true 39 | 40 | for questions in $questions_without_min; do 41 | echo "$questions does not have a rancher_min_version constraint defined" 42 | failed=true 43 | done 44 | 45 | if [[ $failed == true ]]; then 46 | exit 1 47 | fi 48 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea 3 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | system-charts 2 | ============ 3 | 4 | Rancher 2.x system library charts. 5 | 6 | ## License 7 | Copyright (c) 2019 [Rancher Labs, Inc.](http://rancher.com) 8 | 9 | Licensed under the Apache License, Version 2.0 (the "License"); 10 | you may not use this file except in compliance with the License. 11 | You may obtain a copy of the License at 12 | 13 | [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0) 14 | 15 | Unless required by applicable law or agreed to in writing, software 16 | distributed under the License is distributed on an "AS IS" BASIS, 17 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 | See the License for the specific language governing permissions and 19 | limitations under the License. 20 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *.orig 18 | *~ 19 | # Various IDEs 20 | .project 21 | .idea/ 22 | *.tmproj 23 | .vscode/ 24 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s cluster to update itself by reacting to Plan CRs. 4 | home: https://github.com/rancher/system-charts/charts/system-upgrade-controller 5 | sources: 6 | - "https://github.com/rancher/system-charts/charts/system-upgrade-controller" 7 | version: 0.1.0 8 | appVersion: v0.4.0 9 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.4.0-rc1 2 | rancher_max_version: 2.6.2 3 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s cluster to update itself by 4 | reacting to Plan CRs. 5 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: default-controller-env 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "Always" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - {key: "node-role.kubernetes.io/master", operator: In, values: ["true"]} 21 | serviceAccountName: system-upgrade 22 | containers: 23 | - name: system-upgrade-controller 24 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 25 | imagePullPolicy: IfNotPresent 26 | envFrom: 27 | - configMapRef: 28 | name: default-controller-env 29 | env: 30 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 31 | valueFrom: 32 | fieldRef: 33 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 34 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 35 | valueFrom: 36 | fieldRef: 37 | fieldPath: metadata.namespace 38 | volumeMounts: 39 | - name: etc-ssl 40 | mountPath: /etc/ssl 41 | - name: tmp 42 | mountPath: /tmp 43 | volumes: 44 | - name: etc-ssl 45 | hostPath: 46 | path: /etc/ssl 47 | type: Directory 48 | - name: tmp 49 | emptyDir: {} 50 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.1.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | systemDefaultRegistry: "" 3 | 4 | systemUpgradeController: 5 | image: 6 | repository: rancher/system-upgrade-controller 7 | tag: v0.4.0 8 | 9 | kubectl: 10 | image: 11 | repository: rancher/kubectl 12 | tag: v1.17.0 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.4/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.4/charts/rancher-k3s-upgrader" 8 | version: 0.2.0 9 | appVersion: v0.6.2 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.4.0-rc1 2 | rancher_max_version: 2.6.2 3 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: default-controller-env 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "Always" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - {key: "node-role.kubernetes.io/master", operator: In, values: ["true"]} 21 | serviceAccountName: system-upgrade 22 | containers: 23 | - name: system-upgrade-controller 24 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 25 | imagePullPolicy: IfNotPresent 26 | envFrom: 27 | - configMapRef: 28 | name: default-controller-env 29 | env: 30 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 31 | valueFrom: 32 | fieldRef: 33 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 34 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 35 | valueFrom: 36 | fieldRef: 37 | fieldPath: metadata.namespace 38 | volumeMounts: 39 | - name: etc-ssl 40 | mountPath: /etc/ssl 41 | - name: tmp 42 | mountPath: /tmp 43 | volumes: 44 | - name: etc-ssl 45 | hostPath: 46 | path: /etc/ssl 47 | type: Directory 48 | - name: tmp 49 | emptyDir: {} 50 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | systemDefaultRegistry: "" 3 | 4 | systemUpgradeController: 5 | image: 6 | repository: rancher/system-upgrade-controller 7 | tag: v0.6.2 8 | 9 | kubectl: 10 | image: 11 | repository: rancher/kubectl 12 | tag: v1.18.0 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.4/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.4/charts/rancher-k3s-upgrader" 8 | version: 0.2.1 9 | appVersion: v0.6.2 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.4.0-rc1 2 | rancher_max_version: 2.5.99 3 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: default-controller-env 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "Always" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - {key: "node-role.kubernetes.io/master", operator: In, values: ["true"]} 21 | serviceAccountName: system-upgrade 22 | containers: 23 | - name: system-upgrade-controller 24 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 25 | imagePullPolicy: IfNotPresent 26 | envFrom: 27 | - configMapRef: 28 | name: default-controller-env 29 | env: 30 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 31 | valueFrom: 32 | fieldRef: 33 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 34 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 35 | valueFrom: 36 | fieldRef: 37 | fieldPath: metadata.namespace 38 | volumeMounts: 39 | - name: etc-ssl 40 | mountPath: /etc/ssl 41 | - name: tmp 42 | mountPath: /tmp 43 | volumes: 44 | - name: etc-ssl 45 | hostPath: 46 | path: /etc/ssl 47 | type: Directory 48 | - name: tmp 49 | emptyDir: {} 50 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.2.1/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | systemDefaultRegistry: "" 3 | 4 | systemUpgradeController: 5 | image: 6 | repository: rancher/system-upgrade-controller 7 | tag: v0.6.2 8 | 9 | kubectl: 10 | image: 11 | repository: rancher/kubectl 12 | tag: v1.18.0 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader" 8 | version: 0.3.0 9 | appVersion: v0.7.5 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.6.0-alpha1 2 | rancher_max_version: 2.6.2 3 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | preferredDuringSchedulingIgnoredDuringExecution: 18 | - preference: 19 | matchExpressions: 20 | - key: node-role.kubernetes.io/control-plane 21 | operator: In 22 | values: 23 | - "true" 24 | weight: 100 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/master 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | tolerations: 33 | - operator: Exists 34 | serviceAccountName: system-upgrade-controller 35 | containers: 36 | - name: system-upgrade-controller 37 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 38 | imagePullPolicy: IfNotPresent 39 | envFrom: 40 | - configMapRef: 41 | name: system-upgrade-controller-config 42 | env: 43 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 44 | valueFrom: 45 | fieldRef: 46 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 47 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 48 | valueFrom: 49 | fieldRef: 50 | fieldPath: metadata.namespace 51 | volumeMounts: 52 | - name: etc-ssl 53 | mountPath: /etc/ssl 54 | - name: tmp 55 | mountPath: /tmp 56 | volumes: 57 | - name: etc-ssl 58 | hostPath: 59 | path: /etc/ssl 60 | type: Directory 61 | - name: tmp 62 | emptyDir: {} 63 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | systemDefaultRegistry: "" 3 | 4 | systemUpgradeController: 5 | image: 6 | repository: rancher/system-upgrade-controller 7 | tag: v0.7.5 8 | 9 | kubectl: 10 | image: 11 | repository: rancher/kubectl 12 | tag: v1.20.2 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader" 8 | version: 0.3.1 9 | appVersion: v0.8.1 10 | kubeVersion: '>= 1.16.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.6.0-alpha1 2 | rancher_max_version: 2.6.3 3 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.1/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | 5 | systemUpgradeController: 6 | image: 7 | repository: rancher/system-upgrade-controller 8 | tag: v0.8.1 9 | 10 | kubectl: 11 | image: 12 | repository: rancher/kubectl 13 | tag: v1.20.2 14 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader" 8 | version: 0.3.2 9 | appVersion: v0.8.1 10 | kubeVersion: '>= 1.16.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.6.0-alpha1 2 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: policy/v1beta1 2 | kind: PodSecurityPolicy 3 | metadata: 4 | name: system-upgrade-controller 5 | spec: 6 | allowPrivilegeEscalation: true 7 | allowedCapabilities: 8 | - CAP_SYS_BOOT 9 | hostNetwork: true 10 | hostPID: true 11 | hostIPC: true 12 | privileged: true 13 | runAsUser: 14 | rule: RunAsAny 15 | seLinux: 16 | rule: RunAsAny 17 | supplementalGroups: 18 | rule: RunAsAny 19 | fsGroup: 20 | rule: RunAsAny 21 | volumes: 22 | - "*" 23 | --- 24 | apiVersion: rbac.authorization.k8s.io/v1 25 | kind: ClusterRole 26 | metadata: 27 | name: system-upgrade-controller-psp 28 | rules: 29 | - apiGroups: 30 | - policy 31 | resourceNames: 32 | - system-upgrade-controller 33 | resources: 34 | - podsecuritypolicies 35 | verbs: 36 | - use 37 | --- 38 | apiVersion: rbac.authorization.k8s.io/v1 39 | kind: ClusterRoleBinding 40 | metadata: 41 | name: system-upgrade-controller-psp 42 | roleRef: 43 | apiGroup: rbac.authorization.k8s.io 44 | kind: ClusterRole 45 | name: system-upgrade-controller-psp 46 | subjects: 47 | - kind: Group 48 | apiGroup: rbac.authorization.k8s.io 49 | name: system:serviceaccounts:cattle-system 50 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.2/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | 5 | systemUpgradeController: 6 | image: 7 | repository: rancher/system-upgrade-controller 8 | tag: v0.8.1 9 | 10 | kubectl: 11 | image: 12 | repository: rancher/kubectl 13 | tag: v1.20.2 14 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.6/charts/rancher-k3s-upgrader" 8 | version: 0.3.3 9 | appVersion: v0.9.1 10 | kubeVersion: '>= 1.16.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.6.0-alpha1 2 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: policy/v1beta1 2 | kind: PodSecurityPolicy 3 | metadata: 4 | name: system-upgrade-controller 5 | spec: 6 | allowPrivilegeEscalation: true 7 | allowedCapabilities: 8 | - CAP_SYS_BOOT 9 | hostNetwork: true 10 | hostPID: true 11 | hostIPC: true 12 | privileged: true 13 | runAsUser: 14 | rule: RunAsAny 15 | seLinux: 16 | rule: RunAsAny 17 | supplementalGroups: 18 | rule: RunAsAny 19 | fsGroup: 20 | rule: RunAsAny 21 | volumes: 22 | - "*" 23 | --- 24 | apiVersion: rbac.authorization.k8s.io/v1 25 | kind: ClusterRole 26 | metadata: 27 | name: system-upgrade-controller-psp 28 | rules: 29 | - apiGroups: 30 | - policy 31 | resourceNames: 32 | - system-upgrade-controller 33 | resources: 34 | - podsecuritypolicies 35 | verbs: 36 | - use 37 | --- 38 | apiVersion: rbac.authorization.k8s.io/v1 39 | kind: ClusterRoleBinding 40 | metadata: 41 | name: system-upgrade-controller-psp 42 | roleRef: 43 | apiGroup: rbac.authorization.k8s.io 44 | kind: ClusterRole 45 | name: system-upgrade-controller-psp 46 | subjects: 47 | - kind: Group 48 | apiGroup: rbac.authorization.k8s.io 49 | name: system:serviceaccounts:cattle-system 50 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.3.3/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | 5 | systemUpgradeController: 6 | image: 7 | repository: rancher/system-upgrade-controller 8 | tag: v0.9.1 9 | 10 | kubectl: 11 | image: 12 | repository: rancher/kubectl 13 | tag: v1.20.15 14 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.7/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.7/charts/rancher-k3s-upgrader" 8 | version: 0.4.0 9 | appVersion: v0.10.0 10 | kubeVersion: '>= 1.16.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.6.0-alpha1 2 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep 7 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.global.cattle.psp.enabled }} 2 | apiVersion: policy/v1beta1 3 | kind: PodSecurityPolicy 4 | metadata: 5 | name: system-upgrade-controller 6 | spec: 7 | allowPrivilegeEscalation: true 8 | allowedCapabilities: 9 | - CAP_SYS_BOOT 10 | hostNetwork: true 11 | hostPID: true 12 | hostIPC: true 13 | privileged: true 14 | runAsUser: 15 | rule: RunAsAny 16 | seLinux: 17 | rule: RunAsAny 18 | supplementalGroups: 19 | rule: RunAsAny 20 | fsGroup: 21 | rule: RunAsAny 22 | volumes: 23 | - "*" 24 | --- 25 | apiVersion: rbac.authorization.k8s.io/v1 26 | kind: ClusterRole 27 | metadata: 28 | name: system-upgrade-controller-psp 29 | rules: 30 | - apiGroups: 31 | - policy 32 | resourceNames: 33 | - system-upgrade-controller 34 | resources: 35 | - podsecuritypolicies 36 | verbs: 37 | - use 38 | --- 39 | apiVersion: rbac.authorization.k8s.io/v1 40 | kind: ClusterRoleBinding 41 | metadata: 42 | name: system-upgrade-controller-psp 43 | roleRef: 44 | apiGroup: rbac.authorization.k8s.io 45 | kind: ClusterRole 46 | name: system-upgrade-controller-psp 47 | subjects: 48 | - kind: Group 49 | apiGroup: rbac.authorization.k8s.io 50 | name: system:serviceaccounts:cattle-system 51 | {{- end }} 52 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.4.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | psp: 5 | enabled: true 6 | 7 | systemUpgradeController: 8 | image: 9 | repository: rancher/system-upgrade-controller 10 | tag: v0.10.0 11 | 12 | kubectl: 13 | image: 14 | repository: rancher/kubectl 15 | tag: v1.23.3 16 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.7/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.7/charts/rancher-k3s-upgrader" 8 | version: 0.5.0 9 | appVersion: v0.11.0 10 | kubeVersion: '>= 1.23.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.7.0-alpha1 2 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep 7 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.global.cattle.psp.enabled }} 2 | apiVersion: policy/v1beta1 3 | kind: PodSecurityPolicy 4 | metadata: 5 | name: system-upgrade-controller 6 | spec: 7 | allowPrivilegeEscalation: true 8 | allowedCapabilities: 9 | - CAP_SYS_BOOT 10 | hostNetwork: true 11 | hostPID: true 12 | hostIPC: true 13 | privileged: true 14 | runAsUser: 15 | rule: RunAsAny 16 | seLinux: 17 | rule: RunAsAny 18 | supplementalGroups: 19 | rule: RunAsAny 20 | fsGroup: 21 | rule: RunAsAny 22 | volumes: 23 | - "*" 24 | --- 25 | apiVersion: rbac.authorization.k8s.io/v1 26 | kind: ClusterRole 27 | metadata: 28 | name: system-upgrade-controller-psp 29 | rules: 30 | - apiGroups: 31 | - policy 32 | resourceNames: 33 | - system-upgrade-controller 34 | resources: 35 | - podsecuritypolicies 36 | verbs: 37 | - use 38 | --- 39 | apiVersion: rbac.authorization.k8s.io/v1 40 | kind: ClusterRoleBinding 41 | metadata: 42 | name: system-upgrade-controller-psp 43 | roleRef: 44 | apiGroup: rbac.authorization.k8s.io 45 | kind: ClusterRole 46 | name: system-upgrade-controller-psp 47 | subjects: 48 | - kind: Group 49 | apiGroup: rbac.authorization.k8s.io 50 | name: system:serviceaccounts:cattle-system 51 | {{- end }} 52 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.5.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | psp: 5 | enabled: true 6 | 7 | systemUpgradeController: 8 | image: 9 | repository: rancher/system-upgrade-controller 10 | tag: v0.11.0 11 | 12 | kubectl: 13 | image: 14 | repository: rancher/kubectl 15 | tag: v1.23.3 16 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.8/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.8/charts/rancher-k3s-upgrader" 8 | version: 0.6.0 9 | appVersion: v0.13.1 10 | kubeVersion: '>= 1.23.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.8.0-alpha1 2 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep 7 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/psp.yaml: -------------------------------------------------------------------------------- 1 | {{- if .Values.global.cattle.psp.enabled }} 2 | apiVersion: policy/v1beta1 3 | kind: PodSecurityPolicy 4 | metadata: 5 | name: system-upgrade-controller 6 | spec: 7 | allowPrivilegeEscalation: true 8 | allowedCapabilities: 9 | - CAP_SYS_BOOT 10 | hostNetwork: true 11 | hostPID: true 12 | hostIPC: true 13 | privileged: true 14 | runAsUser: 15 | rule: RunAsAny 16 | seLinux: 17 | rule: RunAsAny 18 | supplementalGroups: 19 | rule: RunAsAny 20 | fsGroup: 21 | rule: RunAsAny 22 | volumes: 23 | - "*" 24 | --- 25 | apiVersion: rbac.authorization.k8s.io/v1 26 | kind: ClusterRole 27 | metadata: 28 | name: system-upgrade-controller-psp 29 | rules: 30 | - apiGroups: 31 | - policy 32 | resourceNames: 33 | - system-upgrade-controller 34 | resources: 35 | - podsecuritypolicies 36 | verbs: 37 | - use 38 | --- 39 | apiVersion: rbac.authorization.k8s.io/v1 40 | kind: ClusterRoleBinding 41 | metadata: 42 | name: system-upgrade-controller-psp 43 | roleRef: 44 | apiGroup: rbac.authorization.k8s.io 45 | kind: ClusterRole 46 | name: system-upgrade-controller-psp 47 | subjects: 48 | - kind: Group 49 | apiGroup: rbac.authorization.k8s.io 50 | name: system:serviceaccounts:cattle-system 51 | {{- end }} 52 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.6.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | psp: 5 | enabled: true 6 | 7 | systemUpgradeController: 8 | image: 9 | repository: rancher/system-upgrade-controller 10 | tag: v0.13.1 11 | 12 | kubectl: 13 | image: 14 | repository: rancher/kubectl 15 | tag: v1.23.3 16 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | name: rancher-k3s-upgrader 3 | description: Enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. 5 | home: https://github.com/rancher/system-charts/blob/dev-v2.9/charts/rancher-k3s-upgrader 6 | sources: 7 | - "https://github.com/rancher/system-charts/blob/dev-v2.9/charts/rancher-k3s-upgrader" 8 | version: 0.7.0 9 | appVersion: v0.13.4 10 | kubeVersion: '>= 1.25.0-0' 11 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/questions.yml: -------------------------------------------------------------------------------- 1 | rancher_min_version: 2.9.0-alpha1 2 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | You have deployed the Rancher K3s Upgrader 2 | Version: {{ .Chart.AppVersion }} 3 | Description: This controller enables a k3s or rke2 cluster to update itself by reacting to Plan CRs. 4 | Users do not need to manually upgrade this app. It will be automatically upgraded to the latest version when upgrading a cluster. -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | 3 | {{- define "system_default_registry" -}} 4 | {{- if .Values.global.cattle.systemDefaultRegistry -}} 5 | {{- printf "%s/" .Values.global.cattle.systemDefaultRegistry -}} 6 | {{- else -}} 7 | {{- "" -}} 8 | {{- end -}} 9 | {{- end -}} 10 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/clusterrolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: system-upgrade-controller 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: cluster-admin 9 | subjects: 10 | - kind: ServiceAccount 11 | name: system-upgrade-controller 12 | namespace: cattle-system 13 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: system-upgrade-controller-config 5 | namespace: cattle-system 6 | data: 7 | SYSTEM_UPGRADE_CONTROLLER_DEBUG: {{ .Values.systemUpgradeControllerDebug | default "false" | quote }} 8 | SYSTEM_UPGRADE_CONTROLLER_THREADS: {{ .Values.systemUpgradeControllerThreads | default "2" | quote }} 9 | SYSTEM_UPGRADE_JOB_ACTIVE_DEADLINE_SECONDS: {{ .Values.systemUpgradeJobActiveDeadlineSeconds | default "900" | quote }} 10 | SYSTEM_UPGRADE_JOB_BACKOFF_LIMIT: {{ .Values.systemUpgradeJobBackoffLimit | default "99" | quote }} 11 | SYSTEM_UPGRADE_JOB_IMAGE_PULL_POLICY: {{ .Values.systemUpgradeJobImagePullPolicy | default "IfNotPresent" | quote }} 12 | SYSTEM_UPGRADE_JOB_KUBECTL_IMAGE: {{ template "system_default_registry" . }}{{ .Values.kubectl.image.repository }}:{{ .Values.kubectl.image.tag }} 13 | SYSTEM_UPGRADE_JOB_PRIVILEGED: {{ .Values.systemUpgradeJobPrivileged | default "true" | quote }} 14 | SYSTEM_UPGRADE_JOB_TTL_SECONDS_AFTER_FINISH: {{ .Values.systemUpgradeJobTTLSecondsAfterFinish | default "900" | quote }} 15 | SYSTEM_UPGRADE_PLAN_POLLING_INTERVAL: {{ .Values.systemUpgradePlanRollingInterval | default "15m" | quote }} 16 | 17 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/deployment.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | spec: 7 | selector: 8 | matchLabels: 9 | upgrade.cattle.io/controller: system-upgrade-controller 10 | template: 11 | metadata: 12 | labels: 13 | upgrade.cattle.io/controller: system-upgrade-controller # necessary to avoid drain 14 | spec: 15 | affinity: 16 | nodeAffinity: 17 | requiredDuringSchedulingIgnoredDuringExecution: 18 | nodeSelectorTerms: 19 | - matchExpressions: 20 | - key: "kubernetes.io/os" 21 | operator: NotIn 22 | values: 23 | - windows 24 | preferredDuringSchedulingIgnoredDuringExecution: 25 | - preference: 26 | matchExpressions: 27 | - key: node-role.kubernetes.io/control-plane 28 | operator: In 29 | values: 30 | - "true" 31 | weight: 100 32 | - preference: 33 | matchExpressions: 34 | - key: node-role.kubernetes.io/master 35 | operator: In 36 | values: 37 | - "true" 38 | weight: 100 39 | tolerations: 40 | - operator: Exists 41 | serviceAccountName: system-upgrade-controller 42 | containers: 43 | - name: system-upgrade-controller 44 | image: {{ template "system_default_registry" . }}{{ .Values.systemUpgradeController.image.repository }}:{{ .Values.systemUpgradeController.image.tag }} 45 | imagePullPolicy: IfNotPresent 46 | envFrom: 47 | - configMapRef: 48 | name: system-upgrade-controller-config 49 | env: 50 | - name: SYSTEM_UPGRADE_CONTROLLER_NAME 51 | valueFrom: 52 | fieldRef: 53 | fieldPath: metadata.labels['upgrade.cattle.io/controller'] 54 | - name: SYSTEM_UPGRADE_CONTROLLER_NAMESPACE 55 | valueFrom: 56 | fieldRef: 57 | fieldPath: metadata.namespace 58 | volumeMounts: 59 | - name: etc-ssl 60 | mountPath: /etc/ssl 61 | - name: tmp 62 | mountPath: /tmp 63 | volumes: 64 | - name: etc-ssl 65 | hostPath: 66 | path: /etc/ssl 67 | type: Directory 68 | - name: tmp 69 | emptyDir: {} 70 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: cattle-system 5 | annotations: 6 | "helm.sh/resource-policy": keep 7 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/templates/serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: system-upgrade-controller 5 | namespace: cattle-system 6 | -------------------------------------------------------------------------------- /charts/rancher-k3s-upgrader/0.7.0/values.yaml: -------------------------------------------------------------------------------- 1 | global: 2 | cattle: 3 | systemDefaultRegistry: "" 4 | 5 | systemUpgradeController: 6 | image: 7 | repository: rancher/system-upgrade-controller 8 | tag: v0.13.4 9 | 10 | kubectl: 11 | image: 12 | repository: rancher/kubectl 13 | tag: v1.23.3 14 | --------------------------------------------------------------------------------