Skip to content

feat: evaluate provisioner tags - #13333

Merged
mtojek merged 9 commits into
mainfrom
13219-select-provisioner
May 23, 2024
Merged

mtojek merged 9 commits into
mainfrom
13219-select-provisioner

Conversation

@mtojek

@mtojek mtojek commented May 21, 2024 •

Copy link
Copy Markdown
Member

Fixes: #13219

The PR implements logic to mutate template tags based on coder_parameter values.

@mtojek mtojek self-assigned this May 21, 2024
@mtojek
mtojek requested review from johnstcn and mafredri May 22, 2024 13:27
@mtojek
mtojek marked this pull request as ready for review May 22, 2024 13:27

@mafredri mafredri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Small nit but otherwise LGTM!

Comment thread coderd/wsbuilder/wsbuilder.go Resolved

@johnstcn johnstcn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM also 👍

return nil, BuildError{http.StatusBadRequest, "failed to evaluate workspace tag value", xerrors.Errorf(diags.Error())}
}

// Do not use "val.AsString()" as it can panic

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

😭

@mtojek
mtojek enabled auto-merge (squash) May 23, 2024 07:45
@mtojek
mtojek merged commit c2837a6 into main May 23, 2024
@mtojek
mtojek deleted the 13219-select-provisioner branch May 23, 2024 07:53
@github-actions github-actions Bot locked and limited conversation to collaborators May 23, 2024
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.

coderd: select provisioners based on workspace tags

3 participants