Skip to content

Commit

Permalink
loadtester: add support for annotation on service account
Browse files Browse the repository at this point in the history
this adds support to add annotation on serviceaccount when rbac is enabled.

Signed-off-by: Shivam Mukhade <[email protected]>
  • Loading branch information
sm43 committed May 24, 2024
1 parent 2d89870 commit 0ab3c07
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 0ab3c07

Please sign in to comment.