Browse Source
Added in code to allow control over pull policy for local path provis… (#5334 )
* Added in code to allow control over pull policy for local path provisioner
* change to imagePullPolicy to use globally used variable k8s_image_pull_policy
* removed unusued variable from defaults
* updated contiv-etcd and cinder-csi-controllerplugin to use k8s_image_pull_policy variable
pull/5616/head
lcooper40
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
3 additions and
3 deletions
roles/kubernetes-apps/csi_driver/cinder/templates/cinder-csi-controllerplugin.yml.j2
roles/kubernetes-apps/external_provisioner/local_path_provisioner/templates/local-path-storage-deployment.yml.j2
roles/network_plugin/contiv/templates/contiv-etcd.yml.j2
@ -49,7 +49,7 @@ spec:
env:
env:
- name: ADDRESS
- name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock
value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: Always
imagePullPolicy: {{ k8s_image_pull_policy }}
volumeMounts:
volumeMounts:
- mountPath: /var/lib/csi/sockets/pluginproxy/
- mountPath: /var/lib/csi/sockets/pluginproxy/
name: socket-dir
name: socket-dir
@ -18,7 +18,7 @@ spec:
containers:
containers:
- name: local-path-provisioner
- name: local-path-provisioner
image: {{ local_path_provisioner_image_repo }}:{{ local_path_provisioner_image_tag }}
image: {{ local_path_provisioner_image_repo }}:{{ local_path_provisioner_image_tag }}
imagePullPolicy: Always
imagePullPolicy: {{ k8s_image_pull_policy }}
command:
command:
- local-path-provisioner
- local-path-provisioner
- start
- start
@ -29,7 +29,7 @@ spec:
initContainers:
initContainers:
- name: contiv-etcd-init
- name: contiv-etcd-init
image: {{ contiv_etcd_init_image_repo }}:{{ contiv_etcd_init_image_tag }}
image: {{ contiv_etcd_init_image_repo }}:{{ contiv_etcd_init_image_tag }}
imagePullPolicy: Always
imagePullPolicy: {{ k8s_image_pull_policy }}
env:
env:
- name: ETCD_INIT_ARGSFILE
- name: ETCD_INIT_ARGSFILE
value: '{{ contiv_etcd_conf_dir }}/contiv-etcd-args'
value: '{{ contiv_etcd_conf_dir }}/contiv-etcd-args'