Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ rules:
- get
- patch
- update
- apiGroups:
- devportal.kuadrant.io
resources:
- apikeyrequests/finalizers
verbs:
- update
- apiGroups:
- devportal.kuadrant.io
resources:
Expand Down
2 changes: 1 addition & 1 deletion internal/controller/apikeyapproval_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type APIKeyApprovalReconciler struct {

// +kubebuilder:rbac:groups=devportal.kuadrant.io,resources=apikeyapprovals,verbs=get;list;watch;update;patch;delete
// +kubebuilder:rbac:groups=devportal.kuadrant.io,resources=apikeyrequests,verbs=get;list;watch
// +kubebuilder:rbac:groups=devportal.kuadrant.io,resources=apikeyrequests/finalizers,verbs=update

// Reconcile handles reconciling all APIKeyApprovals in a single call. Any resource event should enqueue the
// same reconcile.Request containing this controller name, i.e. "apikeyapproval". This allows multiple resource updates to
Expand Down Expand Up @@ -124,7 +125,6 @@ func (r *APIKeyApprovalReconciler) reconcileOwnerReference(ctx context.Context,

// Update the APIKeyApproval with the owner reference
if err := r.Update(ctx, approval); err != nil {
logger.Error(err, "Failed to update APIKeyApproval with owner reference")
return err
}

Expand Down
Loading