-
Notifications
You must be signed in to change notification settings - Fork 31
Generating the shell autocompletion files reqires a valid kubeconfig #353
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
Comments
@kastl-ars sometime back tried command completion for krew plugin it was not available at that time. But I think it's been long time I can give it try again |
That would be great. Just to be clear, there is an existing completion subcommand. I think that those completions only work when the executable is called directly, not via |
Completion should work also for
|
will it work as official kubectl plugin also ? |
What is "official" plugin? do you mean when installed via krew? I'm using this for kubectl-gather installed manually from github on Linux and macOS and completion works. I did not try with krew since I did not packaged it as krew plugin, but it should work since krew is just a way to locate and deliver the plugin. During runtime it behaves just like any other plugin installed manually. kubectl or oc do the work of locating plugins and completion scripts and running them. |
Dear maintainers,
I found kubectl-rook-ceph and wanted to package it for openSUSE. Unfortunately creating the shell completion using the
kubectl-rook-ceph completion xyz
commands errors out due to a missing kubeconfig:Creating an empyt
~/.kube/config
file does not work.Most of the tools that provide generation of shell completions do not require a kubeconfig for that, similar to being able to call
-help
orhelp
or--help
subcommands without requiring a configuration file.Could this be changed in kubectl-rook-ceph, too?
Thanks in advance,
Johannes
The text was updated successfully, but these errors were encountered: