1e263e245d2760bd3bc35d81c761ad00f0d0a83f

Author
jxlwqq <jxlwqq@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

feat(operator-sdk): add plugin for operator-sdk (#10423)

Diff

 1diff --git a/plugins/operator-sdk/README.md b/plugins/operator-sdk/README.md
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..3336e36efc5eedd43db32c75450575026f80676a
 4--- /dev/null
 5+++ b/plugins/operator-sdk/README.md
 6@@ -0,0 +1,11 @@
 7+# Operator SDK
 8+
 9+[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.
10+
11+To use it, add `operator-sdk` to the plugins array of your zshrc file:
12+
13+```sh
14+plugins=(... operator-sdk)
15+```
16+
17+
18diff --git a/plugins/operator-sdk/operator-sdk.plugin.zsh b/plugins/operator-sdk/operator-sdk.plugin.zsh
19new file mode 100644
20index 0000000000000000000000000000000000000000..baeb01a80d214e7c59f5c8cd0119c7fe843b0088
21--- /dev/null
22+++ b/plugins/operator-sdk/operator-sdk.plugin.zsh
23@@ -0,0 +1,4 @@
24+if [ $commands[operator-sdk] ]; then
25+  source <(operator-sdk completion zsh)
26+  compdef _operator-sdk operator-sdk
27+fi