-
Notifications
You must be signed in to change notification settings - Fork 635
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
Show distribution name in flux version
and flux check
#4343
Comments
flux version
and flux check
flux version
and flux check
Since we're at it already I suggest we change the first line from
to
This line has confused people in the past because they were led to believe the line indicated the Flux version running on the cluster. |
|
I'm not particularly attached to the key's name but rather to the fact that it should somehow emphasize the fact that this is the CLI version, not the cluster version. I know we changed the output of other commands in the past without calling this a breaking change. Would you mind elaborating on why you think this is a breaking change? Do we know of tooling that uses the output in automation? |
The reason we need to be extra cautious here is because version commands are often used to programmatically detect which version a CLI is on, while the This does not apply to many other commands, as they do not offer an |
Tools are not our primary or only concern here, users their potential CI environments are. Which we have no sight on. |
Yeah I know. That's why I was asking whether we already know of any automation out there that uses it. But I guess we wouldn't know about ops scripts running on users' infrastructure, anyway. So it seems there's no way we can ever change the output without going through a transition phase. |
We can change the warning to |
That was before GA, the
I've seen CI workflows in large Flux deployments who rely on the json output to extract the version and perform automated upgrades of Flux across many clusters. Changing the key from |
flux version
and flux check
flux version
and flux check
flux version
and flux check
flux version
and flux check
To determine the Flux version running on a cluster, we can look for the
app.kubernetes.io/part-of
andapp.kubernetes.io/version
labels on thegitrepositories.source.toolkit.fluxcd.io
CRD. If the CRD exists and has these labels, we should display the distribution name and version like so:We should also display if Flux was bootstrapped in the
flux check
output:The text was updated successfully, but these errors were encountered: