Skip to content

Commit

Permalink
allow image trigger controller to create custom builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Minter committed Oct 31, 2017
1 parent 6b1a836 commit 8ec5616
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/cmd/server/bootstrappolicy/controller_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func init() {
rbac.NewRule("create").Groups(buildGroup, legacyBuildGroup).Resources(
authorizationapi.SourceBuildResource,
authorizationapi.DockerBuildResource,
authorizationapi.CustomBuildResource,
authorizationapi.OptimizedDockerBuildResource,
authorizationapi.JenkinsPipelineBuildResource,
).RuleOrDie(),
Expand Down
1 change: 1 addition & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3299,6 +3299,7 @@ items:
- ""
- build.openshift.io
resources:
- builds/custom
- builds/docker
- builds/jenkinspipeline
- builds/optimizeddocker
Expand Down
1 change: 1 addition & 0 deletions test/testdata/bootstrappolicy/bootstrap_policy_file.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3602,6 +3602,7 @@ items:
- build.openshift.io
attributeRestrictions: null
resources:
- builds/custom
- builds/docker
- builds/jenkinspipeline
- builds/optimizeddocker
Expand Down

0 comments on commit 8ec5616

Please sign in to comment.