From 035524863abf03b01f419a0d0a15be7b2696e4b9 Mon Sep 17 00:00:00 2001 From: Magnus Andersson Date: Wed, 6 Nov 2024 12:52:53 +0100 Subject: [PATCH] Add cluster role to get namespaces --- k8s/role-namespaces-read.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 k8s/role-namespaces-read.yaml diff --git a/k8s/role-namespaces-read.yaml b/k8s/role-namespaces-read.yaml new file mode 100644 index 0000000..013390f --- /dev/null +++ b/k8s/role-namespaces-read.yaml @@ -0,0 +1,9 @@ +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: clusterrole-read-namespaces +rules: + - apiGroups: [""] + resources: ["namespaces"] + verbs: ["get", "list"]