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: support unknown for_each on embedded stacks #35119

Merged
merged 4 commits into from
May 8, 2024
Merged

Conversation

DanielMSchmidt
Copy link
Collaborator

@DanielMSchmidt DanielMSchmidt commented May 6, 2024

Fixes #

Target Release

1.8.x

Draft CHANGELOG entry

NEW FEATURES

  • stacks: support unknown for_each values on embedded stacks

Copy link
Collaborator

@nfagerlund nfagerlund left a comment

Choose a reason for hiding this comment

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

I have some requests around comments, but the code all checks out to me.

@@ -190,7 +190,10 @@ func TestStackCallCheckInstances(t *testing.T) {
// when we know there are zero instances, which would be a non-nil
// empty map.
gotInsts, diags := call.CheckInstances(ctx, InspectPhase)
assertNoDiags(t, diags)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Oh. 😆 yeah, makes sense for CheckInstances to check the for_each value. I'm surprised it didn't before.

internal/stacks/stackruntime/plan_test.go Show resolved Hide resolved
DanielMSchmidt and others added 2 commits May 8, 2024 09:54
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
@DanielMSchmidt DanielMSchmidt merged commit f263c43 into main May 8, 2024
10 checks passed
Copy link

github-actions bot commented May 8, 2024

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

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