Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: create new template version when tfvars change #98

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

Merged

Conversation

ethanndickson
Copy link
Member

@ethanndickson ethanndickson commented Sep 12, 2024

Closes #97.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ethanndickson and the rest of your teammates on Graphite Graphite

@ethanndickson ethanndickson force-pushed the 09-12-fix_create_new_template_version_when_tfvars_change branch from 2a47980 to 81449d0 Compare September 13, 2024 05:02
Name string `json:"name"`
ID uuid.UUID `json:"id"`
Name string `json:"name"`
TFVars map[string]string
Copy link
Member Author

@ethanndickson ethanndickson Sep 13, 2024

Choose a reason for hiding this comment

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

My understanding from testing is that adding a new field to a struct is backwards compatible (which is also why omitempty works) - if we read some private state from an older version of the provider the map will just be nil.

@ethanndickson ethanndickson marked this pull request as ready for review September 13, 2024 05:04
@ethanndickson ethanndickson force-pushed the 09-12-fix_create_new_template_version_when_tfvars_change branch from 81449d0 to b704ee6 Compare September 13, 2024 12:35
@ethanndickson ethanndickson merged commit bf558f5 into main Sep 16, 2024
14 checks passed
@ethanndickson ethanndickson deleted the 09-12-fix_create_new_template_version_when_tfvars_change branch September 16, 2024 04:31
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.

Change on tf_vars should also trigger a new template version
2 participants