Skip to content

Commit 24b9680

Browse files
authored
Merge pull request #1649 from sm43/sa-annotation-support
loadtester: add support for annotation on service account
2 parents 2d89870 + 0ab3c07 commit 24b9680

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

charts/loadtester/templates/rbac.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@ metadata:
5151
app.kubernetes.io/name: {{ template "loadtester.name" . }}
5252
app.kubernetes.io/managed-by: {{ .Release.Service }}
5353
app.kubernetes.io/instance: {{ .Release.Name }}
54+
{{- if .Values.rbac.serviceAccountAnnotations }}
55+
annotations: {{ tpl (toYaml .Values.rbac.serviceAccountAnnotations) . | nindent 4 }}
56+
{{- end }}
5457
{{- end }}

charts/loadtester/values.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ rbac:
5454
# resources: ["pods"]
5555
# verbs: ["list", "get"]
5656
rules: []
57+
# annotations to add to the service account
58+
serviceAccountAnnotations: {}
5759

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

0 commit comments

Comments
 (0)