Skip to content

Commit 116e6b2

Browse files
authored
Merge pull request #53 from thilak009/feature/configurable-image-pull-policy
make image pull policy for server and client to be configurable
2 parents 6d806c4 + d798687 commit 116e6b2

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

templates/deployment-client.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ spec:
3131
containers:
3232
- name: opal-client
3333
image: {{ include "opal.clientImage" . | quote }}
34-
imagePullPolicy: IfNotPresent
34+
imagePullPolicy: {{ .Values.client.imagePullPolicy | default "IfNotPresent" | quote }}
3535
ports:
3636
- name: http
3737
containerPort: {{ .Values.client.port }}

templates/deployment-server.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ spec:
6262
containers:
6363
- name: opal-server
6464
image: {{ include "opal.serverImage" . | quote }}
65-
imagePullPolicy: IfNotPresent
65+
imagePullPolicy: {{ .Values.server.imagePullPolicy | default "IfNotPresent" | quote }}
6666
{{- if .Values.e2e }}
6767
volumeMounts:
6868
- mountPath: /opt/e2e/policy-repo-data

values.schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,11 @@
169169
"type": "object",
170170
"title": "resources",
171171
"default": null
172+
},
173+
"imagePullPolicy": {
174+
"type": "string",
175+
"default": "IfNotPresent",
176+
"title": "when kubelet should pull specified image"
172177
}
173178
}
174179
},
@@ -204,6 +209,11 @@
204209
"type": "object",
205210
"title": "resources",
206211
"default": null
212+
},
213+
"imagePullPolicy": {
214+
"type": "string",
215+
"default": "IfNotPresent",
216+
"title": "when kubelet should pull specified image"
207217
}
208218
}
209219
}

0 commit comments

Comments
 (0)