Files
charts/bitnami/fluent-bit/templates/clusterrolebinding.yaml
Carlos Rodríguez Hernández 30dd293c95 [bitnami/fluent-bit] Remove namespace field for cluster wide resources (#17275)
* [bitnami/fluent-bit] Remove namespace field for cluster wide resources

Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>

* Update clusterrolebinding.yaml

Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>

---------

Signed-off-by: Carlos Rodríguez Hernández <carlosrh@vmware.com>
2023-06-21 12:38:29 +02:00

23 lines
899 B
YAML

{{- if .Values.rbac.create -}}
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
kind: ClusterRoleBinding
metadata:
name: {{ include "common.names.fullname" . }}
labels: {{- include "common.labels.standard" . | nindent 4 }}
app.kubernetes.io/part-of: fluent-bit
{{- 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:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ include "fluent-bit.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ include "fluent-bit.serviceAccountName" . }}
namespace: {{ include "common.names.namespace" . | quote }}
{{- end -}}