Ready condition does not aggregate status value from other conditions #693
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What steps did you take and what happened:
Create namespace capi-system
Create a simple CoreProvider configuration
Waiting for provider to be installed
kubectl wait --for=condition=Ready coreprovider/cluster-api -n capi-system
Patch CoreProvider object and downgrade version to emulated situation
Right now,
Ready
will be alwaysTrue
, butPreflightCheckPassed
will be false.What did you expect to happen:
I expect, that aggregated
Ready
condition will beFalse
as in common approach, operator can't apply resource to the target conditions with a new version or others preflight check validations.Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
It would be nice to validate situations like this ASAP for any cases. I will create a separate issue related to integrate preflight checks inside the web-hook validation logic.
Environment:
kubectl version
): v1.29.2/etc/os-release
): fedora/kind bug
[One or more /area label. See https://github.com/kubernetes-sigs/cluster-api-operator/labels?q=area for the list of labels]
The text was updated successfully, but these errors were encountered: