Skip to content

Commit

Permalink
chore(teuto-portal-k8s-worker): streamline imagePullPolicy (#767)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwrau authored Feb 16, 2024
1 parent d9917b5 commit 4c469f9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions charts/teuto-portal-k8s-worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
secretName: {{ required "k8s access token for the management cluster must be provided" .Values.worker.kubeconfig.secret.name }}

0 comments on commit 4c469f9

Please sign in to comment.