Skip to content

Commit 82748be

Browse files
authored
fix: ensure latest tag always pulls image (#8)
1 parent af096c4 commit 82748be

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

charts/eks-pod-identity-webhook/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
containers:
2626
- name: webhook
2727
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
28-
imagePullPolicy: {{ .Values.image.pullPolicy }}
28+
imagePullPolicy: {{ if eq .Values.image.tag "latest" }}Always{{ else }}IfNotPresent{{ end }}
2929
args:
3030
- "--tls-cert-path=/etc/webhook/certs/tls.crt"
3131
- "--tls-key-path=/etc/webhook/certs/tls.key"

charts/eks-pod-identity-webhook/values.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ replicaCount: 3
33
image:
44
repository: ghcr.io/mondu-ai/eks-pod-identity-webhook
55
tag: latest
6-
pullPolicy: IfNotPresent
76

87
serviceAccount:
98
create: true

0 commit comments

Comments
 (0)