Skip to content

Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob

License

Notifications You must be signed in to change notification settings

iJanki/kubecron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubecron

A small utility to do things not currently possible with kubectl. At the moment the following commands are implemented:

  • run
    • Running CronJobs immediately for testing purposes.
  • suspend
    • Suspend a CronJob
  • unsuspend
    • Unsuspend a CronJob

Installation

Download a release or

go get github.com/iJanki/kubecron

Usage

kubecron run cronjobname

It also accepts context and namespace flags as kubectl

kubecron --context=default-cluster -n default run cronjobname

Usage as kubectl plugin

Rename the kubecron executable into kubectl-cron and place it in your $PATH

mv kubecron /usr/local/bin/kubectl-cron

Run it like this:

kubectl cron run cronjobname

License

This library is licensed under the MIT License - see the LICENSE file for details

About

Utilities to manage kubernetes cronjobs. Run a CronJob manually for test purposes. Suspend/unsuspend a CronJob

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published