Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: a command to trigger a cronjob #405

Open
artsyjian opened this issue Mar 7, 2024 · 0 comments
Open

feature request: a command to trigger a cronjob #405

artsyjian opened this issue Mar 7, 2024 · 0 comments
Labels
medium medium importance

Comments

@artsyjian
Copy link
Contributor

Sometimes we want to kick off a CronJob and it takes some effort to conjure up the correct kubectl command. For example, to trigger this CronJob in Staging, we have to run:

kubectl --context staging create job --from=cronjob/hokusai-sandbox-cron test-123

That takes some doing to get right.

I would like Hokusai to provide an easily recallable command to do the same thing, such as:

hokusai staging run job hokusai-sandbox-cron

To get this command right, a user has to do the following two things which should be easy.

  • Run hokusai staging status which lists the CronJobs defined.
  • Copy/paste the desired CronJob to hokusai staging run job <CronJob>
@artsyjian artsyjian added the medium medium importance label Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium medium importance
Projects
None yet
Development

No branches or pull requests

1 participant