summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml
blob: 4766d9a1b14cd98916a922fea5636ae06276dd01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{{- if .Values.rbac.create }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: {{ include "node-feature-discovery.fullname" . }}
  labels:
    {{- include "node-feature-discovery.labels" . | nindent 4 }}
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: {{ include "node-feature-discovery.fullname" . }}
subjects:
- kind: ServiceAccount
  name: {{ include "node-feature-discovery.serviceAccountName" . }}
  namespace: {{ $.Release.Namespace }}
{{- end }}