jenkins-x-plugins/jx-admin

create a command to trigger a boot job

Closed this issue · 0 comments

Right now we tend to create a dummy commit in a cluster git repo to trigger a new boot job.

One idea could be to use a CronJob, we can reuse this one https://github.com/jenkins-x/jx-cli/blob/master/charts/jx-cli/templates/cronjob.yaml and just configure the helm values. Then create a new command

jx admin sync or jx admin operator trigger or something?

which when that runs does the equivalent of

kubectl create job --from=cronjob/jx-operator foo