Kamel cli fails with wait flag when updating existing Failed integration
Steps to reproduce:
- Create integration with error, e.g.
- route:
from:
uri: timer://tick
steps:
- to:
uri: log:info
parameters:
period: 3000
repeatCount: {{param.count}}
- Run it
kamel --name test-api-int run integraion.yaml --config file:/my.properties --wait - Observe it failed to deploy
- Fix integration
- route:
from:
uri: timer://tick
steps:
- to:
uri: log:info
parameters:
period: 3000
repeatCount: "{{param.count}}"
- Run it with wait flag
kamel --name test-api-int run integraion.yaml --config file:/my.properties --wait
Actual behavior: Observe it failed again
Integration "test-api-int" updated
Progress: integration "test-api-int" in phase Error
Error: integration "test-api-int" deployment failed
while it is actually running in k8s in Running phase
Expected behavior: kamel run with --wait updates integration and completes with no errors
Thanks for reporting. Yes, it seems to be a cosmetic bug caused by a race condition. Basically what it happens is that as soon as the Integration is updated, still the status phase is in Error as it had not yet the time to reconcile. The wait flag immediately checks the Integration status and report it, although it's not the one that will eventually be after the next reconciliation cycle.
This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!