local provisioner 'useNodeNameOnly' option can be configured (#7421)
This commit is contained in:
parent
6330db89a7
commit
7e75d48cc4
2 changed files with 4 additions and 0 deletions
|
@ -7,6 +7,7 @@ local_volume_provisioner_nodelabels: []
|
||||||
# - topology.kubernetes.io/zone
|
# - topology.kubernetes.io/zone
|
||||||
# Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
|
# Levarages Ansibles string to Python datatype casting. Otherwise the dict_key isn't substituted
|
||||||
# see https://github.com/ansible/ansible/issues/17324
|
# 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_classes: |
|
||||||
{
|
{
|
||||||
"{{ local_volume_provisioner_storage_class | default('local-storage') }}": {
|
"{{ local_volume_provisioner_storage_class | default('local-storage') }}": {
|
||||||
|
|
|
@ -21,6 +21,9 @@ data:
|
||||||
{% for nodelabel in local_volume_provisioner_nodelabels %}
|
{% for nodelabel in local_volume_provisioner_nodelabels %}
|
||||||
- {{ nodelabel }}
|
- {{ nodelabel }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
{% if local_volume_provisioner_use_node_name_only %}
|
||||||
|
useNodeNameOnly: "true"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
storageClassMap: |
|
storageClassMap: |
|
||||||
{% for class_name, storage_class in local_volume_provisioner_storage_classes.items() %}
|
{% for class_name, storage_class in local_volume_provisioner_storage_classes.items() %}
|
||||||
|
|
Loading…
Reference in a new issue