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 skipPush defaults to false #439

Merged
merged 3 commits into from
Dec 12, 2022
Merged

Ensure skipPush defaults to false #439

merged 3 commits into from
Dec 12, 2022

Conversation

guineveresaenger
Copy link
Contributor

@guineveresaenger guineveresaenger commented Dec 6, 2022

When using this provider with yaml, the default skipPush: false was not picked up and the provider panic()ed.
This PR explicitly ensures the value of skipPush is always false, unless set to true in the Pulumi program.
Adds tests.
A minor unrelated change gives a more meaningful name to the registry marshalling function.

Fixes #437

  • Explicitly set skipPush default to false
  • rename setRegistry to marshalRegistry

@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@guineveresaenger guineveresaenger changed the title Ensure skipPush defaults to true Ensure skipPush defaults to false Dec 6, 2022
@github-actions
Copy link

github-actions bot commented Dec 7, 2022

Does the PR have any schema changes?

Looking good! No breaking changes found.
No new resources/functions.

@guineveresaenger guineveresaenger added the impact/no-changelog-required This issue doesn't require a CHANGELOG update label Dec 7, 2022
Copy link
Member

@t0yv0 t0yv0 left a comment

Choose a reason for hiding this comment

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

Let's merge this. Actually would you like to go through the remaining code together and foolproof every opportunity for panics? There might be a few more.. The fully safe marshalling code is very annoying to write in Go; as an alternative we could perhaps consider coming back to #435 and reviving/cleaning it up. The automaker code does full nil checking and reports errors in terms of field coordinates automatically with less work on the caller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/no-changelog-required This issue doesn't require a CHANGELOG update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

skipPush is not defaulting to false
2 participants