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

Support partly migrating patch resource #6

Open
ms-henglu opened this issue Jan 27, 2022 · 1 comment
Open

Support partly migrating patch resource #6

ms-henglu opened this issue Jan 27, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ms-henglu
Copy link
Member

Versions

the latest

Problem Statement

Here's an example of this case:

  1. User use patch resource to manage properties {P1, P2}
  2. P1 is now supported in azurerm resource, so there might be plan-diff
  3. Currently, since P2 is not supported, this resource can't be migrated,

Expected User Experience

There's no plan-diff.

Proposal

Migrate patch resource partly. In above example, only migrates P1 and P2 stays in the patch resource.

References

@ms-henglu ms-henglu added the enhancement New feature or request label Jan 27, 2022
@ms-henglu
Copy link
Member Author

The difficulty is that it's hard to remove some properties from patch resource without modifying the rest, which means it's hard to keep the reference/variable usage in the remained properties.

Other options:

  1. Let user remove the plan-diff properties manually and fix the config to match state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant