2022-08-22 07:07:17 +00:00
|
|
|
--- charts-original/templates/namespace-post-upgrade.yaml
|
|
|
|
+++ charts/templates/namespace-post-upgrade.yaml
|
2023-04-25 21:55:02 +00:00
|
|
|
@@ -36,7 +36,7 @@
|
2022-08-22 07:07:17 +00:00
|
|
|
serviceAccount: gatekeeper-update-namespace-label-post-upgrade
|
|
|
|
containers:
|
|
|
|
- name: kubectl-label
|
|
|
|
- image: "{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}"
|
|
|
|
+ image: '{{ template "system_default_registry" . }}{{ .Values.postUpgrade.labelNamespace.image.repository }}:{{ .Values.postUpgrade.labelNamespace.image.tag }}'
|
|
|
|
imagePullPolicy: {{ .Values.postUpgrade.labelNamespace.image.pullPolicy }}
|
|
|
|
args:
|
|
|
|
- label
|
2023-04-25 21:55:02 +00:00
|
|
|
@@ -77,12 +77,10 @@
|
2022-11-18 05:40:28 +00:00
|
|
|
{{- toYaml .Values.postUpgrade.securityContext | nindent 12 }}
|
2023-04-25 21:55:02 +00:00
|
|
|
{{- end }}
|
2022-11-18 05:40:28 +00:00
|
|
|
{{- with .Values.postUpgrade }}
|
|
|
|
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
|
|
|
|
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
|
|
|
|
affinity:
|
|
|
|
{{- toYaml .affinity | nindent 8 }}
|
|
|
|
- tolerations:
|
|
|
|
- {{- toYaml .tolerations | nindent 8 }}
|
|
|
|
- nodeSelector:
|
|
|
|
- {{- toYaml .nodeSelector | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
2023-04-25 21:55:02 +00:00
|
|
|
@@ -123,6 +121,12 @@
|
2023-01-27 13:28:04 +00:00
|
|
|
{{- range .Values.postUpgrade.labelNamespace.extraNamespaces }}
|
|
|
|
- {{ . }}
|
|
|
|
{{- end }}
|
|
|
|
+ - apiGroups:
|
|
|
|
+ - management.cattle.io
|
|
|
|
+ resources:
|
|
|
|
+ - projects
|
|
|
|
+ verbs:
|
|
|
|
+ - updatepsa
|
|
|
|
{{- end }}
|
|
|
|
---
|
|
|
|
{{- if .Values.rbac.create }}
|