Files
20100b 1779eb3a2a [stable/fluentd] specify service account name (#16572)
* Bump chart version

Signed-off-by: Vincent Beaulieu <vbeaulieu@GENETEC.COM>

* Support RBAC

Signed-off-by: Vincent Beaulieu <vbeaulieu@GENETEC.COM>

* Revert deployment.yaml resulting from bad merge

Signed-off-by: Vincent Beaulieu <vbeaulieu@GENETEC.COM>

* add missing newline character

Signed-off-by: Vincent Beaulieu <vbeaulieu@GENETEC.COM>

* Service account name template

Signed-off-by: Vincent Beaulieu <vbeaulieu@GENETEC.COM>
2019-08-30 09:19:54 -07:00

20 lines
543 B
YAML

{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
name: {{ template "fluentd.fullname" . }}
labels:
app: {{ template "fluentd.name" . }}
chart: {{ template "fluentd.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
roleRef:
kind: Role
name: {{ template "fluentd.fullname" . }}
apiGroup: rbac.authorization.k8s.io
subjects:
- kind: ServiceAccount
name: {{ template "fluentd.fullname" . }}
namespace: {{ .Release.Namespace }}
{{- end }}