2022-04-13 18:27:53 +00:00
|
|
|
--- charts-original/templates/updater-cronjob.yaml
|
|
|
|
+++ charts/templates/updater-cronjob.yaml
|
2022-08-03 17:40:55 +00:00
|
|
|
@@ -39,20 +39,12 @@
|
|
|
|
{{- end }}
|
2022-04-13 18:27:53 +00:00
|
|
|
containers:
|
|
|
|
- name: neuvector-updater-pod
|
2022-08-03 17:40:55 +00:00
|
|
|
- {{- if eq .Values.registry "registry.neuvector.com" }}
|
|
|
|
- {{- if .Values.oem }}
|
2022-04-13 18:27:53 +00:00
|
|
|
- image: "{{ .Values.registry }}/{{ .Values.oem }}/updater:{{ .Values.cve.updater.image.tag }}"
|
|
|
|
- {{- else }}
|
|
|
|
- image: "{{ .Values.registry }}/updater:{{ .Values.cve.updater.image.tag }}"
|
|
|
|
- {{- end }}
|
|
|
|
- {{- else }}
|
2022-08-03 17:40:55 +00:00
|
|
|
- {{- if .Values.cve.updater.image.hash }}
|
2022-04-13 18:27:53 +00:00
|
|
|
- image: "{{ .Values.registry }}/{{ .Values.cve.updater.image.repository }}@{{ .Values.cve.updater.image.hash }}"
|
|
|
|
- {{- 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
|
|
|
|
+ command:
|
|
|
|
+ - /bin/sh
|
|
|
|
+ - -c
|
|
|
|
+ - sleep 30
|
|
|
|
{{- if .Values.cve.scanner.enabled }}
|
|
|
|
lifecycle:
|
|
|
|
postStart:
|