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/kubecronUsage
kubecron run cronjobnameIt also accepts context and namespace flags as kubectl
kubecron --context=default-cluster -n default run cronjobnameUsage as kubectl plugin
Rename the kubecron executable into kubectl-cron and place it in your $PATH
mv kubecron /usr/local/bin/kubectl-cronRun it like this:
kubectl cron run cronjobnameThis library is licensed under the MIT License - see the LICENSE file for details