From 759143ea3c830be66b5e324bd7ec0266d668e667 Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Tue, 19 Sep 2023 13:53:19 +0300 Subject: [PATCH] deployment/helm: fix namespace of nfd-worker role and rolebinding Put nfd-worker role and rolebinding in the correct namespace if namespaceOverride parameter is used. --- deployment/helm/node-feature-discovery/templates/role.yaml | 1 + .../helm/node-feature-discovery/templates/rolebinding.yaml | 1 + 2 files changed, 2 insertions(+) diff --git a/deployment/helm/node-feature-discovery/templates/role.yaml b/deployment/helm/node-feature-discovery/templates/role.yaml index f63cb8ff4f..c71ede442b 100644 --- a/deployment/helm/node-feature-discovery/templates/role.yaml +++ b/deployment/helm/node-feature-discovery/templates/role.yaml @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: name: {{ include "node-feature-discovery.fullname" . }}-worker + namespace: {{ include "node-feature-discovery.namespace" . }} labels: {{- include "node-feature-discovery.labels" . | nindent 4 }} rules: diff --git a/deployment/helm/node-feature-discovery/templates/rolebinding.yaml b/deployment/helm/node-feature-discovery/templates/rolebinding.yaml index 30a00381f0..d8025be9bb 100644 --- a/deployment/helm/node-feature-discovery/templates/rolebinding.yaml +++ b/deployment/helm/node-feature-discovery/templates/rolebinding.yaml @@ -3,6 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: {{ include "node-feature-discovery.fullname" . }}-worker + namespace: {{ include "node-feature-discovery.namespace" . }} labels: {{- include "node-feature-discovery.labels" . | nindent 4 }} roleRef: