-
Notifications
You must be signed in to change notification settings - Fork 350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Openshift] Repeated install/uninstall and removal of CamelCatalog leads to re-creation of builder image #4569
Comments
Yes, this may happen in Openshift because the S2I will check an ImageStream which was cleaned by the uninstallation problem. Thanks for reporting it's something we need to look at, though it should not be harmful in a "normal" environment where the user does not uninstall continuously. |
The owner of the ImageStream is the CamelCatalog resource which seems to be the right design in the end because it is its controller that triggers the build. I think it goes down to two possibilities (I don't know if any are valid in openshift):
|
I am looking into this issue. |
The openshift image registry is composed of multiple custom ressources. Some of them are namespaced - those we use are
All these observations leads me to the conclusion that the two possibilities I listed are not valid in openshift. If we were in a normal production use case the I believe trying to add any code to manage this use case described would do more harm than good as the only modification that would work is removing the owner reference from the ImageStream. |
For those using the Camel-k CLI you could avoid this issue with using the flag |
Thanks @gansheer. Taking in consideration your analysis, I'd be inclined to close this issue and let the user avoid cleaning the catalog when it is not required by their processes. |
Documented in #4611 |
Following scenario leads to issue in CK operator log and creating new builder image:
Result of
oc get images
is incremented by another builder imageimage-registry.openshift-image-registry.svc:5000/lfabriko2/camel-k-runtime-quarkus-builder@sha256:*
Log of CK operator:
{"level":"info","ts":1689252480.1975944,"logger":"camel-k.controller.catalog","msg":"Could not find Camel K builder container"}
The text was updated successfully, but these errors were encountered: