Skip to content

Commit

Permalink
Update policy for users to be able to interact with PDB
Browse files Browse the repository at this point in the history
  • Loading branch information
soltysh committed Oct 21, 2016
1 parent 4fe44dd commit 34aab1b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/server/bootstrappolicy/policy.go
Expand Up @@ -238,6 +238,8 @@ func GetBootstrapClusterRoles() []authorizationapi.ClusterRole {
"replicasets", "replicasets/scale", "deployments", "deployments/scale").RuleOrDie(),
authorizationapi.NewRule(read...).Groups(extensionsGroup).Resources("daemonsets").RuleOrDie(),

authorizationapi.NewRule(readWrite...).Groups(policyGroup).Resources("poddisruptionbudgets").RuleOrDie(),

authorizationapi.NewRule(readWrite...).Groups(appsGroup).Resources("petsets").RuleOrDie(),

authorizationapi.NewRule(readWrite...).Groups(authzGroup).Resources("roles", "rolebindings").RuleOrDie(),
Expand Down
14 changes: 14 additions & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Expand Up @@ -555,6 +555,20 @@ items:
- get
- list
- watch
- apiGroups:
- policy
attributeRestrictions: null
resources:
- poddisruptionbudgets
verbs:
- create
- delete
- deletecollection
- get
- list
- patch
- update
- watch
- apiGroups:
- apps
attributeRestrictions: null
Expand Down

0 comments on commit 34aab1b

Please sign in to comment.