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

feat(Deployments): support Job Variables #250

Merged
merged 3 commits into from
Aug 27, 2024

Conversation

felixpelletier
Copy link
Contributor

@felixpelletier felixpelletier commented Aug 26, 2024

Summary

Supports setting Job Variables on Deployment resources.

Related to #238

Note: I'm a Go newbie, but I mainly just followed the very similar PR here: #245

Testing

I ran the unit tests, but I don't have an appropriate setup to run the acceptance tests.
If someone could help with that, I'd be very grateful 😉

@mitchnielsen
Copy link
Contributor

This is great, thanks for your contribution @felixpelletier! Will take a look 👍🏼

@mitchnielsen mitchnielsen added the enhancement New feature or request label Aug 26, 2024
The 'env' key is "the only job variable that is configurable for all
work pool types"
(https://docs.prefect.io/latest/guides/deployment/overriding-job-variables/)
so let's use that as the example and as the test to confirm it works as
expected.
@mitchnielsen
Copy link
Contributor

Hi @felixpelletier, I pushed one small change 309ab47. I found that env was a key that works for all work pool types, so I wanted to use that in the example and tests to confirm that your changes work as expected (and they do 👍🏼).

@github-actions github-actions bot added the docs label Aug 26, 2024
Copy link
Contributor

@mitchnielsen mitchnielsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great, thanks again @felixpelletier 🎉

  • New field added in correct places
  • Tests added and passing
  • Docs updated

Will approve and hand to @parkedwards for a final lookover since I ended up pushing a couple small changes.

@parkedwards parkedwards merged commit 20413da into PrefectHQ:main Aug 27, 2024
7 checks passed
@mitchnielsen mitchnielsen mentioned this pull request Aug 27, 2024
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants