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

Fix provider diff #1869

Merged
merged 2 commits into from
Jan 14, 2022
Merged

Fix provider diff #1869

merged 2 commits into from
Jan 14, 2022

Conversation

lblackstone
Copy link
Member

Proposed changes

More recent provider provider options were not showing up in the diff

Related issues (optional)

@github-actions
Copy link

Does the PR have any schema changes?

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

}
if olds["suppressHelmHookWarnings"] != news["suppressHelmHookWarnings"] {
diffs = append(diffs, "suppressHelmHookWarnings")
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we introspect on the schema and look through the config settings instead of hardcoding/checking these? Seems like that would avoid the whole possibility of falling out of sync here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think another option would be iterating the entire struct, and special-casing any we need to handle differently. That would at least give a default diff.

Copy link
Contributor

Choose a reason for hiding this comment

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

Let me know how you want to proceed. Do the above now or merge this and follow-up. I do worry about the drift so the more we can standardize around schema guiding operations the better. This would also be a great endorsement for common logic living in a library across providers.

Copy link
Member Author

Choose a reason for hiding this comment

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

I switched to iterating the keys. Let's figure out how to centralize this logic as a follow up.

More recent provider provider options were not showing up in the diff
@github-actions
Copy link

Does the PR have any schema changes?

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

1 similar comment
@github-actions
Copy link

Does the PR have any schema changes?

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

@lblackstone lblackstone merged commit 72378fb into master Jan 14, 2022
@pulumi-bot pulumi-bot deleted the lblackstone/fix-provider-diff branch January 14, 2022 21:10
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.

None yet

2 participants