Skip to content

Commit

Permalink
Merge pull request #53 from thilak009/feature/configurable-image-pull…
Browse files Browse the repository at this point in the history
…-policy

make image pull policy for server and client to be configurable
  • Loading branch information
RazcoDev authored Oct 2, 2023
2 parents 6d806c4 + d798687 commit 116e6b2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/deployment-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion templates/deployment-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,11 @@
"type": "object",
"title": "resources",
"default": null
},
"imagePullPolicy": {
"type": "string",
"default": "IfNotPresent",
"title": "when kubelet should pull specified image"
}
}
},
Expand Down Expand Up @@ -204,6 +209,11 @@
"type": "object",
"title": "resources",
"default": null
},
"imagePullPolicy": {
"type": "string",
"default": "IfNotPresent",
"title": "when kubelet should pull specified image"
}
}
}
Expand Down

0 comments on commit 116e6b2

Please sign in to comment.