Browse Source

Add kubelet-plugins to allowed locations

Hemant Kumar 6 years ago
parent
commit
360d1e0d87

+ 1 - 0
roles/lib_utils/action_plugins/master_check_paths_in_config.py

@@ -32,6 +32,7 @@ ALLOWED_DIRS = (
     '/etc/origin/master/',
     '/var/lib/origin',
     '/etc/origin/cloudprovider',
+    '/etc/origin/kubelet-plugins',
 )
 
 ALLOWED_DIRS_STRING = ', '.join(ALLOWED_DIRS)

+ 4 - 0
roles/openshift_node_group/templates/node-config.yaml.j2

@@ -20,6 +20,10 @@ imageConfig:
   latest: false
 iptablesSyncPeriod: "{{ openshift_node_iptables_sync_period }}"
 kubeletArguments:
+{% if openshift_is_atomic | bool %}
+  volume-plugin-dir:
+  - "{{ openshift_flexvolume_container_directory_default }}/volume/exec"
+{% endif %}
 {% if openshift_use_crio | bool %}
   container-runtime:
   - remote