diff --git a/templates/deployment-client.yaml b/templates/deployment-client.yaml index da0a329..4744aad 100644 --- a/templates/deployment-client.yaml +++ b/templates/deployment-client.yaml @@ -31,7 +31,7 @@ spec: containers: - name: opal-client image: {{ include "opal.clientImage" . | quote }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.client.imagePullPolicy | default "IfNotPresent" | quote }} ports: - name: http containerPort: {{ .Values.client.port }} diff --git a/templates/deployment-server.yaml b/templates/deployment-server.yaml index 2a1c56a..b159ad1 100644 --- a/templates/deployment-server.yaml +++ b/templates/deployment-server.yaml @@ -62,7 +62,7 @@ spec: containers: - name: opal-server image: {{ include "opal.serverImage" . | quote }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.server.imagePullPolicy | default "IfNotPresent" | quote }} {{- if .Values.e2e }} volumeMounts: - mountPath: /opt/e2e/policy-repo-data diff --git a/values.schema.json b/values.schema.json index f77be73..65376ca 100644 --- a/values.schema.json +++ b/values.schema.json @@ -169,6 +169,11 @@ "type": "object", "title": "resources", "default": null + }, + "imagePullPolicy": { + "type": "string", + "default": "IfNotPresent", + "title": "when kubelet should pull specified image" } } }, @@ -204,6 +209,11 @@ "type": "object", "title": "resources", "default": null + }, + "imagePullPolicy": { + "type": "string", + "default": "IfNotPresent", + "title": "when kubelet should pull specified image" } } }