rancher-partner-charts/charts/stackstate/stackstate-k8s-agent/1.0.67/templates/logs-agent-clusterrolebindi...

19 lines
505 B
YAML

{{- if .Values.logsAgent.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ .Release.Name }}-logs-agent
labels:
{{ include "stackstate-k8s-agent.labels" . | indent 4 }}
app.kubernetes.io/component: logs-agent
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ .Release.Name }}-logs-agent
subjects:
- apiGroup: ""
kind: ServiceAccount
name: {{ .Release.Name }}-logs-agent
namespace: {{ .Release.Namespace }}
{{- end -}}