Skip to content

Add support for environment overrides in ESC API#665

Open
seanyeh wants to merge 1 commit into
mainfrom
syeh/esc-draft-refs
Open

Add support for environment overrides in ESC API#665
seanyeh wants to merge 1 commit into
mainfrom
syeh/esc-draft-refs

Conversation

@seanyeh

@seanyeh seanyeh commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

related: pulumi/pulumi#23562

Summary

Test changes

Risk

Rollback

@seanyeh seanyeh changed the title tmp Add support for environment overrides in ESC API Jun 15, 2026
@seanyeh seanyeh force-pushed the syeh/esc-draft-refs branch from 7b3ef94 to 323ce38 Compare June 15, 2026 22:14
@seanyeh seanyeh marked this pull request as ready for review June 16, 2026 16:40
@seanyeh seanyeh requested a review from a team June 16, 2026 17:03
Comment on lines +1076 to +1080
encoded, err := json.Marshal(overrides)
if err != nil {
return "", nil, fmt.Errorf("marshaling environment overrides: %w", err)
}
queryObj.EnvironmentOverrides = string(encoded)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a specific reason why we are sending an encoded json as query parameter instead of a json body?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@borisschlosser for anonymous yaml open, we already send the environment definition as the body (as raw yaml), which makes it tricky to add anything else to the body. for the regular open, i kept the same for consistency

@borisschlosser borisschlosser left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Waiting for backend discussions to resolve: https://github.com/pulumi/pulumi-service/pull/44449

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.

2 participants