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
fix(trait): watch for resource versions... #5218
Conversation
Note that |
Thanks. Not sure if there is any better way to deal with this, any idea? At least we remove the inspection of a secret, with the tradeoff to potentially reload an Integration when there is a metadata change as well. |
2dd3fb5
to
5c32fa3
Compare
I don't think there is a better solution so is a matter of document the behavior. Maybe, should we honor the |
The option is already used in the controller to wake up the Integration and kick the logic:
getIntegrationSecretAndConfigmapResourceVersions func? I think it may be a duplicated check, but definetely it's something that should not hurt.
|
I don't have the full picture but my reasoning is that, the hot reload flag prevents a reconciliation to happen but, in case the reconciliation is triggered by i.e. a non destructive trait change, then we ends up in the same case as #5192, which effectively will end up in a restart/reload. That said, this seems to be the case as today anyhow so not sure if we want to fix it now or have some better reasoning as part of #5192, |
5c32fa3
to
23a138f
Compare
@lburgazzoli I've added a check on the presence of the |
...instead of for their content.
23a138f
to
d9b2c6f
Compare
Check failure relates to #5197 |
...instead of for their content.
With this PR we fix a potentially risky behavior, as we were inspecting Configmap/Secrets content to address any change. Instead of looking directly the content, we watch for the changing resource version, which should be the way provided by the platform to know when a resource has changed without inspecting its content.
Release Note