Skip to content

Commit

Permalink
Allow project admins to create/edit/delete NetworkPolicies
Browse files Browse the repository at this point in the history
  • Loading branch information
danwinship committed Jun 22, 2017
1 parent c015a70 commit 292931f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/server/bootstrappolicy/policy.go
Expand Up @@ -322,7 +322,7 @@ func GetOpenshiftBootstrapClusterRoles() []authorizationapi.ClusterRole {
authorizationapi.NewRule(readWrite...).Groups(batchGroup).Resources("jobs", "scheduledjobs", "cronjobs").RuleOrDie(),

authorizationapi.NewRule(readWrite...).Groups(extensionsGroup).Resources("jobs", "horizontalpodautoscalers", "replicationcontrollers/scale",
"replicasets", "replicasets/scale", "deployments", "deployments/scale", "deployments/rollback").RuleOrDie(),
"replicasets", "replicasets/scale", "deployments", "deployments/scale", "deployments/rollback", "networkpolicies").RuleOrDie(),
authorizationapi.NewRule(read...).Groups(extensionsGroup).Resources("daemonsets").RuleOrDie(),

authorizationapi.NewRule(readWrite...).Groups(appsGroup).Resources("statefulsets", "deployments", "deployments/scale", "deployments/status").RuleOrDie(),
Expand Down
1 change: 1 addition & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Expand Up @@ -677,6 +677,7 @@ items:
- deployments/scale
- horizontalpodautoscalers
- jobs
- networkpolicies
- replicasets
- replicasets/scale
- replicationcontrollers/scale
Expand Down

0 comments on commit 292931f

Please sign in to comment.