Browse Source

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

jxlwqq 2 years ago
parent
commit
1e263e245d
2 changed files with 15 additions and 0 deletions
  1. 11 0
      plugins/operator-sdk/README.md
  2. 4 0
      plugins/operator-sdk/operator-sdk.plugin.zsh

+ 11 - 0
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)
+```
+
+

+ 4 - 0
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