Skip to content

Commit

Permalink
helm/cdi-device-injector: allow watching namespaces.
Browse files Browse the repository at this point in the history
Namespace have cluster scope, so the plugin needs cluster
role RBAC authorization to watch namespaces. I don't know
if it is possible to further limit watching namespaces to
a particular name(space). Now any namespace known by name
can be watched by the plugin.

Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub committed Jul 18, 2024
1 parent 118c0ab commit 3bd9e01
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ metadata:
labels:
{{- include "nri-plugin.labels" . | nindent 4 }}
rules:
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- watch
15 changes: 0 additions & 15 deletions deployment/helm/cdi-device-injector/templates/role.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions deployment/helm/cdi-device-injector/templates/rolebindings.yaml

This file was deleted.

0 comments on commit 3bd9e01

Please sign in to comment.