Skip to content

Commit

Permalink
Merge pull request #50 from huang-jy/master
Browse files Browse the repository at this point in the history
Enable ServiceAccount annotations
  • Loading branch information
vania-pooh authored Apr 9, 2021
2 parents a78fca6 + 97f3099 commit 48d2b0f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions moon/templates/moon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ kind: ServiceAccount
metadata:
name: {{ .Release.Name }}
namespace: {{ .Release.Namespace }}
{{- if and .Values.moon.serviceaccount .Values.moon.serviceaccount.annotations }}
annotations:
{{- range $key, $value := .Values.moon.serviceaccount.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand Down
8 changes: 8 additions & 0 deletions moon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ moon:
enabled:
resources: true

##
## Optionally add annotations to the service account generated byt the chart
## This is necessary if you intend to use the moon service account for
## Workload Identity or want to tag it for any security monitoring tools
##
serviceaccount:
annotations: {}
# iam.gke.io/gcp-service-account: [email protected]
# ##
# ## Global timeouts.
# ##
Expand Down

0 comments on commit 48d2b0f

Please sign in to comment.