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

Commit

Permalink
[6.8] [logstash] add rbac custom annotations (elastic#764) (elastic#944)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Borens <appo.esl@gmail.com>
  • Loading branch information
jmlrt and micborens authored Nov 26, 2020
1 parent f15a6be commit f93bb01
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 f93bb01

Please sign in to comment.