Skip to content

Commit

Permalink
ASTRACTL-34182:update cluster role so asup can get CRDs (#1725)
Browse files Browse the repository at this point in the history
* ASTRACTL-34182:update cluster role so asup can get CRDs

* ASTRACTL-34182:update role in yaml factory too for cli
  • Loading branch information
khicks720 authored Sep 19, 2024
1 parent 397c153 commit 4aa2414
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/k8s_client/yaml_factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ rules:
verbs: ["use"]
resourceNames:
- {CLUSTER_ROLE_NAME}
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
verbs: ["get"]
`

func GetRoleYAML(namespace, roleName string, labels, controllingCRDetails map[string]string) string {
Expand Down
6 changes: 6 additions & 0 deletions helm/trident-operator/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -408,3 +408,9 @@ rules:
- use
resourceNames:
- tridentoperatorpods
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- get

0 comments on commit 4aa2414

Please sign in to comment.