Skip to content

Commit

Permalink
Add annotation abilities to the new service account
Browse files Browse the repository at this point in the history
  • Loading branch information
krmichel committed Feb 26, 2020
1 parent 0c243cd commit 5a73c52
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions aws-ebs-csi-driver/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ kind: ServiceAccount
metadata:
name: ebs-csi-controller-sa
namespace: kube-system
{{- with .Values.serviceAccount.annotations }}
{{- with .Values.serviceAccount.controller.annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}

---
# RBAC file for the snapshot controller.
apiVersion: v1
kind: ServiceAccount
metadata:
name: ebs-snapshot-controller
namespace: kube-system
{{- with .Values.serviceAccount.snapshot.annotations }}
annotations: {{ toYaml . | nindent 4 }}
{{- end }}
6 changes: 5 additions & 1 deletion aws-ebs-csi-driver/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,8 @@ node:
tolerations: []

serviceAccount:
annotations: {}
controller:
annotations: {}
snapshot:
annotations: {}

0 comments on commit 5a73c52

Please sign in to comment.