Skip to content
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

Make it easy to install the latest release of kubectl Debian and RPM packages #3877

Open
Sharaf5 opened this issue Dec 9, 2024 · 12 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/release Categorizes an issue or PR as relevant to SIG Release. triage/accepted Indicates an issue or PR is ready to be actively worked on.

Comments

@Sharaf5
Copy link

Sharaf5 commented Dec 9, 2024

isnt there a way to install latest version rather than going through the same installation process for each new version
many poeple like to be mostly up to date

this was a good workaround but it's not working now

kv=$( curl -L -s https://dl.k8s.io/release/stable.txt | cut -f1,2 -d'.' )
curl -fsSL https://pkgs.k8s.io/core:/stable:/$kv/deb/Release.key | sudo gpg --dearmor -o /usr/share/keyrings/kubernetes.gpg;
echo "deb [signed-by=/usr/share/keyrings/kubernetes.gpg] https://pkgs.k8s.io/core:/stable:/${kv}/deb/ /" | sudo tee /etc/apt/sources.list.d/kubernetes.list

but recently we need to delete the patch number from version ( b in semantic versioning vM.m.p-build )

cant you make an alise for latest version in these links

https://pkgs.k8s.io/core:/stable:/latest/deb/Release.key
https://pkgs.k8s.io/core:/stable:/latest/deb/
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

SIG Docs takes a lead on issue triage for this website, but any Kubernetes member can accept issues by applying the triage/accepted label.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. label Dec 9, 2024
@Sharaf5 Sharaf5 changed the title [Addition For] Install and Set Up kubectl on Linux latest instead of version - kubectl on Linux Dec 9, 2024
@mengjiao-liu
Copy link
Member

Page: https://kubernetes.io/docs/tasks/tools/install-kubectl-linux/

@sftim
Copy link
Contributor

sftim commented Dec 10, 2024

/sig cli
/kind feature

/retitle Document commands to install latest release of kubectl

The changes you've asked for aren't a priority for Kubernetes @Sharaf5. Can you explain the user story that this enables for you?

@k8s-ci-robot k8s-ci-robot changed the title latest instead of version - kubectl on Linux Document commands to install latest release of kubectl Dec 10, 2024
@k8s-ci-robot k8s-ci-robot added sig/cli Categorizes an issue or PR as relevant to SIG CLI. kind/feature Categorizes issue or PR as related to a new feature. labels Dec 10, 2024
@Sharaf5
Copy link
Author

Sharaf5 commented Dec 10, 2024

I'm just telling you that if you could add an alise for latest version so one could update latest version and key programmatically or via scripts, that would be more user friendly

@sftim
Copy link
Contributor

sftim commented Dec 10, 2024

/transfer kubernetes

Documentation is correct; this is feature request

@k8s-ci-robot k8s-ci-robot transferred this issue from kubernetes/website Dec 10, 2024
@sftim
Copy link
Contributor

sftim commented Dec 10, 2024

/retitle Make it easy to install latest release of kubectl via scripts

@k8s-ci-robot k8s-ci-robot changed the title Document commands to install latest release of kubectl Make it easy to install latest release of kubectl via scripts Dec 10, 2024
@sftim
Copy link
Contributor

sftim commented Dec 10, 2024

/sig release

@k8s-ci-robot k8s-ci-robot added the sig/release Categorizes an issue or PR as relevant to SIG Release. label Dec 10, 2024
@saschagrunert
Copy link
Member

cc @kubernetes/release-managers

I could imagine that we populate a latest project through krel when we have all information at hand during release build.

Other than that I don't see many ways for a simple alias, because we require the information what the latest stable is as outlined in the workaround (first comment).

@sftim
Copy link
Contributor

sftim commented Dec 11, 2024

I wouldn't prioritize this work. The people writing scripts might have to write 5 lines rather than 2, but that's an outcome I think we can bear.

@Sharaf5
Copy link
Author

Sharaf5 commented Dec 11, 2024

I could imagine that we populate a latest project through krel when we have all information at hand during release build.

and the process but I thought making an aliese for url is easy to do
anyway you how perioritize your work so I'm so grateful for your time to discus, so in case of you changed your minds :

there is two easy way to do that depending on your server (which I dont know) :

  1. If the server serves from files like php : just make a symbolic link that is updated so the server will find it if it support symbolic links
  2. I your server serves from a pre-defined routes python or node : a route could be built for latest and a copy of the latest version keys and data are there, or just a file or a db record containing the latest stable build number to redirect to, so one dont need to repeat installation process intirly during update

symbolic links / copied dirs and files / version file / db record : could be updated at the end of successful release

Of course you know your servers more than me and you know what to perioritize

@BenTheElder BenTheElder changed the title Make it easy to install latest release of kubectl via scripts Make it easy to install latest release of kubectl debian package via scripts Dec 13, 2024
@xmudrii
Copy link
Member

xmudrii commented Jan 6, 2025

This is actually a k/release issue, I'll transfer it there so we have a track of it.
/transfer release

/triage accepted
/remove-sig cli
/lifecycle frozen

This can be done on the OBS side by using the aggregate function. We in fact use that quite extensively already, but krel doesn't support it so we're always doing it manually. This means we would first have to extend krel to support aggregating packages before we can tackle this issue.

Once that's done, we could have a project like pkgs.k8s.io/core:/latest:/cli-tools where we aggregate kubectl packages.

However, as other folks said, this is not a priority for us at the moment.

@k8s-ci-robot k8s-ci-robot added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. triage/accepted Indicates an issue or PR is ready to be actively worked on. labels Jan 6, 2025
@k8s-ci-robot k8s-ci-robot transferred this issue from kubernetes/kubernetes Jan 6, 2025
@xmudrii
Copy link
Member

xmudrii commented Jan 6, 2025

/retitle Make it easy to install the latest release of kubectl Debian and RPM packages

@k8s-ci-robot k8s-ci-robot changed the title Make it easy to install latest release of kubectl debian package via scripts Make it easy to install the latest release of kubectl Debian and RPM packages Jan 6, 2025
@xmudrii xmudrii removed this from SIG CLI Jan 6, 2025
@xmudrii xmudrii removed needs-priority needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Jan 6, 2025
@xmudrii xmudrii added the priority/backlog Higher priority than priority/awaiting-more-evidence. label Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/backlog Higher priority than priority/awaiting-more-evidence. sig/cli Categorizes an issue or PR as relevant to SIG CLI. sig/release Categorizes an issue or PR as relevant to SIG Release. triage/accepted Indicates an issue or PR is ready to be actively worked on.
Projects
Status: No status
Development

No branches or pull requests

6 participants