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

feat/msp: do not use tfvars file outside of deploy-type 'subscription'#62704

Merged
bobheadxi merged 1 commit intomainfrom
msp-remove-tfvars
May 16, 2024
Merged

feat/msp: do not use tfvars file outside of deploy-type 'subscription'#62704
bobheadxi merged 1 commit intomainfrom
msp-remove-tfvars

Conversation

@bobheadxi
Copy link
Member

@bobheadxi bobheadxi commented May 15, 2024

Closes CORE-121

The dependency on the generated tfvars file is frustrating for first-time MSP setup because it currently requires -stable=false to update, and doesn't actually serve any purpose for deploy types other than subscription (which uses it to isolate image changes that happen on via GitHub actions). This makes it so that we don't generate, or depend on, the dynamic tfvars file unless you are using subscription.

I've also added a rollout spec configuration, initialImageTag, to make the initial tag we provision environments with configurable (as some services might not publish insiders images) - see the docstring.

Test plan

Inspect output of sg msp generate -all

@bobheadxi bobheadxi requested a review from jac May 15, 2024 21:28
@cla-bot cla-bot bot added the cla-signed label May 15, 2024
@bobheadxi bobheadxi force-pushed the msp-remove-tfvars branch from 0039e05 to 0d8826f Compare May 15, 2024 21:29
@bobheadxi bobheadxi merged commit 6c59b02 into main May 16, 2024
@bobheadxi bobheadxi deleted the msp-remove-tfvars branch May 16, 2024 16:43
bobheadxi added a commit that referenced this pull request May 16, 2024
#62704 introduced a regression due to the changing of the semantics of `rollouts` configuration in code: previously, only the final stage would get it, but with #62704 this became available on all environments, and to infer the final stage a nil-safe helper `rollout.IsFinalStage()` was introduced.

This change fixes a missed check migration that causes additional assets to be incorrectly generated for non-final environments.

## Test plan

`sg msp generate -all`
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