Added support for dynamic tags in AWS and Azure. (#6752)

* Added support for dynamic tags in AWS and Azure.

* Added examples of dynamic tags configuration.
This commit is contained in:
Mateusz Adamek 2020-09-26 19:50:48 +02:00 committed by GitHub
parent e67886bf9d
commit aba63f0f9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 0 deletions

View file

@ -6,3 +6,4 @@
# aws_ebs_csi_enable_volume_resizing: false # aws_ebs_csi_enable_volume_resizing: false
# aws_ebs_csi_controller_replicas: 1 # aws_ebs_csi_controller_replicas: 1
# aws_ebs_csi_plugin_image_tag: latest # aws_ebs_csi_plugin_image_tag: latest
# aws_ebs_csi_extra_volume_tags: "Owner=owner,Team=team,Environment=environment'

View file

@ -30,6 +30,7 @@
# azure_csi_subnet_name: # azure_csi_subnet_name:
# azure_csi_security_group_name: # azure_csi_security_group_name:
# azure_csi_use_instance_metadata: # azure_csi_use_instance_metadata:
# azure_csi_tags: "Owner=owner,Team=team,Environment=environment'
## To enable Azure Disk CSI, uncomment below ## To enable Azure Disk CSI, uncomment below
# azure_csi_enabled: true # azure_csi_enabled: true

View file

@ -25,6 +25,9 @@ spec:
image: {{ aws_ebs_csi_plugin_image_repo }}:{{ aws_ebs_csi_plugin_image_tag }} image: {{ aws_ebs_csi_plugin_image_repo }}:{{ aws_ebs_csi_plugin_image_tag }}
args: args:
- --endpoint=$(CSI_ENDPOINT) - --endpoint=$(CSI_ENDPOINT)
{% if aws_ebs_csi_extra_volume_tags is defined %}
- --extra-volume-tags={{ aws_ebs_csi_extra_volume_tags }}
{% endif %}
- --logtostderr - --logtostderr
- --v=5 - --v=5
env: env:

View file

@ -27,6 +27,9 @@ spec:
image: {{ aws_ebs_csi_plugin_image_repo }}:{{ aws_ebs_csi_plugin_image_tag }} image: {{ aws_ebs_csi_plugin_image_repo }}:{{ aws_ebs_csi_plugin_image_tag }}
args: args:
- --endpoint=$(CSI_ENDPOINT) - --endpoint=$(CSI_ENDPOINT)
{% if aws_ebs_csi_extra_volume_tags is defined %}
- --extra-volume-tags={{ aws_ebs_csi_extra_volume_tags }}
{% endif %}
- --logtostderr - --logtostderr
- --v=5 - --v=5
env: env:

View file

@ -6,6 +6,9 @@ metadata:
provisioner: disk.csi.azure.com provisioner: disk.csi.azure.com
parameters: parameters:
skuname: {{ storage_account_type }} skuname: {{ storage_account_type }}
{% if azure_csi_tags is defined %}
tags: {{ azure_csi_tags }}
{% endif %}
reclaimPolicy: Delete reclaimPolicy: Delete
volumeBindingMode: Immediate volumeBindingMode: Immediate
allowVolumeExpansion: true allowVolumeExpansion: true