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

[WAYP-2855] Enable execution mode option for creating no-code workspaces #941

Merged
merged 3 commits into from
Jul 29, 2024

Conversation

paladin-devops
Copy link
Contributor

@paladin-devops paladin-devops commented Jul 29, 2024

Description

This PR adds the option to set the execution mode of a Terraform no-code workspace when creating it.

Testing plan

Run go-tfe go test -run TestRegistryNoCodeModule -v ./... with the necessary environment variables.

@paladin-devops paladin-devops self-assigned this Jul 29, 2024
@paladin-devops paladin-devops marked this pull request as ready for review July 29, 2024 19:45
@@ -68,6 +67,9 @@ type RegistryNoCodeModuleCreateWorkspaceOptions struct {

// SourceUrl is the URL of the source of the workspace.
SourceURL *string `jsonapi:"attr,source-url,omitempty"`

// ExecutionMode is the execution mode of the workspace.
ExecutionMode *string `jsonapi:"attr,execution-mode,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

I think you'll also need to include AgentPoolID too, in case someone uses agent for its ExecutionMode?

@paladin-devops paladin-devops force-pushed the WAYP-2855-no-code-execution-mode branch from e4a7858 to 1e22652 Compare July 29, 2024 19:54
@paladin-devops paladin-devops merged commit fc3bea3 into main Jul 29, 2024
7 checks passed
@paladin-devops paladin-devops deleted the WAYP-2855-no-code-execution-mode branch July 29, 2024 20:25
Copy link

Reminder to the contributor that merged this PR: if your changes have added important functionality or fixed a relevant bug, open a follow-up PR to update CHANGELOG.md with a note on your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants