rancher-charts/packages/rancher-gatekeeper/generated-changes/patch/templates/namespace-post-install.yaml...

40 lines
1.5 KiB
Diff

--- charts-original/templates/namespace-post-install.yaml
+++ charts/templates/namespace-post-install.yaml
@@ -44,7 +44,7 @@
{{- end }}
containers:
- name: kubectl-label
- image: "{{ .Values.postInstall.labelNamespace.image.repository }}:{{ .Values.postInstall.labelNamespace.image.tag }}"
+ image: '{{ template "system_default_registry" . }}{{ .Values.postInstall.labelNamespace.image.repository }}:{{ .Values.postInstall.labelNamespace.image.tag }}'
imagePullPolicy: {{ .Values.postInstall.labelNamespace.image.pullPolicy }}
args:
- label
@@ -85,12 +85,10 @@
{{- toYaml .Values.postInstall.securityContext | nindent 12 }}
{{- end }}
{{- with .Values.postInstall }}
- nodeSelector:
- {{- toYaml .nodeSelector | nindent 8 }}
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
affinity:
{{- toYaml .affinity | nindent 8 }}
- tolerations:
- {{- toYaml .tolerations | nindent 8 }}
{{- end }}
---
apiVersion: v1
@@ -132,6 +130,12 @@
{{- range .Values.postInstall.labelNamespace.extraNamespaces }}
- {{ . }}
{{- end }}
+ - apiGroups:
+ - management.cattle.io
+ resources:
+ - projects
+ verbs:
+ - updatepsa
{{- with .Values.postInstall.labelNamespace.extraRules }}
{{- toYaml . | nindent 2 }}
{{- end }}