106 lines
2.4 KiB
YAML
106 lines
2.4 KiB
YAML
plugins:
|
|
cnpg-backup:
|
|
shortCut: b
|
|
description: Backup
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
confirm: true
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg backup $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
|
cnpg-hibernate-status:
|
|
shortCut: h
|
|
description: Hibernate status
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg hibernate status $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
|
cnpg-hibernate:
|
|
shortCut: Shift-H
|
|
description: Hibernate
|
|
confirm: true
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg hibernate on $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
|
cnpg-hibernate-off:
|
|
shortCut: Ctrl-H
|
|
description: Wake up hibernated cluster in this namespace
|
|
confirm: true
|
|
scopes:
|
|
- namespace
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg hibernate off $NAME -n $NAME --context "$CONTEXT" |& less -R'
|
|
cnpg-logs:
|
|
shortCut: l
|
|
description: Logs
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- "kubectl-cnpg logs cluster $NAME -f -n $NAMESPACE --context $CONTEXT"
|
|
cnpg-psql:
|
|
shortCut: p
|
|
description: PSQL shell
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- "kubectl-cnpg psql $NAME -n $NAMESPACE --context $CONTEXT"
|
|
cnpg-reload:
|
|
shortCut: r
|
|
description: Reload
|
|
confirm: true
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg reload $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
|
cnpg-restart:
|
|
shortCut: Ctrl-R
|
|
description: Restart
|
|
confirm: true
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg restart $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
|
cnpg-status:
|
|
shortCut: s
|
|
description: Status
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg status $NAME -n $NAMESPACE --context "$CONTEXT" |& less -R'
|
|
cnpg-status-verbose:
|
|
shortCut: Ctrl-S
|
|
description: Status (verbose)
|
|
scopes:
|
|
- cluster
|
|
command: bash
|
|
background: false
|
|
args:
|
|
- -c
|
|
- 'kubectl-cnpg status $NAME -n $NAMESPACE --context "$CONTEXT" --verbose |& less -R'
|