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

add "k" as alias for "kubectl" #10524

Closed
noama-nv opened this issue Oct 15, 2023 · 2 comments · Fixed by #10552
Closed

add "k" as alias for "kubectl" #10524

noama-nv opened this issue Oct 15, 2023 · 2 comments · Fixed by #10552
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@noama-nv
Copy link
Contributor

What would you like to be added:

https://github.com/kubernetes-sigs/kubespray/blob/master/roles/kubernetes/control-plane/tasks/main.yml#L44

add following line in "/etc/bash_completion.d/kubectl.sh"

alias k=kubectl
complete -F __start_kubectl k

Why is this needed:
interacting with Kubernetes cluster is much easier with "k" instead of "kubectl"

@noama-nv noama-nv added the kind/feature Categorizes issue or PR as related to a new feature. label Oct 15, 2023
@floryut
Copy link
Member

floryut commented Oct 17, 2023

If you want to create a PR for that I guess we won't be against it (at least I'm not either for nor against) 😉

@0ekk
Copy link
Member

0ekk commented Oct 23, 2023

That's not bad. And it is better to using a option to make it changeable. I'll work for it.

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.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants