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

Ensure Project Stack is not loaded and saved unnecessariliy for default secrets manager #5132

Closed
wants to merge 1 commit into from

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Aug 7, 2020

Fixes: #5126

In the newServiceSecretsManager, we were loading and saving the project stack
without understanding if any changes had actually been made - e.g. changing the
stack to be a new secrets provider

This has now been guarded against, tests added to understand when it will
actually be saved and we no longer get unnecessary config sorting when interacting
with a default stack AND no longer get an empty config map in our config
file when we initiate a new stack with a default secrets provider

…lt secrets manager

Fixes: #5126

In the newServiceSecretsManager, we were loading and saving the project stack
without understanding if any changes had actually been made - e.g. changing the
stack to be a new secrets provider

This has now been guarded against, tests added to understand when it will
actually be saved and we no longer get unnecessary config sorting when interacting
with a default stack AND no longer get an empty config map in our config
file when we initiate a new stack with a default secrets provider
@stack72 stack72 requested review from lukehoban and justinvp and removed request for lukehoban August 7, 2020 13:30
@stack72 stack72 self-assigned this Aug 7, 2020
Copy link
Member

@justinvp justinvp left a comment

Choose a reason for hiding this comment

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

Some nits, but LGTM.

pkg/cmd/pulumi/crypto_http.go Show resolved Hide resolved
pkg/cmd/pulumi/crypto_http.go Show resolved Hide resolved
pkg/cmd/pulumi/crypto_http.go Show resolved Hide resolved
pkg/cmd/pulumi/crypto_http_test.go Show resolved Hide resolved
pkg/cmd/pulumi/crypto_http.go Show resolved Hide resolved
@stack72
Copy link
Contributor Author

stack72 commented Aug 7, 2020

Merged in d03d2b1

@stack72 stack72 closed this Aug 7, 2020
@stack72 stack72 deleted the preserve-config-order branch August 7, 2020 20:33
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.

Pulumi v2.8.1 is reformatting my Pulumi.*.yaml files
3 participants