This commit is contained in:
2024-01-19 17:01:09 +01:00
parent e147cf9296
commit 46c78fb31a
2 changed files with 22 additions and 19 deletions

View File

@@ -77,7 +77,10 @@ resource "kubectl_manifest" "gramo_clusterrole" {
labels: ${jsonencode(local.common-labels)}
rules:
- apiGroups: [""]
resources: ["namespaces"]
resources: ["namespaces","customresourcedefinitions"]
verbs: ["get","list"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
resourceNames: ${jsonencode(local.sorted-namespaces)}
verbs: ["get"]
- apiGroups: [""]