-
Notifications
You must be signed in to change notification settings - Fork 19
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(work pools): support work pool access #389
Conversation
Similar to deployment_access and workspace_access, adds work_pool_access resource to manage access to work pools. Closes #366 Closes https://linear.app/prefect/issue/PLA-985/add-support-for-work-pool-access
65a59d4
to
ee71594
Compare
Required: true, | ||
Description: "The name of the Work Pool", | ||
}, | ||
"manage_actor_ids": schema.ListAttribute{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all repeated from deployment_access
and workspace_access
. We can de-duplicate a lot of that code. I'll make a followup issue to do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -27,7 +27,7 @@ func TestAccDatasource_account_role_defaults(t *testing.T) { | |||
} | |||
|
|||
// Default account role names - these exist in every account | |||
defaultAccountRoles := []defaultAccountRole{{"Admin", 42}, {"Member", 12}, {"Owner", 44}} | |||
defaultAccountRoles := []defaultAccountRole{{"Admin", 43}, {"Member", 12}, {"Owner", 45}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change, but this drifts from time to time when server-side changes are made.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm as a go-expert
Summary
Similar to deployment_access and workspace_access, adds work_pool_access resource to manage access to work pools.
API docs
Closes #366
Closes https://linear.app/prefect/issue/PLA-985/add-support-for-work-pool-access
Summary
Requirements
General
Closes <issue>
, if availableDraft
status is used until ready for reviewCode-level changes
New or updated resource/datasource
make docs
from source code)- When applicable, provide a link back to the relevant page in the Prefect documentation site.
- Resource example under
examples/resources/prefect_<name>/resource.tf
- Import example under
examples/resources/prefect_<name>/import.sh
(I noticed we don't have imports for deployment_access or workspace_access, so assuming that was intentional for now - but in the future we can add this if it makes sense)- Datasource example under
examples/data-sources,resources>/prefect_<name>/data-source.tf