Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat: addis_prebuild_claim to distinguish post-claim provisioning#17757

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
dannykopping merged 5 commits intomainfromdk/is-prebuild-claim
May 12, 2025

Conversation

dannykopping
Copy link
Contributor

Used in combination withcoder/terraform-provider-coder#396

This is required by both#17475 and#17571

Operators may need to conditionalize their templates to perform certain operations once a prebuilt workspace has been claimed. This value willonly be set once a claim takes place and a subsequentterraform apply occurs. Anyterraform apply runs thereafter will be indistinguishable from a normal run on a workspace.

Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Copy link
Contributor

@spikecurtisspikecurtis left a comment

Choose a reason for hiding this comment

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

I've suggested a different name for the field, but I don't need to review again.

string running_workspace_agent_token = 21;
bool is_prebuild = 20; // Indicates that a prebuilt workspace is being built.
string running_workspace_agent_token = 21; // Preserves the running agent token of a prebuilt workspace so it can reinitialize.
bool is_prebuild_claim = 22; // Indicates that a prebuilt workspace is being claimed.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
boolis_prebuild_claim = 22;// Indicates that a prebuilt workspace is being claimed.
boolclaims_prebuilt_workspace = 22;// Indicates that a prebuilt workspace is being claimed.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

You're right; I probably shouldn't refer to "prebuild" here.
I'll make itis_prebuilt_workspace_claim to be similar in form tois_prebuild, since they're related fields.

Copy link
Contributor

Choose a reason for hiding this comment

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

You could make them a single enum...

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Could work, lemme try it and see how it feels.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

@spikecurtis great suggestion, this is more in line with how we do other things like workspace transitions; should've done this from the beginning.

bc9ff3d

Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Signed-off-by: Danny Kopping <dannykopping@gmail.com>
@dannykoppingdannykoppingenabled auto-merge (squash)May 12, 2025 14:06
@dannykoppingdannykopping merged commitaf2941b intomainMay 12, 2025
37 checks passed
@dannykoppingdannykopping deleted the dk/is-prebuild-claim branchMay 12, 2025 14:19
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 12, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@spikecurtisspikecurtisspikecurtis approved these changes

@SasSwartSasSwartSasSwart approved these changes

@johnstcnjohnstcnAwaiting requested review from johnstcnjohnstcn is a code owner

Assignees

@dannykoppingdannykopping

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@dannykopping@spikecurtis@SasSwart

[8]ページ先頭

©2009-2025 Movatter.jp