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

stacks: apply nested default values to inputs #35349

Merged
merged 3 commits into from
Jun 18, 2024

Conversation

liamcervante
Copy link
Member

@liamcervante liamcervante commented Jun 17, 2024

This PR adds some additional test cases around default values for input variables into stacks, components, and embedded stacks. The tests found that root stack variables were not applying default values and this has been fixed.

This PR also adds some extra helper functions for parsing addresses in test files. As part of that the address parsing functions have been refactored to support parsing both component and resource addresses.

Internal ticket: TF-10860

@liamcervante liamcervante requested a review from a team June 17, 2024 09:13
}

// TODO: check the value against any custom validation rules
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is a TODO left, is this meant for this PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, this is about responding to custom validation rules on the inputs. We're not doing that at the moment (for any of the execution paths).

@liamcervante liamcervante merged commit b646dff into main Jun 18, 2024
6 checks passed
@liamcervante liamcervante deleted the liamcervante/stacks/defaults branch June 18, 2024 10:03
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants