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

refactor: validate ForceNew fields in ResourceDataSet #2038

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

byashimov
Copy link
Contributor

@byashimov byashimov commented Feb 7, 2025

When import (ReadContext) doesn't set ForceNew field,
terraform then compares "empty" value with the value from the config,
and outputs "replace" plan.

ResourceDataSet must validate that given DTO has all required ForceNew fields set.

  • Adds the validation
  • Improves types conversions

@byashimov byashimov added the no changelog No changelog entries are required for this PR label Feb 7, 2025
@byashimov byashimov force-pushed the byashimov-NEX-508-validate-force-new branch 3 times, most recently from 305d59b to 02890f0 Compare February 7, 2025 13:59
@byashimov byashimov force-pushed the byashimov-NEX-508-validate-force-new branch 2 times, most recently from 67b39b4 to 5eeafe7 Compare February 7, 2025 22:26
@byashimov byashimov force-pushed the byashimov-NEX-508-validate-force-new branch 2 times, most recently from 6de426c to aa35ffe Compare February 8, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog No changelog entries are required for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant