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
add stable.txt #16453
add stable.txt #16453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current version for the master branch is in VERSION
, should the new file be named STABLE
for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, not sure if we want to leave it as a manual step in the release process or automate but in either case this will help cilium/cilium-cli#272.
@aanm While we're at it, should we also update step 15 so that quay.io stable
tag do not get forgotten on next release?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for taking too much time reviewing the PR. There was a discussion on slack where I've proposed the following:
having a stable.txt will kind of not work well when we branch off, i.e., is one more thing that we need to take care of when doing releases. Can't we use the versions available in our helm repositories and use them instead? For example if I type, helm search repo cilium/cilium --versions it shows me all versions available.
I meant that stable.txt
will also be available in stable branches.
Would that be reasonable?
Also adding @joestringer take a look as well |
I like the helm proposal at first glance, for what it's worth. Seems like less work on the release management side, but I guess maybe requires more processing on the external component to understand what the stable version is since they would have to query Helm and process its output. Another option would actually be to just add the stable.txt into the github.com/cilium/charts repo, then we don't have the question of how to deal with Cilium branching. |
I don't think this is required and thus unnecessary. Only the
I don't think we have this question here either. The only requirement is to be able to retrieve the very latest stable release version, not every supported stable release versions. |
This seems reasonable, if that's the case can we add the step to I'd also love for the step for new stable/micro release to be integrated into |
b176018
to
a4a4b00
Compare
Makes sense. How does one know about the latest stable release though? Should it be a parameter to pass to the script? |
I guess depends on how robust we want to make it. The script currently just greps for Seems like for the first match of |
a4a4b00
to
18c78ba
Compare
I implemented this suggested approach. PTAL. |
Add `stable.txt`, a file in the master branch that always points to the latest stable release of Cilium. This file can be used as a reference by tools such as the Cilium CLI to get the latest stable release version. This pattern and file is already applied to the Hubble CLI repository. Ultimately, this new file will allow the Cilium CLI to always install the latest version of Cilium, as initially planned[0], instead of the version hardcoded in the CLI binary. [0]: cilium/cilium-cli#121 (comment) Co-authored-by: Joe Stringer <joe@cilium.io> Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net> Signed-off-by: Joe Stringer <joe@cilium.io>
18c78ba
to
925d6f6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing up the script, LGTM.
As of cilium/cilium#16453 cilium provides a stable.txt file in the master branch pointing to the latest stable version. Use it to report that latest stable version in `cilium version`. Suggested-by: Robin Hahling <robin.hahling@gw-computing.net> Signed-off-by: Tobias Klauser <tobias@cilium.io>
As of cilium/cilium#16453 cilium provides a stable.txt file in the master branch pointing to the latest stable version. Use it to report that latest stable version in `cilium version`. Suggested-by: Robin Hahling <robin.hahling@gw-computing.net> Signed-off-by: Tobias Klauser <tobias@cilium.io>
As of cilium/cilium#16453 cilium provides a stable.txt file in the master branch pointing to the latest stable version. Use it to report that latest stable version in `cilium version`. Suggested-by: Robin Hahling <robin.hahling@gw-computing.net> Signed-off-by: Tobias Klauser <tobias@cilium.io>
As of cilium/cilium#16453 cilium provides a stable.txt file in the master branch pointing to the latest stable version. Use it to report that latest stable version in `cilium version`. Suggested-by: Robin Hahling <robin.hahling@gw-computing.net> Signed-off-by: Tobias Klauser <tobias@cilium.io>
As of cilium#16453 cilium provides a stable.txt file in the master branch pointing to the latest stable version. Use it to report that latest stable version in `cilium version`. Suggested-by: Robin Hahling <robin.hahling@gw-computing.net> Signed-off-by: Tobias Klauser <tobias@cilium.io>
Add
stable.txt
, a file in the master branch that always points to thelatest stable release of Cilium. This file can be used as a reference by
tools such as the Cilium CLI to get the latest stable release version.
This pattern and file is already applied to the Hubble CLI repository.
Ultimately, this new file will allow the Cilium CLI to always install
the latest version of Cilium, as initially planned, instead of the
version hardcoded in the CLI binary.