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

Eject with missing nodes #393

Merged
merged 7 commits into from Nov 2, 2022
Merged

Eject with missing nodes #393

merged 7 commits into from Nov 2, 2022

Conversation

iwahbe
Copy link
Member

@iwahbe iwahbe commented Nov 2, 2022

This PR makes three adjustments.

  1. It allows an Eject to proceed with missing nodes.
  2. It injects artificial config nodes during an Eject when it looks like it is a missing config value. This is a best effort heuristic but works in the simple case.
  3. It modifies how we eject config nodes, preventing any normalization on the lookup value. This ensures nodes like foo:bar don't get ejected as fooBar (which is invalid). (This behavior requires Support a logical name for config vars pulumi#11231)

@iwahbe iwahbe marked this pull request as draft November 2, 2022 17:00
@iwahbe iwahbe self-assigned this Nov 2, 2022
@iwahbe iwahbe requested a review from aq17 November 2, 2022 19:04
@iwahbe iwahbe added this to the 0.80 milestone Nov 2, 2022
@iwahbe iwahbe marked this pull request as ready for review November 2, 2022 19:05
@iwahbe iwahbe merged commit b5999af into main Nov 2, 2022
@iwahbe iwahbe deleted the iwahbe/eject-with-missing-nodes branch November 2, 2022 20:40
aq17 pushed a commit that referenced this pull request Nov 17, 2022
* Eject with missing nodes

* Allow ejecting nodes like foo:bar

* Inject missing config nodes

* Provide raw config names to PCL

* CL

* Fix tests

* Support config logcal names
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