Closed gabriel-farache closed 5 months ago
It is probably best to first documentation the limitation we have and say the chart for the workflows must be removed before the orchestrator.
Also, I think the cleanup is too aggresive, and will remove resources which are not our own I'm referring to the expression here which will remove every knative crd https://github.com/parodos-dev/orchestrator-helm-chart/blob/b43895758b74b377f5c89123f617deaeae3c65d4/README.md?plain=1#L256
It is the rare case to require from users to delete all the deps (like knative and so on ) . What if the system depends heavily on knative now, we shouldn't just remove it.
@rgolangh Agreed, I made the changes you suggested by removing the deletion of the knative CRD but still providing the command if the user wants to remove them nonetheless
And I added a warning stating to remove the installed workflows first
/lgtm @batzionb @y-first any additions?
why do we need to delete the CRDs? Maybe deleting all of the instances of SonataFlow is a cleaner approach?
why do we need to delete the CRDs?
@batzionb to completely remove the resources the orchestrator installed. If the knative operator is not installed, the orchestrator will install it
Maybe deleting all of the instances of SonataFlow is a cleaner approach?
Still, the CRD installed by the orchestrator would still be there even if there is nothing anymore that will use them
lgtm
I'm merging this. We definitely do need to refine the cleanup process more.
Closes https://issues.redhat.com/browse/FLPATH-1320
If M2K workflow is installed
oc get crd -o name | grep -e sonataflow -e rhdh -e knative | xargs oc delete
will deleteservices.serving.knative.dev
andingresses.networking.internal.knative.dev
. But thenm2k-save-transformation-func
ingresses.networking.internal.knative.dev
is still there and blocks the deletion of the CRD:If a workflow is installing Knative resources, when cleanuping the orchestrator helm chart, those Knative resource will likely generate an issue, like for M2K
This PR explicitly state to remove all additional resources before deleting the CRD and the namespace.