yage
ab567f6950
===================================================================== --- New Features ------------------------- - Introducing an optional plugin for `kubectl` facilitation! Check out 'plugins/kubectl/README.md' for more details. --- Changes ------------------------------ - The function which lists all available scwrypts now ignores directories with a top-level base called "plugins." If this is a name conflict, you will need to define your own `SCWRYPTS__LIST_AVAILABLE_SCWRYPTS__<group>` function! (ref the changes in 'zsh/lib/scwrypts/run.module.zsh') |
||
---|---|---|
.. | ||
.config | ||
lib | ||
meta | ||
get-context | ||
get-namespace | ||
kubectl.driver.completion.zsh | ||
kubectl.driver.zsh | ||
kubectl.scwrypts.zsh | ||
README.md | ||
set-context | ||
set-namespace |
Kubernetes kubectl
Helper Plugin
Leverages a local redis
application to quickly and easily set an alias k
for kubectl --context <some-context> --namespace <some-namespace>
.
Much like scwrypts environments, k
aliases are only shared amongst session with the same SCWRYPTS_ENV
to prevent accidental cross-contamination.
Getting Started
Enable the plugin in ~/.config/scwrypts/config.zsh
by adding SCWRYPTS_PLUGIN_ENABLED__KUBECTL=1
.
Use k
as your new kubectl
and checkout k --help
and k meta --help
.