mirror of
https://github.com/bitnami/charts.git
synced 2026-03-13 06:47:24 +08:00
* [bitnami/fluentd] Add missing namespace metadata Signed-off-by: Miguel Ruiz <miruiz@vmware.com> * ServiceMonitor namespace Signed-off-by: Miguel Ruiz <miruiz@vmware.com>
23 lines
936 B
YAML
23 lines
936 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: {{ .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" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ template "fluentd.forwarder.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
{{- end }}
|