-
Notifications
You must be signed in to change notification settings - Fork 29
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
Auto completion for the plugin #70
Comments
Does this imply completions on kubectl-command level (namespaces etc) or for subcommands as well, e.g. for |
@crabique Currently, auto-completion is not supported in rook-ceph plugin. But we'll support this soon |
@subhamkrai , in my local build, the build already has a completion command:
maybe we have picked it up via an update of the kubernetes dependency automatically? |
@obnoxxx what we're looking with the issue to get auto completion support kubectl for kubectl plugins which currently not available. What you have shared is coming from the go command line, using go today also we can have auto-completion that will work when directly using the binary. |
@subhamkrai I tried it locally and I can confirm that it currently works for neither the locally bilt I am not quite sure yet what needs to be done to really enable it. |
Unless I'm missing something: The auto-completion currently requires a configured rook which doesn't seem ideal: kubectl rook-ceph completion bash
Error: operator namespace 'rook-ceph' does not exist. namespaces "rook-ceph" not found |
@Skaronator I did auto-complete a long time back but only with local binary. But the auto-completion is not supported in krew yet. |
With this pr kubernetes/kubernetes#105867 which is supposed to present in kubectl v1.26 which will support krew plugins auto-completion. It will be good to have this in our plugin.
The text was updated successfully, but these errors were encountered: