Fix ImagePullPolicy missing variable usage (#6091)

pull/6112/head
Florian Ruynat 2020-05-10 20:37:50 +02:00 committed by GitHub
parent 21ea079896
commit b6243bfc1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 25 additions and 26 deletions

View File

@ -24,6 +24,7 @@ spec:
containers: containers:
- name: netchecker-agent - name: netchecker-agent
image: "{{ netcheck_agent_image_repo }}:{{ netcheck_agent_image_tag }}" image: "{{ netcheck_agent_image_repo }}:{{ netcheck_agent_image_tag }}"
imagePullPolicy: {{ k8s_image_pull_policy }}
env: env:
- name: MY_POD_NAME - name: MY_POD_NAME
valueFrom: valueFrom:
@ -38,7 +39,6 @@ spec:
- "-alsologtostderr=true" - "-alsologtostderr=true"
- "-serverendpoint=netchecker-service:8081" - "-serverendpoint=netchecker-service:8081"
- "-reportinterval={{ agent_report_interval }}" - "-reportinterval={{ agent_report_interval }}"
imagePullPolicy: {{ k8s_image_pull_policy }}
resources: resources:
limits: limits:
cpu: {{ netchecker_agent_cpu_limit }} cpu: {{ netchecker_agent_cpu_limit }}

View File

@ -26,6 +26,7 @@ spec:
containers: containers:
- name: netchecker-agent - name: netchecker-agent
image: "{{ netcheck_agent_image_repo }}:{{ netcheck_agent_image_tag }}" image: "{{ netcheck_agent_image_repo }}:{{ netcheck_agent_image_tag }}"
imagePullPolicy: {{ k8s_image_pull_policy }}
env: env:
- name: MY_POD_NAME - name: MY_POD_NAME
valueFrom: valueFrom:
@ -40,7 +41,6 @@ spec:
- "-alsologtostderr=true" - "-alsologtostderr=true"
- "-serverendpoint=netchecker-service:8081" - "-serverendpoint=netchecker-service:8081"
- "-reportinterval={{ agent_report_interval }}" - "-reportinterval={{ agent_report_interval }}"
imagePullPolicy: {{ k8s_image_pull_policy }}
resources: resources:
limits: limits:
cpu: {{ netchecker_agent_cpu_limit }} cpu: {{ netchecker_agent_cpu_limit }}

View File

@ -20,7 +20,6 @@ spec:
containers: containers:
- name: netchecker-server - name: netchecker-server
image: "{{ netcheck_server_image_repo }}:{{ netcheck_server_image_tag }}" image: "{{ netcheck_server_image_repo }}:{{ netcheck_server_image_tag }}"
env:
imagePullPolicy: {{ k8s_image_pull_policy }} imagePullPolicy: {{ k8s_image_pull_policy }}
resources: resources:
limits: limits:

View File

@ -103,7 +103,7 @@ spec:
{% if aws_ebs_csi_enable_volume_resizing %} {% if aws_ebs_csi_enable_volume_resizing %}
- name: csi-resizer - name: csi-resizer
image: {{ csi_resizer_image_repo }}:{{ csi_resizer_image_tag }} image: {{ csi_resizer_image_repo }}:{{ csi_resizer_image_tag }}
imagePullPolicy: Always imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- --csi-address=$(ADDRESS) - --csi-address=$(ADDRESS)
- --v=5 - --v=5

View File

@ -27,6 +27,7 @@ spec:
containers: containers:
- name: csi-provisioner - name: csi-provisioner
image: {{ azure_csi_image_repo }}/csi-provisioner:{{ azure_csi_provisioner_image_tag }} image: {{ azure_csi_image_repo }}/csi-provisioner:{{ azure_csi_provisioner_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--provisioner=disk.csi.azure.com" - "--provisioner=disk.csi.azure.com"
- "--feature-gates=Topology=true" - "--feature-gates=Topology=true"
@ -39,7 +40,6 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /csi/csi.sock value: /csi/csi.sock
imagePullPolicy: IfNotPresent
volumeMounts: volumeMounts:
- mountPath: /csi - mountPath: /csi
name: socket-dir name: socket-dir
@ -52,6 +52,7 @@ spec:
memory: 20Mi memory: 20Mi
- name: csi-attacher - name: csi-attacher
image: {{ azure_csi_image_repo }}/csi-attacher:{{ azure_csi_attacher_image_tag }} image: {{ azure_csi_image_repo }}/csi-attacher:{{ azure_csi_attacher_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "-v=5" - "-v=5"
- "-csi-address=$(ADDRESS)" - "-csi-address=$(ADDRESS)"
@ -61,7 +62,6 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /csi/csi.sock value: /csi/csi.sock
imagePullPolicy: IfNotPresent
volumeMounts: volumeMounts:
- mountPath: /csi - mountPath: /csi
name: socket-dir name: socket-dir
@ -148,6 +148,7 @@ spec:
memory: 20Mi memory: 20Mi
- name: azuredisk - name: azuredisk
image: {{ azure_csi_plugin_image_repo }}/azuredisk-csi:{{ azure_csi_plugin_image_tag }} image: {{ azure_csi_plugin_image_repo }}/azuredisk-csi:{{ azure_csi_plugin_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--v=5" - "--v=5"
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=$(CSI_ENDPOINT)"
@ -172,7 +173,6 @@ spec:
value: "/etc/kubernetes/azure.json" value: "/etc/kubernetes/azure.json"
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: unix:///csi/csi.sock value: unix:///csi/csi.sock
imagePullPolicy: IfNotPresent
volumeMounts: volumeMounts:
- mountPath: /csi - mountPath: /csi
name: socket-dir name: socket-dir

View File

@ -19,11 +19,11 @@ spec:
priorityClassName: system-node-critical priorityClassName: system-node-critical
containers: containers:
- name: liveness-probe - name: liveness-probe
imagePullPolicy: IfNotPresent
volumeMounts: volumeMounts:
- mountPath: /csi - mountPath: /csi
name: socket-dir name: socket-dir
image: {{ azure_csi_image_repo }}/livenessprobe:{{ azure_csi_livenessprobe_image_tag }} image: {{ azure_csi_image_repo }}/livenessprobe:{{ azure_csi_livenessprobe_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- --csi-address=/csi/csi.sock - --csi-address=/csi/csi.sock
- --connection-timeout=3s - --connection-timeout=3s
@ -65,6 +65,7 @@ spec:
memory: 20Mi memory: 20Mi
- name: azuredisk - name: azuredisk
image: {{ azure_csi_plugin_image_repo }}/azuredisk-csi:{{ azure_csi_plugin_image_tag }} image: {{ azure_csi_plugin_image_repo }}/azuredisk-csi:{{ azure_csi_plugin_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--v=5" - "--v=5"
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=$(CSI_ENDPOINT)"
@ -95,7 +96,6 @@ spec:
fieldRef: fieldRef:
apiVersion: v1 apiVersion: v1
fieldPath: spec.nodeName fieldPath: spec.nodeName
imagePullPolicy: IfNotPresent
securityContext: securityContext:
privileged: true privileged: true
volumeMounts: volumeMounts:

View File

@ -21,6 +21,7 @@ spec:
containers: containers:
- name: csi-attacher - name: csi-attacher
image: {{ csi_attacher_image_repo }}:{{ csi_attacher_image_tag }} image: {{ csi_attacher_image_repo }}:{{ csi_attacher_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--v=5" - "--v=5"
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
@ -32,12 +33,12 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/ mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-provisioner - name: csi-provisioner
image: {{ csi_provisioner_image_repo }}:{{ csi_provisioner_image_tag }} image: {{ csi_provisioner_image_repo }}:{{ csi_provisioner_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
{% if cinder_topology is defined and cinder_topology %} {% if cinder_topology is defined and cinder_topology %}
@ -51,12 +52,12 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/ mountPath: /var/lib/csi/sockets/pluginproxy/
- name: csi-snapshotter - name: csi-snapshotter
image: {{ csi_snapshotter_image_repo }}:{{ csi_snapshotter_image_tag }} image: {{ csi_snapshotter_image_repo }}:{{ csi_snapshotter_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
{% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %} {% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %}
@ -66,12 +67,12 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
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
- name: csi-resizer - name: csi-resizer
image: {{ csi_resizer_image_repo }}:{{ csi_resizer_image_tag }} image: {{ csi_resizer_image_repo }}:{{ csi_resizer_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
{% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %} {% if cinder_csi_controller_replicas is defined and cinder_csi_controller_replicas > 1 %}
@ -81,13 +82,13 @@ spec:
env: env:
- name: ADDRESS - name: ADDRESS
value: /var/lib/csi/sockets/pluginproxy/csi.sock value: /var/lib/csi/sockets/pluginproxy/csi.sock
imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /var/lib/csi/sockets/pluginproxy/ mountPath: /var/lib/csi/sockets/pluginproxy/
- name: cinder-csi-plugin - name: cinder-csi-plugin
image: {{ cinder_csi_plugin_image_repo }}:{{ cinder_csi_plugin_image_tag }} image: {{ cinder_csi_plugin_image_repo }}:{{ cinder_csi_plugin_image_tag }}
args : imagePullPolicy: {{ k8s_image_pull_policy }}
args:
- /bin/cinder-csi-plugin - /bin/cinder-csi-plugin
- "--nodeid=$(NODE_ID)" - "--nodeid=$(NODE_ID)"
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=$(CSI_ENDPOINT)"
@ -104,7 +105,6 @@ spec:
value: /etc/config/cloud.conf value: /etc/config/cloud.conf
- name: CLUSTER_NAME - name: CLUSTER_NAME
value: kubernetes value: kubernetes
imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi

View File

@ -20,6 +20,7 @@ spec:
containers: containers:
- name: node-driver-registrar - name: node-driver-registrar
image: {{ csi_node_driver_registrar_image_repo }}:{{ csi_node_driver_registrar_image_tag }} image: {{ csi_node_driver_registrar_image_repo }}:{{ csi_node_driver_registrar_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--csi-address=$(ADDRESS)" - "--csi-address=$(ADDRESS)"
- "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)" - "--kubelet-registration-path=$(DRIVER_REG_SOCK_PATH)"
@ -36,7 +37,6 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi
@ -49,7 +49,8 @@ spec:
add: ["SYS_ADMIN"] add: ["SYS_ADMIN"]
allowPrivilegeEscalation: true allowPrivilegeEscalation: true
image: {{ cinder_csi_plugin_image_repo }}:{{ cinder_csi_plugin_image_tag }} image: {{ cinder_csi_plugin_image_repo }}:{{ cinder_csi_plugin_image_tag }}
args : imagePullPolicy: {{ k8s_image_pull_policy }}
args:
- /bin/cinder-csi-plugin - /bin/cinder-csi-plugin
- "--nodeid=$(NODE_ID)" - "--nodeid=$(NODE_ID)"
- "--endpoint=$(CSI_ENDPOINT)" - "--endpoint=$(CSI_ENDPOINT)"
@ -63,7 +64,6 @@ spec:
value: unix://csi/csi.sock value: unix://csi/csi.sock
- name: CLOUD_CONFIG - name: CLOUD_CONFIG
value: /etc/config/cloud.conf value: /etc/config/cloud.conf
imagePullPolicy: "IfNotPresent"
volumeMounts: volumeMounts:
- name: socket-dir - name: socket-dir
mountPath: /csi mountPath: /csi

View File

@ -40,13 +40,13 @@ spec:
name: socket-dir name: socket-dir
- name: vsphere-csi-controller - name: vsphere-csi-controller
image: {{ gcr_image_repo }}/cloud-provider-vsphere/csi/release/driver:{{ vsphere_csi_controller }} image: {{ gcr_image_repo }}/cloud-provider-vsphere/csi/release/driver:{{ vsphere_csi_controller }}
imagePullPolicy: {{ k8s_image_pull_policy }}
lifecycle: lifecycle:
preStop: preStop:
exec: exec:
command: ["/bin/sh", "-c", "rm -rf /var/lib/csi/sockets/pluginproxy/csi.vsphere.vmware.com"] command: ["/bin/sh", "-c", "rm -rf /var/lib/csi/sockets/pluginproxy/csi.vsphere.vmware.com"]
args: args:
- "--v=4" - "--v=4"
imagePullPolicy: "Always"
env: env:
- name: CSI_ENDPOINT - name: CSI_ENDPOINT
value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock value: unix:///var/lib/csi/sockets/pluginproxy/csi.sock
@ -84,9 +84,9 @@ spec:
name: socket-dir name: socket-dir
- name: vsphere-syncer - name: vsphere-syncer
image: {{ gcr_image_repo }}/cloud-provider-vsphere/csi/release/syncer:{{ vsphere_syncer_image_tag }} image: {{ gcr_image_repo }}/cloud-provider-vsphere/csi/release/syncer:{{ vsphere_syncer_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- "--v=2" - "--v=2"
imagePullPolicy: "Always"
env: env:
- name: FULL_SYNC_INTERVAL_MINUTES - name: FULL_SYNC_INTERVAL_MINUTES
value: "30" value: "30"

View File

@ -41,7 +41,7 @@ spec:
mountPath: /registration mountPath: /registration
- name: vsphere-csi-node - name: vsphere-csi-node
image: {{ gcr_image_repo }}/cloud-provider-vsphere/csi/release/driver:{{ vsphere_csi_driver_image_tag }} image: {{ gcr_image_repo }}/cloud-provider-vsphere/csi/release/driver:{{ vsphere_csi_driver_image_tag }}
imagePullPolicy: "Always" imagePullPolicy: {{ k8s_image_pull_policy }}
env: env:
- name: NODE_NAME - name: NODE_NAME
valueFrom: valueFrom:

View File

@ -85,7 +85,7 @@ spec:
name: cilium-aws name: cilium-aws
optional: true optional: true
image: "{{ cilium_operator_image_repo }}:{{ cilium_operator_image_tag }}" image: "{{ cilium_operator_image_repo }}:{{ cilium_operator_image_tag }}"
imagePullPolicy: IfNotPresent imagePullPolicy: {{ k8s_image_pull_policy }}
name: cilium-operator name: cilium-operator
livenessProbe: livenessProbe:
httpGet: httpGet:

View File

@ -46,7 +46,7 @@ spec:
- name: CILIUM_CLUSTERMESH_CONFIG - name: CILIUM_CLUSTERMESH_CONFIG
value: /var/lib/cilium/clustermesh/ value: /var/lib/cilium/clustermesh/
image: "{{cilium_image_repo}}:{{cilium_image_tag}}" image: "{{cilium_image_repo}}:{{cilium_image_tag}}"
imagePullPolicy: IfNotPresent imagePullPolicy: {{ k8s_image_pull_policy }}
resources: resources:
limits: limits:
cpu: {{ cilium_cpu_limit }} cpu: {{ cilium_cpu_limit }}
@ -162,7 +162,7 @@ spec:
name: cilium-config name: cilium-config
optional: true optional: true
image: "{{cilium_init_image_repo}}:{{cilium_init_image_tag}}" image: "{{cilium_init_image_repo}}:{{cilium_init_image_tag}}"
imagePullPolicy: IfNotPresent imagePullPolicy: {{ k8s_image_pull_policy }}
name: clean-cilium-state name: clean-cilium-state
securityContext: securityContext:
capabilities: capabilities:

View File

@ -217,8 +217,8 @@ spec:
containers: containers:
- name: pinger - name: pinger
image: {{ kube_ovn_container_image_repo }}:{{ kube_ovn_container_image_tag }} image: {{ kube_ovn_container_image_repo }}:{{ kube_ovn_container_image_tag }}
command: ["/kube-ovn/kube-ovn-pinger", "--external-address=114.114.114.114"]
imagePullPolicy: {{ k8s_image_pull_policy }} imagePullPolicy: {{ k8s_image_pull_policy }}
command: ["/kube-ovn/kube-ovn-pinger", "--external-address=114.114.114.114"]
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
privileged: false privileged: false

View File

@ -33,7 +33,7 @@ spec:
containers: containers:
- name: kube-router - name: kube-router
image: {{ kube_router_image_repo }}:{{ kube_router_image_tag }} image: {{ kube_router_image_repo }}:{{ kube_router_image_tag }}
imagePullPolicy: IfNotPresent imagePullPolicy: {{ k8s_image_pull_policy }}
args: args:
- --run-router={{ kube_router_run_router | bool }} - --run-router={{ kube_router_run_router | bool }}
- --run-firewall={{ kube_router_run_firewall | bool }} - --run-firewall={{ kube_router_run_firewall | bool }}