-
Notifications
You must be signed in to change notification settings - Fork 16
plannable import: support step.ConfigExact = [true|false]
for all config sources
#494
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
Merged
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
4a0ef42
Add testdata for a writeable config directory
bbasata 6e8a7ed
Add testdata for a writeable config file
bbasata 85c46da
Add TestStep flag to opt out of config modification
bbasata 21e8d54
A failing test
bbasata c1aafe4
Prepare to add a field to configDirectory
bbasata 748d9d5
Accept optional generated config for a config directory
bbasata c53eb24
Write generated import config to ConfigDirectory
bbasata f4c6492
Rename to Append()
bbasata cdc70c1
Refactor to Append()
bbasata 2ef656a
Refactor to append() style
bbasata 07b1779
Rename to step.ConfigExact
bbasata 1dae6f8
lint
bbasata b5f05da
Extend ConfigExact to Config and ConfigFile
bbasata 0172dec
Merge branch 'main' into flexible-config-directory
bbasata 52cc5ee
fixup! Extend ConfigExact to Config and ConfigFile
bbasata d065ac4
Tidy importstate/testdata
bbasata 75caa28
tidy
bbasata 2f36714
tidy
bbasata 09fd5f0
tidy
bbasata 80943fc
tidy
bbasata de0a1a0
tidy
bbasata 507b3b2
tidy
bbasata 1d4d6b7
Add a test for appending to ConfigFile
bbasata ba89faf
Fix testdata
bbasata 5f9a0d0
Add changelog entry
bbasata 956450d
copywrite
bbasata b74081a
Update test expectation
bbasata 712b939
Rename to ImportStateConfigExact and tidy comment
bbasata File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kind: NOTES | ||
body: 'ImportState: extend auto-generated import blocks to work with `ConfigFile` and `ConfigDirectory`; adds `ConfigExact` flag to opt out' | ||
time: 2025-05-06T12:16:18.375025-04:00 | ||
custom: | ||
Issue: "494" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
helper/resource/importstate/testdata/2/examplecloud_container.tf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Copyright (c) HashiCorp, Inc. | ||
# SPDX-License-Identifier: MPL-2.0 | ||
|
||
resource "examplecloud_container" "test" { | ||
name = "somevalue" | ||
location = "westeurope" | ||
} |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.