do not delete disabled resources#2733
do not delete disabled resources#2733gazarenkov wants to merge 3 commits intoredhat-developer:mainfrom
Conversation
There was a problem hiding this comment.
Hmm.., it might be confusing to see that some resources are still there when the corresponding feature is purposely toggled from enabled to disabled. For example, I first create a Backstage CR on OCP (so with a Route created by default), then I set spec.application.route.enabled: false in the CR, and now the Route object is still present.
Maybe the Operator could add some uniquely identifiable labels on the resources it creates and manages, and only try to delete those to avoid conflict with user-created resources?
Or (thinking out loud) maybe just refuse to reconcile if there are conflicting resources that it does not manage, and thus avoid touching those?
Let's just document it for clarity and keep simple until we really need to make it complex. |
|



Description
It excludes potential deleting the resources created when certain feature is disabled (such as local db, route, monitor)
Which issue(s) does this PR fix or relate to
https://redhat.atlassian.net/browse/RHDHBUGS-2781
PR acceptance criteria
How to test changes / Special notes to the reviewer
For example: