website icon indicating copy to clipboard operation
website copied to clipboard

docs: Use install command for kubectl binary on macOS

Open rajyavardhan01 opened this issue 1 month ago • 2 comments

What this PR does / why we need it

This PR updates the kubectl installation documentation for macOS to use the install command instead of separate chmod, mv, and chown commands.

Before (3 commands, 2 steps):

chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
sudo chown root: /usr/local/bin/kubectl

After (1 command, 1 step):

sudo install -o root -m 0755 ./kubectl /usr/local/bin/kubectl

The install command is cleaner because it:

  • Sets executable permissions (-m 0755)
  • Sets ownership (-o root)
  • Copies the file to destination

All in a single, explicit command.

Which issue(s) this PR fixes

Fixes https://github.com/kubernetes/website/issues/53518 (partial - macOS page only)

Special notes for your reviewer

  • This PR only updates the macOS installation page as a starting point
  • The same pattern exists in ~35 other files (as noted in the issue)
  • If this approach is approved, similar updates can be made to other installation docs

/kind documentation

rajyavardhan01 avatar Jan 16 '26 22:01 rajyavardhan01

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign divya-mohan0209 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jan 16 '26 22:01 k8s-ci-robot

Pull request preview available for checking

Built without sensitive environment variables

Name Link
Latest commit e8807b6ae467bd9c44fe6ca715b3386d30675d68
Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/696abab9a87799000805408d
Deploy Preview https://deploy-preview-54045--kubernetes-io-main-staging.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

netlify[bot] avatar Jan 16 '26 22:01 netlify[bot]

Not tested (no suitable Mac) but the changes look right to me.

lmktfy avatar Jan 17 '26 21:01 lmktfy

Hi can we merge this PR if this is looking good. Thanks!

rajyavardhan01 avatar Jan 20 '26 10:01 rajyavardhan01

Hi @mikedanese @natalisucks requesting to review this PR and let me know if there is anything needed. Thanks

rajyavardhan01 avatar Feb 05 '26 07:02 rajyavardhan01