Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

msp/terraformcloud: add option to respect existing run mode#62580

Merged
bobheadxi merged 1 commit into
mainfrom
sg-msp-tfc-sync-ignore-climode
May 9, 2024
Merged

msp/terraformcloud: add option to respect existing run mode#62580
bobheadxi merged 1 commit into
mainfrom
sg-msp-tfc-sync-ignore-climode

Conversation

@bobheadxi

@bobheadxi bobheadxi commented May 9, 2024

Copy link
Copy Markdown
Member

When using https://github.com/sourcegraph/sourcegraph/pull/62565, we override test environments that are in CLI mode, which can cause infra to be rolled out by surprise via VCS mode on switch - this change adds an option to respect the existing run mode configuration via -workspace-run-mode=ignore.

Thread: https://sourcegraph.slack.com/archives/C06JENN2QBF/p1715256898022469?thread_ts=1715251558.736709&cid=C06JENN2QBF

Test plan

sg msp tfc sync -all
👉 Syncing all environments for all services, including setting ALL workspaces to use run mode "vcs" (use '-workspace-run-mode=ignore' to respect the existing run mode) - are you sure? (y/N)  N
❌ aborting
Projects/sourcegraph/managed-services 1 » sg msp tfc sync -all -workspace-run-mode=ignore
👉 Syncing all environments for all services - are you sure? (y/N)  y
// ...

Workspaces with VCS mode are still attached to their repo:

image

Workspaces in CLI mode are not:

image

@cla-bot cla-bot Bot added the cla-signed label May 9, 2024
@bobheadxi bobheadxi requested a review from a team May 9, 2024 17:49
@bobheadxi bobheadxi merged commit 022b4ad into main May 9, 2024
@bobheadxi bobheadxi deleted the sg-msp-tfc-sync-ignore-climode branch May 9, 2024 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants