Skip to content

Commit 23f0b38

Browse files
committed
Add helmchart/finalizers RBAC rule for OpenShift
1 parent 194371c commit 23f0b38

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ rules:
3838
- patch
3939
- update
4040
- watch
41+
- apiGroups:
42+
- source.fluxcd.io
43+
resources:
44+
- helmcharts/finalizers
45+
verbs:
46+
- get
47+
- patch
48+
- update
4149
- apiGroups:
4250
- source.fluxcd.io
4351
resources:

controllers/helmrepository_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ type HelmRepositoryReconciler struct {
5050

5151
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmrepositories,verbs=get;list;watch;create;update;patch;delete
5252
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmrepositories/status,verbs=get;update;patch
53+
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmcharts/finalizers,verbs=get;update;patch
5354

5455
func (r *HelmRepositoryReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
5556
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)

0 commit comments

Comments
 (0)