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

Error configuring base job template #366

Closed
cchentola opened this issue Jul 31, 2024 · 2 comments · Fixed by #368
Closed

Error configuring base job template #366

cchentola opened this issue Jul 31, 2024 · 2 comments · Fixed by #368
Assignees

Comments

@cchentola
Copy link

Configuring base job template with this command (source) is throwing errors in the latest version of prefect-worker:

helm install prefect-worker prefect/prefect-worker -f values.yaml --set-file worker.config.baseJobTemplate=base-job-template.json

Error: INSTALLATION FAILED: values don't meet the specifications of the schema(s) in the following chart(s): prefect-worker: - worker.config.baseJobTemplate: Invalid type. Expected: object, given: string

The command works for version 2024.4.4201250

@parkedwards
Copy link
Contributor

hey @cchentola - thanks for raising this issue!

Apologies, there was an update to our values schema, where we nested the user-provided baseJobTemplate into an additional baseJobTemplate.configuration key after #340, but did not update the docs accordingly

I've opened this PR to reflect this change here: #368

to move past this, you can update your command line arg like so:

helm install prefect-worker prefect/prefect-worker -f values.yaml \
  --set-file worker.config.baseJobTemplate.configuration=base-job-template.json

@cchentola
Copy link
Author

Thanks for looking into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants