-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
Updating install-kubectl.md with instructions for validating kubectl binaries against checksum files #25259
Updating install-kubectl.md with instructions for validating kubectl binaries against checksum files #25259
Conversation
Tested on:
|
✔️ Deploy preview for kubernetes-io-master-staging ready! 🔨 Explore the source changes: ac8b4c5 🔍 Inspect the deploy logs: https://app.netlify.com/sites/kubernetes-io-master-staging/deploys/5fdd057d9be22e00086dede7 😎 Browse the preview: https://deploy-preview-25259--kubernetes-io-master-staging.netlify.app |
Page updated deploy preview: https://deploy-preview-25259--kubernetes-io-master-staging.netlify.app/docs/tasks/tools/install-kubectl/ I'm not particularly happy with the Windows and MacOS sections yet, as I haven't found a way to programmatically validate the binary against the checksum file like I do in the Linux section -- I have to do a bit more research into the MacOS and Windows tools. If anyone knows a better way off the top of their head, I'd appreciate a pointer. |
Comment/question premature, edited out to clean up the PR. |
3730b83
to
9eedfc1
Compare
Links updated to download from https://dl.k8s.io/ |
9eedfc1
to
0c62a7b
Compare
The difference in patch version comes down to the website getting a (manual) update per minor release but nothing happening on patch releases. I think we ought to find the simplest way of getting a Kubernetes release metadata file published, make that publication happen, and update based on that. There are other options though. |
I figured something like this was happening (hence the comment edit -- still not sure of the etiquette of those kinds of edits...). I think in this case I'm going to try to be consistent with the the stable release where offered, i.e. I'll link to the stable release sha as well (and may do a little to make it more obvious what is being downloaded 'latest' vs 'latest stable'). If someone is going through the instructions to download, verify, and install, it would be irritating for the supplied sha to be for a different version than was just linked to. |
0c62a7b
to
f5c0666
Compare
I've found a way to automate the validation on MacOS the way we are doing in Linux, and I've found a workaround with PowerShell that we can use for Windows (though I'm still not thrilled with that method). |
2abb2f9
to
2acbac3
Compare
I like how we use the tabs in the Install on Windows using Chocolatey or Scoop section Could we consider using a similar Linux, macOS, Windows tab structure and create a Install kubectl section containing it? It may help to shorten the page, and give people an opportunity to get directly to what they are looking for without a lot of scrolling. We may also be able to de-duplicate some of the instructions doing it that way, but I think this work would be well outside the scope of this PR. [edit] We do a simiar thing in the Optional kubectl configurations section as well. |
2acbac3
to
22dcfd5
Compare
The last push cleans up the Windows Validation section's formatting a bit. |
22dcfd5
to
b3c4feb
Compare
The last push adds some syntax highlighting to the command snippets. |
c1bd0ee
to
56faf09
Compare
The latest push removes the incorrectly updated spacing changes I introduced. |
56faf09
to
f89963e
Compare
Thanks @nate-double-u . |
Adding instructions for how to validate kubectl binaries against checksum files (Linux, MacOS, Windows) Updating links to download from https://dl.k8s.io/ Updating Linux-specific install instructions to use install command, and macOS-specific instructions to chown root the install to provide a trusted kubectl. Adding note annotation around optional download instructions Markdown updates * Updating numbered lists to use markdown syntax ("1." for each entry), should make it easier to add and remove list items in future * Adding some syntax highlighting to the command snippets Correcting "PowerShell" spelling fixes: kubernetes#25040 Signed-off-by: Nate W <4453979+nate-double-u@users.noreply.github.com>
f89963e
to
ac8b4c5
Compare
Latest push:
|
/lgtm |
LGTM label has been added. Git tree hash: e82310340ea3cc002bf151395e60861d06aa9ff8
|
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: zacharysarah The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks everyone, I appreciate all the feedback on this one! |
Adding instructions for how to validate
kubectl
binaries against checksum files (Linux, MacOS, Windows)Updating links to download from https://dl.k8s.io/
fixes: #25040
Additionally:
Updating spacing throughoutinstall
command.chown root
the install to provide a trusted kubectl.Page updated deploy preview: https://deploy-preview-25259--kubernetes-io-master-staging.netlify.app/docs/tasks/tools/install-kubectl/