-
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
Integrations remain in Initialization loop when referenced config map has owner references #5114
Comments
Removing the ownerReferences from the ConfigMap stops the loop, but will keep the ConfigMap in the cluster. |
The same issue might happen with secrets as well, but I haven't tested this scenario |
With 1.12.x that scenario worked for me. I compared https://github.com/apache/camel-k/blob/release-1.12.x/pkg/util/digest/digest.go to https://github.com/apache/camel-k/blob/main/pkg/util/digest/digest.go and noticed that in 1.12.x configmaps and secrets were not used in the digest calculation |
Yes, that's a side effect of #4665 thanks for reporting. In fact, I think that we should improve this feature by only looking watching those resources with a given label like it happens for the other objects associated to an Integration. |
I confirm, we had the same issue with secrets generated (and owned) by VaultOperator. |
This should have been closed and will be fixed in 2.3.0. |
What happened?
The created Integration keeps rebuilding itself when a config map with ownerReferences is used.
Steps to reproduce
Consider scenario where an Integration references a ConfigMap in the Mount trait:
Create that Integration in the cluster, which will not start because the configmap is not there yet.
After the integration is created, query its uid:
Now create the config map using that uid in the ownersReferences:
Result: the Integration will not build. It wil stay in a loop between the statuses "Building Kit" and "Initialization".
The operator log shows constant messages about the Integration being rebuilt.
And integration digest in its status keeps changing.
Relevant log output
Camel K version
2.2.0
The text was updated successfully, but these errors were encountered: