1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-13 20:30:03 +00:00

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.
This commit is contained in:
Markus Lehtonen 2023-09-19 13:53:19 +03:00 committed by k8s-infra-cherrypick-robot
parent 992d3a1b8a
commit e1a6c35596
2 changed files with 2 additions and 0 deletions

View file

@ -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:

View file

@ -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: