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

[logstash] add rbac custom annotations #764

Merged
merged 2 commits into from
Nov 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions logstash/templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,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 @@ -596,6 +596,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 @@ -71,6 +71,10 @@ volumeClaimTemplate:
rbac:
create: false
serviceAccountName: ""
annotations: {}
#annotation1: "value1"
#annotation2: "value2"
#annotation3: "value3"

podSecurityPolicy:
create: false
Expand Down