Skip to content
Snippets Groups Projects
Unverified Commit 03dff09b authored by w33dw0r7d's avatar w33dw0r7d Committed by GitHub
Browse files

fix kubelet_flexvolumes_plugins_dir undefined (#6645)

parent a556f8f2
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment