Skip to content

Commit

Permalink
Add role for secrets to manager
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsuzu committed Sep 17, 2020
1 parent 5a7eae1 commit 87b2969
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,33 @@ metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- apiGroups:
- ghapp.tsuzu.dev
resources:
- clustergithubapps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ghapp.tsuzu.dev
resources:
- clustergithubapps/status
verbs:
- get
- patch
- update
- apiGroups:
- ghapp.tsuzu.dev
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/installation_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type InstallationReconciler struct {
// +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=installations/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=clustergithubapps,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=ghapp.tsuzu.dev,resources=clustergithubapps/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list

func (r *InstallationReconciler) Reconcile(req ctrl.Request) (res ctrl.Result, err error) {
ctx := context.Background()
Expand Down

0 comments on commit 87b2969

Please sign in to comment.