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

undeclared variables must be allowed during apply #36025

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Conversation

jbardin
Copy link
Member

@jbardin jbardin commented Nov 18, 2024

Plan allows undeclared config variables with only warnings, and that behavior needs to be carried forward to apply now that ephemeral variables can be passed in at apply time. We still want to preserve the same semantics as plan, which handle environment, file and cli variables differently, so this re-uses the same plan-time parsing logic.

Fixes #36017

@jbardin jbardin added the 1.10-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Nov 18, 2024
@jbardin jbardin added this to the v1.10 milestone Nov 18, 2024
@jbardin jbardin requested a review from a team as a code owner November 18, 2024 13:23
Plan allows undeclared config variables with only warnings, and that
behavior need to be carried forward to apply now that ephemeral
variables can be passed in at apply time.
Copy link
Contributor

The equivalence tests will be updated. Please verify the changes here.

@jbardin jbardin merged commit 9932161 into main Nov 18, 2024
7 checks passed
@jbardin jbardin deleted the jbardin/undeclared-vars branch November 18, 2024 15:24
Copy link
Contributor

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

Copy link
Contributor

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 Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.10-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error when applying plan when undeclared variables exist
3 participants