Open foot opened 10 months ago
We need to figure out what fields we use, and where they've gone.
We also want to continue to support the existing version, and the new(er) versions, we want to avoid another version break.
To support both versions, WG can look at the CRD version (this is already fetched in the Flux controllers page), based on the API version the query logic should use:
status.LastReleaseRevision
v2beta1 / status.History.Latest().Version
v2beta2status.LastAppliedRevision
v2beta1 / status.History.Latest().ChartVersion
v2beta2The deprecation notices in the v2beta2
API should actually tell you where to look for values, as will they correctly indicate fields have been deprecated in the more intelligent IDEs.
In Flux 2.2.0
.status.lastReleaseRevision
will be deprecated and no longer populated.The code in weave-gitops should be adapted as in flux:
Anticipated behaviour: