Closed eguzki closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.89%. Comparing base (
cc1b41f
) to head (724e7a1
). Report is 21 commits behind head on main.
Nice catch, @eguzki. Thank you!
Maybe make generate manifests bundle helm-build
I always forget helm charts :facepalm:
Happy that I added a test to blame me
What
On Openshift, when the Kuadrant CR is created, limitador and authorino are not deployed. On trying to create limitador and authorino resources, the operator logs the error:
Important bits:
Openshift has admission controller that rejects adding ownerefs with
blockOwnerDeletion: true
when the controller does not have permission to add finalizer on the owner object.In the PR https://github.com/Kuadrant/kuadrant-operator/pull/992 a 🐛 🪲 was introduced, creating a regression, which removed permissions to add finalizers to Kuadrant CR's. Thus, the operator cannot create resources with ownerrefs to Kuadrant CR like the Limtador CR and Authorino CR managed by the operator.
This PR adds the permissions to update finalizers on the Kuadrant CR.
Additionally, the Kuadrant CR status it does not reported the error (the creation of limitador and authorino CR's fail) and reports "READY". It is left as TODO to fix the error reporting, catching error on creating limitador and authorino resources and report back on the status.