Add support for including annotations on aws-ebs-csi-controller (#8779)

* Add support for including annotations on aws-ebs-csi-controller

* update comment to specify role arn
This commit is contained in:
David Louks 2022-05-20 17:00:00 -05:00 committed by GitHub
parent 9d3a894991
commit 93fe3e06ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 0 deletions

View file

@ -4,3 +4,8 @@ aws_ebs_csi_enable_volume_snapshot: false
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
# Add annotions to ebs_csi_controller. Useful if using kube2iam for role assumption
# aws_ebs_csi_annotations:
# - key: iam.amazonaws.com/role
# value: your-ebs-role-arn

View file

@ -15,6 +15,12 @@ spec:
labels: labels:
app: ebs-csi-controller app: ebs-csi-controller
app.kubernetes.io/name: aws-ebs-csi-driver app.kubernetes.io/name: aws-ebs-csi-driver
{% if aws_ebs_csi_annotations is defined %}
annotations:
{% for annotation in aws_ebs_csi_annotations %}
{{ annotation.key }}: {{ annotation.value }}
{% endfor %}
{% endif %}
spec: spec:
nodeSelector: nodeSelector:
kubernetes.io/os: linux kubernetes.io/os: linux