summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml
diff options
context:
space:
mode:
authorRitu Sood <ritu.sood@intel.com>2021-04-30 21:23:37 +0000
committerGerrit Code Review <gerrit@onap.org>2021-04-30 21:23:37 +0000
commit44edb464dcc62a4693e71e3f3ceb18bbcf27e70c (patch)
tree9ffea76bb30b8c63bcc6853d03abef1fbee5a279 /kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml
parentda059633bfc66d591b660cc375cfca6c910a1f4a (diff)
parent4c49c8094c158199556faff88385c8abbd97e498 (diff)
Merge "Add nfd addon helm chart"
Diffstat (limited to 'kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml')
-rw-r--r--kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml16
1 files changed, 16 insertions, 0 deletions
diff --git a/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml b/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml
new file mode 100644
index 00000000..4766d9a1
--- /dev/null
+++ b/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrolebinding.yaml
@@ -0,0 +1,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 }}