Create and Edit Kubernetes job from cronjob template using your $EDITOR
.
kj namespace name
kj namespace/name
kj name
This command opens the editor with the job yaml from specified cronjob.
kj
command apply your changes.
Requirement: Go 1.16+
go install github.com/kitagry/kj@latest
brew install kitagry/tap/kj
This command is simple CLI, and expansiable.
For example, you can write following code in your .zshrc
, and then use kjf
command.
Watch the video for the acutual behavior.
You can use your favorite fuzzy finder(fzf, peco, etc).
kjf() {
kubectl get cronjobs --all-namespaces | tr -s ' ' | cut -d ' ' -f 1,2 | tail -n +2 | fzf | xargs kj
}