--- charts-original/templates/scanner-deployment.yaml +++ charts/templates/scanner-deployment.yaml @@ -67,25 +67,7 @@ {{- end }} containers: - name: neuvector-scanner-pod - {{- if .Values.global.azure.enabled }} - image: "{{ .Values.global.azure.images.scanner.registry }}/{{ .Values.global.azure.images.scanner.image }}:{{ .Values.global.azure.images.scanner.tag }}" - {{- else }} - {{- if eq .Values.registry "registry.neuvector.com" }} - {{- if .Values.oem }} - image: "{{ .Values.registry }}/{{ .Values.oem }}/scanner:{{ .Values.cve.scanner.image.tag }}" - {{- else }} - image: "{{ .Values.registry }}/scanner:{{ .Values.cve.scanner.image.tag }}" - {{- end }} - {{- else }} - {{- if .Values.cve.scanner.image.hash }} - image: "{{ .Values.registry }}/{{ .Values.cve.scanner.image.repository }}@{{ .Values.cve.scanner.image.hash }}" - {{- else if .Values.cve.scanner.image.registry }} - image: "{{ .Values.cve.scanner.image.registry }}/{{ .Values.cve.scanner.image.repository }}:{{ .Values.cve.scanner.image.tag }}" - {{- else }} - image: "{{ .Values.registry }}/{{ .Values.cve.scanner.image.repository }}:{{ .Values.cve.scanner.image.tag }}" - {{- end }} - {{- end }} - {{- end }} + image: {{ template "system_default_registry" . }}{{ .Values.cve.scanner.image.repository }}:{{ .Values.cve.scanner.image.tag }} imagePullPolicy: Always env: - name: CLUSTER_JOIN_ADDR