Add helmchart/finalizers RBAC rule for OpenShift

This commit is contained in:
Hidde Beydals 2020-04-13 13:12:41 +02:00
parent 194371c4c0
commit 23f0b38ac2
2 changed files with 9 additions and 0 deletions

View File

@ -38,6 +38,14 @@ rules:
- patch
- update
- watch
- apiGroups:
- source.fluxcd.io
resources:
- helmcharts/finalizers
verbs:
- get
- patch
- update
- apiGroups:
- source.fluxcd.io
resources:

View File

@ -50,6 +50,7 @@ type HelmRepositoryReconciler struct {
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmrepositories,verbs=get;list;watch;create;update;patch;delete
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmrepositories/status,verbs=get;update;patch
// +kubebuilder:rbac:groups=source.fluxcd.io,resources=helmcharts/finalizers,verbs=get;update;patch
func (r *HelmRepositoryReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error) {
ctx, cancel := context.WithTimeout(context.Background(), 15*time.Second)