From e2b4afbca04d56ccd7b7324e6090e999713f3d8e Mon Sep 17 00:00:00 2001 From: Derek Su Date: Fri, 27 May 2022 14:39:45 +0800 Subject: [PATCH] Make imagePullPolicy configurable Signed-off-by: Derek Su --- chart/templates/daemonset-sa.yaml | 2 +- chart/templates/deployment-driver.yaml | 2 +- chart/templates/deployment-ui.yaml | 2 +- chart/templates/deployment-webhook.yaml | 6 +++--- chart/templates/postupgrade-job.yaml | 2 +- chart/templates/uninstall-job.yaml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/chart/templates/daemonset-sa.yaml b/chart/templates/daemonset-sa.yaml index 62ab3a0..25c435e 100644 --- a/chart/templates/daemonset-sa.yaml +++ b/chart/templates/daemonset-sa.yaml @@ -25,7 +25,7 @@ spec: containers: - name: longhorn-manager image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: privileged: true command: diff --git a/chart/templates/deployment-driver.yaml b/chart/templates/deployment-driver.yaml index fb0390a..67e3c2c 100644 --- a/chart/templates/deployment-driver.yaml +++ b/chart/templates/deployment-driver.yaml @@ -21,7 +21,7 @@ spec: containers: - name: longhorn-driver-deployer image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} command: - longhorn-manager - -d diff --git a/chart/templates/deployment-ui.yaml b/chart/templates/deployment-ui.yaml index 94cbef7..cda01aa 100644 --- a/chart/templates/deployment-ui.yaml +++ b/chart/templates/deployment-ui.yaml @@ -18,7 +18,7 @@ spec: containers: - name: longhorn-ui image: {{ template "registry_url" . }}{{ .Values.image.longhorn.ui.repository }}:{{ .Values.image.longhorn.ui.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} volumeMounts: - name : nginx-cache mountPath: /var/cache/nginx/ diff --git a/chart/templates/deployment-webhook.yaml b/chart/templates/deployment-webhook.yaml index ce61cdc..e80a564 100644 --- a/chart/templates/deployment-webhook.yaml +++ b/chart/templates/deployment-webhook.yaml @@ -30,7 +30,7 @@ spec: containers: - name: longhorn-conversion-webhook image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: runAsUser: 2000 command: @@ -99,13 +99,13 @@ spec: - name: wait-longhorn-conversion-webhook image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} command: ['sh', '-c', 'while [ $(curl -m 1 -s -o /dev/null -w "%{http_code}" -k https://longhorn-conversion-webhook:9443/v1/healthz) != "200" ]; do echo waiting; sleep 2; done'] - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: runAsUser: 2000 containers: - name: longhorn-admission-webhook image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: runAsUser: 2000 command: diff --git a/chart/templates/postupgrade-job.yaml b/chart/templates/postupgrade-job.yaml index 4af75e2..d0691fe 100644 --- a/chart/templates/postupgrade-job.yaml +++ b/chart/templates/postupgrade-job.yaml @@ -18,7 +18,7 @@ spec: containers: - name: longhorn-post-upgrade image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: privileged: true command: diff --git a/chart/templates/uninstall-job.yaml b/chart/templates/uninstall-job.yaml index 5f21b10..cecb590 100644 --- a/chart/templates/uninstall-job.yaml +++ b/chart/templates/uninstall-job.yaml @@ -18,7 +18,7 @@ spec: containers: - name: longhorn-uninstall image: {{ template "registry_url" . }}{{ .Values.image.longhorn.manager.repository }}:{{ .Values.image.longhorn.manager.tag }} - imagePullPolicy: IfNotPresent + imagePullPolicy: {{ .Values.image.pullPolicy }} securityContext: privileged: true command: