Allow configuration of nodelabels in local_volume_provisioner (#6620)

This commit is contained in:
Lukas Grossar
2020-09-17 11:44:58 +02:00
committed by GitHub
parent b6b26c710f
commit a870dd368e
3 changed files with 15 additions and 0 deletions

View File

@@ -16,6 +16,12 @@ metadata:
name: local-volume-provisioner
namespace: {{ local_volume_provisioner_namespace }}
data:
{% if local_volume_provisioner_nodelabels | length > 0 %}
nodeLabelsForPV: |
{% for nodelabel in local_volume_provisioner_nodelabels %}
- {{ nodelabel }}
{% endfor %}
{% endif %}
storageClassMap: |
{% for class_name, storage_class in local_volume_provisioner_storage_classes.items() %}
{{ class_name }}: