Skip to content

Commit

Permalink
Fixing linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
suryagupta4 committed Oct 28, 2022
1 parent 459ae36 commit a2d1c81
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions pkg/resources/rbac/controllerrbac.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a2d1c81

Please sign in to comment.