From 1e263e245d2760bd3bc35d81c761ad00f0d0a83f Mon Sep 17 00:00:00 2001 From: jxlwqq Date: Sat, 18 Dec 2021 08:04:31 +0800 Subject: [PATCH] feat(operator-sdk): add plugin for operator-sdk (#10423) --- plugins/operator-sdk/README.md | 11 +++++++++++ plugins/operator-sdk/operator-sdk.plugin.zsh | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 plugins/operator-sdk/README.md create mode 100644 plugins/operator-sdk/operator-sdk.plugin.zsh diff --git a/plugins/operator-sdk/README.md b/plugins/operator-sdk/README.md new file mode 100644 index 000000000..3336e36ef --- /dev/null +++ b/plugins/operator-sdk/README.md @@ -0,0 +1,11 @@ +# Operator SDK + +[Operator SDK](https://sdk.operatorframework.io/) is a component of the Operator Framework, an open source toolkit to manage Kubernetes native applications, called Operators, in an effective, automated, and scalable way. + +To use it, add `operator-sdk` to the plugins array of your zshrc file: + +```sh +plugins=(... operator-sdk) +``` + + diff --git a/plugins/operator-sdk/operator-sdk.plugin.zsh b/plugins/operator-sdk/operator-sdk.plugin.zsh new file mode 100644 index 000000000..baeb01a80 --- /dev/null +++ b/plugins/operator-sdk/operator-sdk.plugin.zsh @@ -0,0 +1,4 @@ +if [ $commands[operator-sdk] ]; then + source <(operator-sdk completion zsh) + compdef _operator-sdk operator-sdk +fi