Skip to content

Commit

Permalink
fix: Bug rbac authorization secrets (#125)
Browse files Browse the repository at this point in the history
Co-authored-by: David MICHENEAU <[email protected]>
  • Loading branch information
dmicheneau and David MICHENEAU authored Nov 20, 2024
1 parent 1b10ca3 commit 9aadde3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/121.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
`kimup-controller` - Fix rbac authorization to read secrets.
```
1 change: 1 addition & 0 deletions internal/controller/kimup_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type KimupReconciler struct {
//+kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups="",resources=pods,verbs=get;list;watch;create;update;patch;delete
//+kubebuilder:rbac:groups="",resources=events,verbs=create;patch
//+kubebuilder:rbac:groups="",resources=secrets,verbs=get

// 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
6 changes: 6 additions & 0 deletions manifests/operator/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- secrets
verbs:
- get
- apiGroups:
- admissionregistration.k8s.io
resources:
Expand Down

0 comments on commit 9aadde3

Please sign in to comment.