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: Add external provisioner daemons #4935

Merged
merged 23 commits into from
Nov 16, 2022
Merged

feat: Add external provisioner daemons #4935

merged 23 commits into from
Nov 16, 2022

Conversation

kylecarbs
Copy link
Member

@kylecarbs kylecarbs commented Nov 7, 2022

This adds the concept of tags to provisioner daemons.

When creating a template or pushing a new version, --provisioner-tag is now a command-line option. This allows you to target provisioners with the matching set of tags.

coder provisionerd start --tag key=value launches a new provisioner daemon.

scope=user is a special tag that will auto-insert the owner=<user-id> tag when the user initializes build operations for their resources. This solves #909 by allowing users to run a daemon, and template admins can target them.

This feature lacks polish right now (notably, the UI will show a "Pending" state if a daemon isn't matching the specified tags), but that seems fine while we initially test. This doesn't make any irreversible changes, so it should be good to merge.

@kylecarbs kylecarbs marked this pull request as ready for review November 15, 2022 19:33
@kylecarbs kylecarbs requested a review from a team as a code owner November 15, 2022 19:33
@kylecarbs kylecarbs requested review from Kira-Pilot and removed request for a team November 15, 2022 19:33
Copy link
Member

@Kira-Pilot Kira-Pilot left a comment

Choose a reason for hiding this comment

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

FE ✅

coderd/database/dbtype/dbtype.go Outdated Show resolved Hide resolved
coderd/database/queries/provisionerjobs.sql Outdated Show resolved Hide resolved
coderd/database/queries.sql.go Show resolved Hide resolved
@kylecarbs kylecarbs merged commit b6703b1 into main Nov 16, 2022
@kylecarbs kylecarbs deleted the provisionerdaemons branch November 16, 2022 22:34
@github-actions github-actions bot locked and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants