Skip to content

Instantly share code, notes, and snippets.

@frimik
Last active November 8, 2022 09:20
Show Gist options
  • Save frimik/425320ed3037995f5926ba0c065ac32a to your computer and use it in GitHub Desktop.
Save frimik/425320ed3037995f5926ba0c065ac32a to your computer and use it in GitHub Desktop.
k9s plugin.yml
# $XDG_CONFIG_HOME/k9s/plugin.yml
plugin:
# Annotate current object with a Flux ignore annotation
fluxdepignore:
# Define a mnemonic to invoke the plugin
shortCut: Shift-I
# What will be shown on the K9s menu
confirm: true
description: Flux Ignore
# Collections of views that support this shortcut. (You can use `all`)
scopes:
- clusterrole
- clusterrolebinding
- configmaps
- csidrivers
- daemonsets
- deployments
- role
- rolebinding
- serviceaccounts
- services
- statefulsets
# The command to run upon invocation. Can use Krew plugins here too!
command: kubectl
# Whether or not to run the command in background mode
background: false
# Defines the command arguments
args:
- annotate
- $RESOURCE_NAME
- $NAME
- -n
- $NAMESPACE
- --context
- $CONTEXT
- 'fluxcd.io/ignore=true'
# Remove flux ignore annotation
fluxdepunignore:
# Define a mnemonic to invoke the plugin
shortCut: Ctrl-U
# What will be shown on the K9s menu
confirm: true
description: Flux Unignore
# Collections of views that support this shortcut. (You can use `all`)
scopes:
- clusterrole
- clusterrolebinding
- configmaps
- csidrivers
- daemonsets
- deployments
- role
- rolebinding
- serviceaccounts
- services
- statefulsets
# The command to run upon invocation. Can use Krew plugins here too!
command: kubectl
# Whether or not to run the command in background mode
background: false
# Defines the command arguments
args:
- annotate
- $RESOURCE_NAME
- $NAME
- -n
- $NAMESPACE
- --context
- $CONTEXT
- 'fluxcd.io/ignore-'
renew:
shortCut: r
confirm: true
description: Renew Certificate
scopes:
- certificates
command: cmctl
background: false
args:
- renew
- --context
- $CONTEXT
- --namespace
- $NAMESPACE
- $NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment