-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(prefect-worker): update Base Job Template with user-provided JSON (
#357) * feat(prefect-worker): update Base Job Template with user-provided JSON * empty * words * Update charts/prefect-worker/README.md
- Loading branch information
1 parent
f0a41f6
commit 9b68112
Showing
2 changed files
with
85 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -213,13 +213,22 @@ prefect work-pool get-default-base-job-template --type kubernetes > base-job-tem | |
helm install prefect-worker prefect/prefect-worker -f values.yaml --set-file worker.config.baseJobTemplate=base-job-template.json | ||
``` | ||
|
||
#### Updating the Base Job Template | ||
|
||
If a base job template is set through Helm (via either `.Values.worker.config.baseJobTemplate.configuration` or `.Values.worker.config.baseJobTemplate.existingConfigMapName`), we'll run an optional `initContainer` that will sync the template configuration to the work pool named in `.Values.worker.config.workPool`. | ||
Any time the base job template is updated, the subsequent `initContainer` run will run `prefect work-pool update <work-pool-name> --base-job-template <template-json>` and sync this template to the API. | ||
Please note that updating JSON inside of a `baseJobTemplate.existingConfigMapName` will require a manual restart of the `prefect-worker` Deployment in order to kick off the `initContainer`. However, updating the `baseJobTemplate.configuration` value will automatically roll the Deployment. | ||
## Maintainers | ||
| Name | Email | Url | | ||
| ---- | ------ | --- | | ||
| jamiezieziula | <[email protected]> | | | ||
| jimid27 | <[email protected]> | | | ||
| parkedwards | <[email protected]> | | | ||
| Name | Email | Url | | ||
|---------------|-----------------------|-----| | ||
| jamiezieziula | <[email protected]> | | | ||
| jimid27 | <[email protected]> | | | ||
| parkedwards | <[email protected]> | | | ||
| mitchnielsen | <[email protected]> | | | ||
## Requirements | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters