Skip to content

Commit

Permalink
Merge pull request #13 from srl-labs/add-secret-rbac
Browse files Browse the repository at this point in the history
added secret rbac
  • Loading branch information
hellt authored Jul 31, 2022
2 parents ec1c446 + 13a88d5 commit 9095af3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- kne.srlinux.dev
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/srlinux_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type SrlinuxReconciler struct {
// +kubebuilder:rbac:groups=kne.srlinux.dev,resources=srlinuxes/finalizers,verbs=update
// +kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=configmaps,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=core,resources=secrets,verbs=get;list;watch;create;update;patch;delete

// 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 9095af3

Please sign in to comment.