-
Notifications
You must be signed in to change notification settings - Fork 208
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
version: report the cilium images version #121
Conversation
@kaworu I think the idea here was not to report the default cilium version but the version of Cilium that is used in the cluster (if any). |
@rolinh I see, that make sense! While working on #120 I was interested to know which version would be installed by default. Then, I came across the comment in @tgraf Is there any interest in having the default version displayed somewhere in the version output? If not, feel free to close this PR. |
Yes, although I was actually planning to fetch the latest version from GitHub directly so we would always automatically install the latest version. I'm planning to do that after the operator version is in. |
I see! So what do you think about a |
d9b98fd
to
56dc10c
Compare
This makes sense to me as this would allow users to know which Cilium version would be installed by the tool. The Cilium version of a running cluster is already given by |
What I had in mind was using the GitHub API to get the latest release because our VERSION file has
We could do some version compare with the releases to ensure we get the "highest release" rather than the latest (in the curl example we take the latest, but that could well be a v1.9.x release I believe). |
In the Hubble repo, we have |
Closing to re-open to trigger the PR assignment bot. |
56dc10c
to
4510034
Compare
4510034
to
8bdf4e2
Compare
"latest stable Cilium version" detection discussion moved at #272 |
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) Signed-off-by: Robin Hahling <[email protected]>
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 <[email protected]> Signed-off-by: Robin Hahling <[email protected]> Signed-off-by: Joe Stringer <[email protected]>
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 <[email protected]> Signed-off-by: Robin Hahling <[email protected]> Signed-off-by: Joe Stringer <[email protected]>
8bdf4e2
to
b7d229d
Compare
Rebased and amended the review comments. |
b7d229d
to
8e408b5
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.
Awesome, thanks for adding the logic to fetch the latest stable version as well @tklauser 🚀
After out-of-band discussion with @rolinh we've decided that it probably too risky using the latest stable version as provided in cilium/cilium Thus, we've decided to keep the built-in default version (
|
Connectivity tests on AKS and EKS (tunnel) failed with #367: https://github.com/cilium/cilium-cli/runs/3017925195?check_suite_focus=true |
Signed-off-by: Alexandre Perrin <[email protected]>
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 <[email protected]> Signed-off-by: Tobias Klauser <[email protected]>
8e408b5
to
68346f0
Compare
[ cherry-picked from cilium/cilium repository ] 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 <[email protected]> Signed-off-by: Robin Hahling <[email protected]> Signed-off-by: Joe Stringer <[email protected]> Signed-off-by: Quentin Monnet <[email protected]>
[ cherry-picked from cilium/cilium repository ] 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 <[email protected]> Signed-off-by: Robin Hahling <[email protected]> Signed-off-by: Joe Stringer <[email protected]> Signed-off-by: Quentin Monnet <[email protected]>
Before this patch:
After: