Files
charts/bitnami/fluentd/templates/forwarder-clusterrolebinding.yaml
Jose Antonio Carmona 1b898101d8 [bitnami/fluentd] Add GOSS tests and publish using VIB (#11427)
Signed-off-by: Jose Antonio Carmona <jcarmona@vmware.com>
2022-07-29 19:10:28 +02:00

23 lines
956 B
YAML

{{- if and .Values.forwarder.enabled .Values.forwarder.rbac.create }}
kind: ClusterRoleBinding
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
metadata:
name: {{ include "common.names.fullname.namespace" . }}
namespace: {{ .Release.Namespace | quote }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
{{- if .Values.commonLabels }}
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
{{- end }}
{{- if .Values.commonAnnotations }}
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
{{- end }}
roleRef:
kind: ClusterRole
apiGroup: rbac.authorization.k8s.io
name: {{ template "common.names.fullname.namespace" . }}
subjects:
- kind: ServiceAccount
name: {{ template "fluentd.forwarder.serviceAccountName" . }}
namespace: {{ .Release.Namespace | quote }}
{{- end }}