File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -352,12 +352,26 @@ Resources](https://cert-manager.io/docs/releases/upgrading/remove-deprecated-api
352352$ cmctl upgrade migrate-api-version --qps 5 --burst 10
353353```
354354
355- ## Legacy kubectl plugin
355+ ## Kubectl plugin
356356
357- While the kubectl plugin is supported, it is recommended to use ` cmctl ` as this enables a better experience via tab auto-completion.
357+ Since kubectl 1.26, kubectl plugins support auto-completion, which means you will have the same
358+ experience with the standalone ` cmctl ` binary and with the kubectl plugin.
358359
359360To install the plugin you need the ` kubectl_cert-manager ` file for the platform you're using,
360361these can be found on our [ cmctl GitHub releases page] ( https://github.com/cert-manager/cmctl/releases ) .
361362In order to use the kubectl plugin you need its binary to be accessible under the name ` kubectl-cert_manager ` in your ` $PATH ` .
362363
363364You can run ` kubectl cert-manager help ` to test that the plugin is set up properly.
365+
366+ ### Auto-completion with the kubectl plugin
367+
368+ Since kubectl 1.26, it is possible to enable auto-completion for plugins. Assuming that you installed
369+ ` kubectl_cert-manager ` in ` /usr/local/bin ` , you can set up auto-completion by running the following command:
370+
371+ ``` bash
372+ cat > kubectl_complete-cert_manager << 'EOF '
373+ #!/usr/bin/env sh
374+ kubectl cert-manager __complete "$@"
375+ EOF
376+ sudo install kubectl_complete-cert_manager /usr/local/bin
377+ ```
You can’t perform that action at this time.
0 commit comments