generator-cronjob
v1.0.1
Published
In order to scaffold a new cron job, from the *root* of the [infra-reporting-jobs](https://github.com/Morgan-and-Morgan/infra-reporting-jobs) project run the following: ``` npx yo cronjob ```
Downloads
6
Readme
Cron Job Generator
In order to scaffold a new cron job, from the root of the infra-reporting-jobs project run the following:
npx yo cronjob
and then follow the prompts.
This will run a Yeoman generator that will generate all necessary files and scaffold a project directory for the job. It will also update/append the various Helm files. Yeoman will likely ask what to do about the "file conflict" that occurs as a result of appending to the Helm files, so you can just enter "y" (yes) to accept the appended change.
You will still need to update helm/prod-values.yaml
and helm/staging-values.yaml
with the necessary environment variables as well as make any configuration changes needed like the cron schedule, but it will be relatively hands off.