Skip to content

Commit

Permalink
Add build by type resource permissions to build controller policy
Browse files Browse the repository at this point in the history
  • Loading branch information
csrwng committed Jan 13, 2016
1 parent 97364a6 commit 8bcf43d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cmd/server/bootstrappolicy/infra_sa_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ func init() {
Verbs: sets.NewString("update"),
Resources: sets.NewString("builds"),
},
// Create permission on virtual build type resources allows builds of those types to be updated
{
Verbs: sets.NewString("create"),
Resources: sets.NewString("builds/docker", "builds/source", "builds/custom"),
},
// BuildController.ImageStreamClient (ControllerClient)
{
Verbs: sets.NewString("get"),
Expand Down
8 changes: 8 additions & 0 deletions test/fixtures/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -968,6 +968,14 @@ items:
- builds
verbs:
- update
- apiGroups: null
attributeRestrictions: null
resources:
- builds/custom
- builds/docker
- builds/source
verbs:
- create
- apiGroups: null
attributeRestrictions: null
resources:
Expand Down

0 comments on commit 8bcf43d

Please sign in to comment.