Skip to content

Commit

Permalink
Merge pull request #1649 from sm43/sa-annotation-support
Browse files Browse the repository at this point in the history
loadtester: add support for annotation on service account
  • Loading branch information
stefanprodan authored May 24, 2024
2 parents 2d89870 + 0ab3c07 commit 24b9680
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/loadtester/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,7 @@ metadata:
app.kubernetes.io/name: {{ template "loadtester.name" . }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- if .Values.rbac.serviceAccountAnnotations }}
annotations: {{ tpl (toYaml .Values.rbac.serviceAccountAnnotations) . | nindent 4 }}
{{- end }}
{{- end }}
2 changes: 2 additions & 0 deletions charts/loadtester/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ rbac:
# resources: ["pods"]
# verbs: ["list", "get"]
rules: []
# annotations to add to the service account
serviceAccountAnnotations: {}

# name of an existing service account to use - if not creating rbac resources
serviceAccountName: ""
Expand Down

0 comments on commit 24b9680

Please sign in to comment.