Using templated imagePullPolicy for containers in deployment.yaml (#1137)

Configured imagePullPolicy to be used from values.yaml for some system container such as InfluxDB, Heapster etc.
This commit is contained in:
msshroff
2019-04-26 16:05:11 +05:30
committed by Vishal
parent 3cbb02465b
commit 9a3cc517d0
5 changed files with 8 additions and 1 deletions
@@ -31,5 +31,6 @@ spec:
containers:
- name: post-upgrade-job
image: "fission/alpinecurl"
imagePullPolicy: {{ .Values.pullPolicy }}
command: ["sh", "-c", "/usr/bin/curl -m 5 -H \"Content-Type: application/json\" -X POST -d '{\"type\": \"helm-post-upgrade\", \"chartName\": \"{{ .Chart.Name }}\", \"chartVersion\": \"{{ .Chart.Version }}\"}' https://g.fission.sh/analytics || true"]
{{- end }}