V1beta2 clusterctl describe and multiline conditions not printed correctly #11782
Labels
area/clusterctl
Issues or PRs related to clusterctl
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-longterm
Important over the long term, but may not be staffed and/or may need multiple releases to complete.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
What steps did you take and what happened?
The multiline feature in clusterctl has a bug in the multiline conditions.
If the Ready condition message has multipile lines the multiline prefix is not calculated properly.
To fix this we can use the same logic as for the other conditions and verify if the object is the last object in the tree.
To reproduce the issue we can follow the quickstart guide and run
clusterctl describe cluster capi-quickstart --v1beta2
.Note: the change is not required if the
--show-conditions
flag is passed as here the Ready/Available condition is moved to the conditions rows.What did you expect to happen?
The prefixes for the conditions should have been calculated correctly.
Cluster API version
main
/v1.9.4
Kubernetes version
No response
Anything else you would like to add?
Here is a screenshot (because of the colors) of
clusterctl describe cluster capi-quickstart --v1beta2
code block for completeness
Label(s) to be applied
/kind bug
/area clusterctl
The text was updated successfully, but these errors were encountered: