fix kubelet_flexvolumes_plugins_dir undefined (#6645)

This commit is contained in:
w33dw0r7d 2020-09-11 10:34:14 +03:00 committed by GitHub
parent a556f8f2bf
commit 03dff09b8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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