Skip to content
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: The KameletBinding readiness condition should mirror its Integration one #3092

Merged
merged 2 commits into from
Mar 9, 2022
Merged

Conversation

astefanutti
Copy link
Member

@astefanutti astefanutti commented Mar 8, 2022

Fixes #3091.

This follows up #2682 and #2719.

Release Note

fix: The KameletBinding readiness condition should mirror its Integration one

@heiko-braun
Copy link

Thanks for the quick turnaround @astefanutti

@heiko-braun
Copy link

Out of curiosity, will this backported to a 1.8.x maintenance branch?

@astefanutti
Copy link
Member Author

Out of curiosity, will this backported to a 1.8.x maintenance branch?

Yes, it's a left over from #2682 and #2719, which have been delivered in 1.8.0, so it makes sense to have it back ported.

@astefanutti
Copy link
Member Author

Here are the transitioning statuses in the happy-path scenario, where a KameletBinding materialises into a Deployment resource:

status:
  conditions:
  - message: Integration "timer-binding" is in "Creating" phase
    reason: Creating
    status: "False"
    type: Ready
  phase: Creating
status:
  conditions:
  - message: Integration "timer-binding" readiness condition is "False"
    reason: DeploymentProgressing
    status: "False"
    type: Ready
  phase: Ready
status:
  conditions:
  - message: Integration "timer-binding" readiness condition is "True"
    reason: DeploymentReady
    status: "True"
    type: Ready
  phase: Ready

@astefanutti
Copy link
Member Author

The e2e tests that cover the above are added with 2b24202.

@lburgazzoli
Copy link
Contributor

@astefanutti

the examples you provided the conditions are those materialized in the KameletBinding status right ?
so to monitor the effective status of a KameletBinding the Ready condition should be taken into account.

if an error occurs on the deployment, i.e. it will exceed the progress limit, will an error surface ?

@astefanutti
Copy link
Member Author

the examples you provided the conditions are those materialized in the KameletBinding status right ?

Right.

So to monitor the effective status of a KameletBinding the Ready condition should be taken into account.

Yes. I didn't change the KameletBinding phases, but I'd be inclined to eventually change the Ready phase to Running.

if an error occurs on the deployment, i.e. it will exceed the progress limit, will an error surface ?

Yes, with that PR, the Deployment status surfaces transitively via the Integration readiness condition, into the KameletBinding readiness condition.

@lburgazzoli
Copy link
Contributor

Yes. I didn't change the KameletBinding phases, but I'd be inclined to eventually change the Ready phase to Running.

So I guess at this point, to monitor the kamelet binding we can almost ignore the phase and only rely on the conditions right ?

@astefanutti
Copy link
Member Author

Yes. I didn't change the KameletBinding phases, but I'd be inclined to eventually change the Ready phase to Running.

So I guess at this point, to monitor the kamelet binding we can almost ignore the phase and only rely on the conditions right ?

Right, in the KameletBinding case, that only has one condition, the phase is reduced to a condensed version of the readiness condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/kamelets kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

integration readiness condition is not reported to kamelet binding
5 participants