summaryrefslogtreecommitdiffstats
path: root/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrole.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/clusterrole.yaml
parentda059633bfc66d591b660cc375cfca6c910a1f4a (diff)
parent4c49c8094c158199556faff88385c8abbd97e498 (diff)
Merge "Add nfd addon helm chart"
Diffstat (limited to 'kud/deployment_infra/helm/node-feature-discovery/templates/clusterrole.yaml')
-rw-r--r--kud/deployment_infra/helm/node-feature-discovery/templates/clusterrole.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrole.yaml b/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrole.yaml
new file mode 100644
index 00000000..a4da2303
--- /dev/null
+++ b/kud/deployment_infra/helm/node-feature-discovery/templates/clusterrole.yaml
@@ -0,0 +1,21 @@
+{{- if .Values.rbac.create }}
+apiVersion: rbac.authorization.k8s.io/v1
+kind: ClusterRole
+metadata:
+ name: {{ include "node-feature-discovery.fullname" . }}
+ labels:
+ {{- include "node-feature-discovery.labels" . | nindent 4 }}
+rules:
+- apiGroups:
+ - ""
+ resources:
+ - nodes
+ # when using command line flag --resource-labels to create extended resources
+ # you will need to uncomment "- nodes/status"
+ # - nodes/status
+ verbs:
+ - get
+ - patch
+ - update
+ - list
+{{- end }}