local provisioner 'useNodeNameOnly' option can be configured (#7421)

(cherry picked from commit 7e75d48cc4)
This commit is contained in:
orange-llajeanne 2021-04-02 01:54:11 +02:00 committed by Kubernetes Prow Robot
parent 5cf0de61a3
commit 3e8e92b51a
2 changed files with 4 additions and 0 deletions

View file

@ -7,6 +7,7 @@ local_volume_provisioner_nodelabels: []
# - topology.kubernetes.io/zone
# Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
# see https://github.com/ansible/ansible/issues/17324
local_volume_provisioner_use_node_name_only: false
local_volume_provisioner_storage_classes: |
{
"{{ local_volume_provisioner_storage_class | default('local-storage') }}": {

View file

@ -21,6 +21,9 @@ data:
{% for nodelabel in local_volume_provisioner_nodelabels %}
- {{ nodelabel }}
{% endfor %}
{% endif %}
{% if local_volume_provisioner_use_node_name_only %}
useNodeNameOnly: "true"
{% endif %}
storageClassMap: |
{% for class_name, storage_class in local_volume_provisioner_storage_classes.items() %}