--- charts-original/templates/updater-cronjob.yaml +++ charts/templates/updater-cronjob.yaml @@ -50,20 +50,12 @@ {{- 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 }} - 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 }} command: - /bin/sh