Skip to content

Commit

Permalink
fix kubelet_flexvolumes_plugins_dir undefined (kubernetes-sigs#6645)
Browse files Browse the repository at this point in the history
  • Loading branch information
w33dw0r7d authored and LuckySB committed Jan 16, 2021
1 parent 0d1ddec commit a1063f6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@ spec:
name: openstack-cacert
readOnly: true
{% endif %}
{% if kubelet_flexvolumes_plugins_dir is defined %}
- mountPath: /usr/libexec/kubernetes/kubelet-plugins/volume/exec
name: flexvolume-dir
{% endif %}
resources:
requests:
cpu: 200m
Expand All @@ -69,10 +71,12 @@ spec:
value: /etc/config/cloud.conf
hostNetwork: true
volumes:
{% if kubelet_flexvolumes_plugins_dir is defined %}
- hostPath:
path: "{{ kubelet_flexvolumes_plugins_dir }}"
type: DirectoryOrCreate
name: flexvolume-dir
{% endif %}
- hostPath:
path: /etc/kubernetes/pki
type: DirectoryOrCreate
Expand Down

0 comments on commit a1063f6

Please sign in to comment.