Skip to content

Commit

Permalink
update the TSB role to have required permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
deads2k committed Aug 8, 2017
1 parent 4f5f597 commit 1604077
Show file tree
Hide file tree
Showing 2 changed files with 10 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 @@ -340,6 +340,7 @@ func init() {
rbac.NewRule("create").Groups(authzGroup).Resources("subjectaccessreviews").RuleOrDie(),
rbac.NewRule("get", "create", "update", "delete").Groups(templateGroup).Resources("brokertemplateinstances").RuleOrDie(),
rbac.NewRule("get", "create", "delete", "assign").Groups(templateGroup).Resources("templateinstances").RuleOrDie(),
rbac.NewRule("get", "list", "watch").Groups(templateGroup).Resources("templates").RuleOrDie(),
rbac.NewRule("get", "list", "create", "delete").Groups(kapiGroup).Resources("secrets").RuleOrDie(),
rbac.NewRule("list").Groups(kapiGroup).Resources("services", "configmaps").RuleOrDie(),
rbac.NewRule("list").Groups(routeGroup).Resources("routes").RuleOrDie(),
Expand Down
9 changes: 9 additions & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4012,6 +4012,15 @@ items:
- create
- delete
- get
- apiGroups:
- template.openshift.io
attributeRestrictions: null
resources:
- templates
verbs:
- get
- list
- watch
- apiGroups:
- ""
attributeRestrictions: null
Expand Down

0 comments on commit 1604077

Please sign in to comment.