Skip to content

Commit 4aa2414

Browse files
authored
ASTRACTL-34182:update cluster role so asup can get CRDs (#1725)
* ASTRACTL-34182:update cluster role so asup can get CRDs * ASTRACTL-34182:update role in yaml factory too for cli
1 parent 397c153 commit 4aa2414

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

cli/k8s_client/yaml_factory.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ rules:
175175
verbs: ["use"]
176176
resourceNames:
177177
- {CLUSTER_ROLE_NAME}
178+
- apiGroups: ["apiextensions.k8s.io"]
179+
resources: ["customresourcedefinitions"]
180+
verbs: ["get"]
178181
`
179182

180183
func GetRoleYAML(namespace, roleName string, labels, controllingCRDetails map[string]string) string {

helm/trident-operator/templates/clusterrole.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,3 +408,9 @@ rules:
408408
- use
409409
resourceNames:
410410
- tridentoperatorpods
411+
- apiGroups:
412+
- apiextensions.k8s.io
413+
resources:
414+
- customresourcedefinitions
415+
verbs:
416+
- get

0 commit comments

Comments
 (0)