Skip to content

Commit

Permalink
PWX-35255: add AR finalizers to clusterrole for autopilot on OCP (#1368
Browse files Browse the repository at this point in the history
…) (#1372)

* add autopilotrule finalizers permission to cluster role for all platform deployment
  • Loading branch information
ezhang-px authored Dec 6, 2023
1 parent 751b3ac commit 5c7741d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/storage/portworx/component/autopilot.go
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ func (c *autopilot) createClusterRole() error {
},
{
APIGroups: []string{"autopilot.libopenstorage.org"},
Resources: []string{"actionapprovals", "autopilotrules", "autopilotruleobjects"},
Resources: []string{"actionapprovals", "autopilotrules", "autopilotruleobjects", "autopilotrules/finalizers"},
Verbs: []string{"*"},
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
resources: ["configmaps"]
verbs: ["get", "list", "patch", "update", "watch"]
- apiGroups: ["autopilot.libopenstorage.org"]
resources: ["actionapprovals", "autopilotrules", "autopilotruleobjects"]
resources: ["actionapprovals", "autopilotrules", "autopilotruleobjects", "autopilotrules/finalizers"]
verbs: ["*"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rules:
resources: ["configmaps"]
verbs: ["get", "list", "patch", "update", "watch"]
- apiGroups: ["autopilot.libopenstorage.org"]
resources: ["actionapprovals", "autopilotrules", "autopilotruleobjects"]
resources: ["actionapprovals", "autopilotrules", "autopilotruleobjects", "autopilotrules/finalizers"]
verbs: ["*"]
- apiGroups: ["apiextensions.k8s.io"]
resources: ["customresourcedefinitions"]
Expand Down

0 comments on commit 5c7741d

Please sign in to comment.