Skip to content

Commit

Permalink
Merge pull request #14 from kubesphere-sigs/rbac-secret
Browse files Browse the repository at this point in the history
Add secrtes read permission request to the controller
  • Loading branch information
LinuxSuRen authored Nov 3, 2021
2 parents 7804fc0 + 6d0dd19 commit 6eba328
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 8 additions & 8 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ metadata:
creationTimestamp: null
name: manager-role
rules:
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- list
- watch
- apiGroups:
- devops.kubesphere.io
resources:
Expand All @@ -32,11 +40,3 @@ rules:
- get
- patch
- update
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- watch
- list
1 change: 1 addition & 0 deletions controllers/releaser_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type ReleaserReconciler struct {
//+kubebuilder:rbac:groups=devops.kubesphere.io,resources=releasers,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups=devops.kubesphere.io,resources=releasers/status,verbs=get;update;patch
//+kubebuilder:rbac:groups=devops.kubesphere.io,resources=releasers/finalizers,verbs=update
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get;watch;list

// Reconcile is part of the main kubernetes reconciliation loop which aims to
// move the current state of the cluster closer to the desired state.
Expand Down

0 comments on commit 6eba328

Please sign in to comment.