Преглед на файлове

Enable missing feature-gate for VolumeScheduling (also use already defined feature-gate entry for node config)

Diego Abelenda преди 7 години
родител
ревизия
33c4938c18
променени са 2 файла, в които са добавени 6 реда и са изтрити 4 реда
  1. 2 0
      roles/openshift_control_plane/templates/master.yaml.v1.j2
  2. 4 4
      roles/openshift_node_group/templates/node-config.yaml.j2

+ 2 - 0
roles/openshift_control_plane/templates/master.yaml.v1.j2

@@ -85,11 +85,13 @@ kubernetesMasterConfig:
 {% if openshift_master_use_persistentlocalvolumes | bool %}
     feature-gates:
     - PersistentLocalVolumes=true
+    - VolumeScheduling=true
 {% endif %}
   controllerArguments: {{ openshift.master.controller_args | default(None) | lib_utils_to_padded_yaml( level=2 ) }}
 {% if openshift_master_use_persistentlocalvolumes | bool %}
     feature-gates:
     - PersistentLocalVolumes=true
+    - VolumeScheduling=true
 {% endif %}
   masterCount: {{ openshift_master_count | default(groups.oo_masters | length) }}
   masterIP: {{ openshift.common.ip }}

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

@@ -36,6 +36,10 @@ kubeletArguments:
   - /etc/origin/node/bootstrap.kubeconfig
   feature-gates:
   - RotateKubeletClientCertificate=true,RotateKubeletServerCertificate=true
+{% if openshift_node_group_use_persistentlocalvolumes | bool %}
+  - PersistentLocalVolumes=true
+  - VolumeScheduling=true
+{% endif %}
   rotate-certificates:
   - "true"
   cert-dir:
@@ -50,10 +54,6 @@ kubeletArguments:
   - "{{ openshift_node_group_labels | join(',') }}"
   enable-controller-attach-detach:
   - 'true'
-{% if openshift_node_group_use_persistentlocalvolumes | bool %}
-  feature-gates:
-  - PersistentLocalVolumes=true
-{% endif %}
 masterClientConnectionOverrides:
   acceptContentTypes: application/vnd.kubernetes.protobuf,application/json
   burst: 40