Skip to content

an easy cli to create a kubernetes job from an existing cronjob spec

License

Notifications You must be signed in to change notification settings

shigedangao/bakkutteh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bakkutteh 🇸🇬

A CLI tool to create K8S Job from CronJob spec by allowing you to replace the environment variable (literal only) when needed.

Usage

Note

Your kubeconfig need to be configured.

Apply

Create a config from an existing cronjob

bakkutteh -j example-cronjob -t momo

Dry Run

You can use the dry run to show what will be applied into the K8S cluster

bakkutteh -j example-cronjob --dry-run -t jojo

Don't know the name of the CronJob you run ?

Just run without the option -j. A prompt will appear showing the list of cronjob allowing you to choose the list of cronjob that you're looking for

bakkutteh -- -t dodo --dry-run

Output example

bakkutteh -t hello-dodo -n default
> Select the cronjob that you want to use as a base of the job my-cronjob
Getting cronjob my-cronjob from namespace default
> Env for ADDITIONAL_VAR:  hello dodo !
Job hello-dodo-manual created

About

an easy cli to create a kubernetes job from an existing cronjob spec

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages