Skip to content

Commit

Permalink
make image pull policy for server and client to be configuratble
Browse files Browse the repository at this point in the history
  • Loading branch information
thilak reddy committed Sep 29, 2023
1 parent 6d806c4 commit d798687
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 d798687

Please sign in to comment.