Skip to content

Commit

Permalink
feat(awsebscsiprovisioner): added podAnnotations
Browse files Browse the repository at this point in the history
- added statefulSet.podAnnotations feature

D2IQ-64992 #comment updated awsebscsiprovisioner to include statefulSet.podAnnotations
  • Loading branch information
sebbrandt87 committed Mar 18, 2020
1 parent 410a0fb commit 1f37aff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Check that statefulSet.podAnnoations is rendered
statefulSet:
podAnnotations:
iam.amazonaws.com/role: ebs-csi-driver-role
6 changes: 6 additions & 0 deletions stable/awsebscsiprovisioner/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ spec:
app: ebs-csi-controller
template:
metadata:
{{- if .Values.statefulSet.podAnnotations }}
annotations:
{{- range $key, $value := .Values.statefulSet.podAnnotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
labels:
app: ebs-csi-controller
app.kubernetes.io/name: {{ include "aws-ebs-csi-driver.name" . }}
Expand Down
3 changes: 3 additions & 0 deletions stable/awsebscsiprovisioner/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ tolerations:
operator: Exists

env: {}
statefulSet:
# if you want to use kube2iam or kiam roles define it here as podAnnotation for the controller (statefulSet)
podAnnotations: {}

registrar:
node:
Expand Down

0 comments on commit 1f37aff

Please sign in to comment.