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(pulumi): propagate resolved action context to pulumi plugin commands #5324

Merged
merged 3 commits into from Nov 1, 2023

Conversation

vvagaytsev
Copy link
Collaborator

What this PR does / why we need it:
This fixes the regressions introduced in 0.13. In 0.12, references to ${modules.*} in the Pulumi varfiles were possible.
This PR fixes 0.13 to use:

  • the ${actions.*} references in Pulumi varfiles
  • the ${modules.*} references with module-based configs

Which issue(s) this PR fixes:

Fixes #5083

Special notes for your reviewer:

@vvagaytsev vvagaytsev requested review from thsig and a team October 31, 2023 14:03
thsig
thsig previously approved these changes Oct 31, 2023
Copy link
Collaborator

@thsig thsig left a comment

Choose a reason for hiding this comment

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

Good stuff! Added one minor comment there.

const actions = graph.getDeploys({ names }).filter((a) => a.type === "pulumi")
// Provider resolution is a heavy operation.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's delete this comment—kf the providers have already been resolved on a garden instance, the resolved providers are cached.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed in f8260ab.

@vvagaytsev vvagaytsev added this pull request to the merge queue Oct 31, 2023
@vvagaytsev vvagaytsev removed this pull request from the merge queue due to a manual request Oct 31, 2023
Providers are already resolved and cached.
@vvagaytsev vvagaytsev added this pull request to the merge queue Nov 1, 2023
Merged via the queue into main with commit 750e88d Nov 1, 2023
44 checks passed
@vvagaytsev vvagaytsev deleted the fix/5083 branch November 1, 2023 10:08
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.

0.13: [Bug]: Unable to parse modules key
2 participants