Plugin support for carvel kapp CR (#1830)

* Plugin support for carvel kapp CR

Shortcuts to call carvel kctrl cli

See https://carvel.dev/kapp-controller/docs/develop/management-command/#app

* Update carvel.yml
mine
Guillaume Berche 2022-10-30 14:04:15 +01:00 committed by GitHub
parent 61f7534612
commit 871a52d8d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 47 additions and 0 deletions

47
plugins/carvel.yml Normal file
View File

@ -0,0 +1,47 @@
# $HOME/.k9s/plugin.yml
plugin:
kapp-inspect:
shortCut: Shift-Z
confirm: false
description: Kapp inspect
scopes:
- app
command: bash
background: false
args:
- -c
- "export FORCE_COLOR=1;kapp inspect -a $NAME.app --namespace $NAMESPACE --color --tty |& less -R"
kctrl-app-status:
shortCut: Shift-Q
confirm: false
description: kctrl app status
scopes:
- app
command: bash
background: false
args:
- -c
- "export FORCE_COLOR=1;kctrl app status -a $NAME --namespace $NAMESPACE --color --tty |& less -R"
kctrl-app-pause:
shortCut: Shift-T
confirm: false
description: kctrl app pause
scopes:
- app
command: bash
background: false
args:
- -c
- "export FORCE_COLOR=1;kctrl app pause -a $NAME --namespace $NAMESPACE --yes --color --tty |& less -R"
kctrl-app-kick:
shortCut: Shift-Z
confirm: false
description: kctrl app kick
scopes:
- app
command: bash
background: false
args:
- -c
- "export FORCE_COLOR=1;kctrl app kick -a $NAME --namespace $NAMESPACE --yes --color --tty |& less -R"