Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
[7.10] [logstash] add rbac custom annotations (#764) (#945)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Borens <[email protected]>
  • Loading branch information
jmlrt and micborens authored Nov 26, 2020
1 parent 254766b commit eebf07c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions logstash/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,10 @@ metadata:
chart: "{{ .Chart.Name }}"
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
{{- if .Values.rbac.annotations }}
annotations:
{{- range $key, $value := .Values.rbac.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
{{- end -}}
2 changes: 2 additions & 0 deletions logstash/tests/logstash_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,8 @@ def test_pod_security_policy():
rbac:
create: true
serviceAccountName: ""
annotations:
"eks.amazonaws.com/role-arn": "test-rbac-annotations"
podSecurityPolicy:
create: true
Expand Down
4 changes: 4 additions & 0 deletions logstash/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ rbac:
create: false
serviceAccountAnnotations: {}
serviceAccountName: ""
annotations: {}
#annotation1: "value1"
#annotation2: "value2"
#annotation3: "value3"

podSecurityPolicy:
create: false
Expand Down

0 comments on commit eebf07c

Please sign in to comment.