diff --git a/charts/teuto-portal-k8s-worker/templates/deployment.yaml b/charts/teuto-portal-k8s-worker/templates/deployment.yaml index 437036003..f8e348b6a 100644 --- a/charts/teuto-portal-k8s-worker/templates/deployment.yaml +++ b/charts/teuto-portal-k8s-worker/templates/deployment.yaml @@ -19,11 +19,7 @@ spec: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.global.podSecurityContext | nindent 12 }} image: {{ template "portalworker.image". }} - {{- if .Values.worker.image.digest }} - imagePullPolicy: IfNotPresent - {{- else }} - imagePullPolicy: Always - {{- end }} + imagePullPolicy: {{ empty .Values.worker.image.digest | ternary "Always" "IfNotPresent" }} env: - name: JDBC_URL value: {{ include "portalworker.jdbc" . | quote }} @@ -70,4 +66,4 @@ spec: emptyDir: {} - name: clusterconfig secret: - secretName: {{ required "k8s access token for the management cluster must be provided" .Values.worker.kubeconfig.secret.name }} \ No newline at end of file + secretName: {{ required "k8s access token for the management cluster must be provided" .Values.worker.kubeconfig.secret.name }}