mirror of https://git.rancher.io/charts
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
--- charts-original/templates/controller-deployment.yaml
|
|
+++ charts/templates/controller-deployment.yaml
|
|
@@ -76,19 +76,7 @@
|
|
{{- end }}
|
|
containers:
|
|
- name: neuvector-controller-pod
|
|
- {{- if eq .Values.registry "registry.neuvector.com" }}
|
|
- {{- if .Values.oem }}
|
|
- image: "{{ .Values.registry }}/{{ .Values.oem }}/controller:{{ .Values.tag }}"
|
|
- {{- else }}
|
|
- image: "{{ .Values.registry }}/controller:{{ .Values.tag }}"
|
|
- {{- end }}
|
|
- {{- else }}
|
|
- {{- if .Values.controller.image.hash }}
|
|
- image: "{{ .Values.registry }}/{{ .Values.controller.image.repository }}@{{ .Values.controller.image.hash }}"
|
|
- {{- else }}
|
|
- image: "{{ .Values.registry }}/{{ .Values.controller.image.repository }}:{{ .Values.tag }}"
|
|
- {{- end }}
|
|
- {{- end }}
|
|
+ image: {{ template "system_default_registry" . }}{{ .Values.controller.image.repository }}:{{ .Values.controller.image.tag }}
|
|
securityContext:
|
|
privileged: true
|
|
resources:
|
|
@@ -125,10 +113,6 @@
|
|
- name: CTRL_PERSIST_CONFIG
|
|
value: "1"
|
|
{{- end }}
|
|
- {{- if .Values.awsbilling.enabled }}
|
|
- - name: CSP_ENV
|
|
- value: "aws"
|
|
- {{- end }}
|
|
{{- with .Values.controller.env }}
|
|
{{- toYaml . | nindent 12 }}
|
|
{{- end }}
|