rancher-charts/packages/neuvector/generated-changes/patch/templates/updater-cronjob.yaml.patch

26 lines
1.4 KiB
Diff

--- charts-original/templates/updater-cronjob.yaml
+++ charts/templates/updater-cronjob.yaml
@@ -55,21 +55,7 @@
{{- end }}
containers:
- name: neuvector-updater-pod
- {{- if eq .Values.registry "registry.neuvector.com" }}
- {{- if .Values.oem }}
- image: "{{ .Values.registry }}/{{ .Values.oem }}/updater:{{ .Values.cve.updater.image.tag }}"
- {{- else }}
- image: "{{ .Values.registry }}/updater:{{ .Values.cve.updater.image.tag }}"
- {{- end }}
- {{- else }}
- {{- if .Values.cve.updater.image.hash }}
- image: "{{ .Values.registry }}/{{ .Values.cve.updater.image.repository }}@{{ .Values.cve.updater.image.hash }}"
- {{- else if .Values.cve.updater.image.registry }}
- image: "{{ .Values.cve.updater.image.registry }}/{{ .Values.cve.updater.image.repository }}:{{ .Values.cve.updater.image.tag }}"
- {{- else }}
- image: "{{ .Values.registry }}/{{ .Values.cve.updater.image.repository }}:{{ .Values.cve.updater.image.tag }}"
- {{- end }}
- {{- end }}
+ image: {{ template "system_default_registry" . }}{{ .Values.cve.updater.image.repository }}:{{ .Values.cve.updater.image.tag }}
imagePullPolicy: Always
{{- if .Values.cve.scanner.enabled }}
command: