Prevent operator removal, while it still has some CR's to manage #13717
Labels
kind/bug
Outline of a bug - must adhere to the bug report template.
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Currently, when there is a checluster CR with oAuth enabled, it has
oauthclients.finalizers.che.eclipse.org
finalizer. This means, that this CR is not possible to delete until this finalizer is removed.This has a good reason: eclipse-che/che-operator#11
But it introduces another problem: When the che-operator is deleted before CR is deleted, this CR remains there and it's not possible to delete it (without some workarounds).
This is mostly notable, when CRW is deployed with Openshift oAuthSupport and user then tries to delete whole namespace, where CRW is deployed (together with the operator) -> everything is deleted, but for the
checluster
CR, which prevents the namespace from deletion.I was thinking... couldn't che-operator be aware of how many checluster CRs is it managing and maybe have it's own finalizer if the number is greater than 0? That would mean it would be also impossible to delete che-operator before removing all its managed CRs.
Is something like that possible, @davidfestal ? Or do we have to provide some instructions on how to delete CRW deployment (or maybe some uninstall script)?
The text was updated successfully, but these errors were encountered: