mirror of https://git.rancher.io/charts
29 lines
1.4 KiB
Diff
29 lines
1.4 KiB
Diff
--- charts-original/templates/updater-cronjob.yaml
|
|
+++ charts/templates/updater-cronjob.yaml
|
|
@@ -35,20 +35,12 @@
|
|
serviceAccount: {{ .Values.serviceAccount }}
|
|
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 }}
|
|
- 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:
|