diff --git a/pkg/resources/rbac/controllerrbac.go b/pkg/resources/rbac/controllerrbac.go index ae832b8d..ef521c0e 100644 --- a/pkg/resources/rbac/controllerrbac.go +++ b/pkg/resources/rbac/controllerrbac.go @@ -138,17 +138,17 @@ func NewControllerClusterRole(instance csiv1.CSIDriver, customClusterRoleName bo }) } if driverType == "powerstore" { - clusterRole.Rules = append(clusterRole.Rules, rbacv1.PolicyRule{ - APIGroups: []string{"storage.k8s.io"}, - Resources: []string{"csistoragecapacities"}, - Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"}, - }) - clusterRole.Rules = append(clusterRole.Rules, rbacv1.PolicyRule{ - APIGroups: []string{"apps"}, - Resources: []string{"replicasets"}, - Verbs: []string{"get"}, - }) - } + clusterRole.Rules = append(clusterRole.Rules, rbacv1.PolicyRule{ + APIGroups: []string{"storage.k8s.io"}, + Resources: []string{"csistoragecapacities"}, + Verbs: []string{"get", "list", "watch", "create", "update", "patch", "delete"}, + }) + clusterRole.Rules = append(clusterRole.Rules, rbacv1.PolicyRule{ + APIGroups: []string{"apps"}, + Resources: []string{"replicasets"}, + Verbs: []string{"get"}, + }) + } return clusterRole }