Commit Graph

429 Commits (stacks-variable-validations)

Author SHA1 Message Date
James Bardin 892172a185
Merge pull request #35727 from hashicorp/jbardin/ephemeral-resources
2 years ago
Liam Cervante b38fd17cf9
stacks: emit removal notices for empty components (#35738)
2 years ago
Liam Cervante e78294d42b
stacks: stop encoding values into msgpack twice (#35734)
2 years ago
Daniel Schmidt e50a1ac824
stacks: fix dependency handling in component forget
2 years ago
Liam Cervante 598648b66f
stacks: handle input and output state during delete plans (#35726)
2 years ago
Liam Cervante 3b30caa42b
stacks: mark input and output changes as no-ops when no changes (#35725)
2 years ago
Liam Cervante d142486a40
stacks: expand plan and apply outputs for inputs (#35724)
2 years ago
Liam Cervante 73e3f8096b
stacks: complete stack output implementation for plan and apply (#35723)
2 years ago
Daniel Schmidt f1b7faf901
stacks: remove TODO
2 years ago
Daniel Schmidt ceb52e65bb
stacks: support forgetting components
2 years ago
James Bardin 9e8c21866e ephemeral in stacks stubs
2 years ago
Liam Cervante 0ae6bc34c4
stacks: introduce shared functions for common tests (#35718)
2 years ago
James Bardin 9ff727440e udpate generated files
2 years ago
Liam Cervante 99a94908e7
stacks: do not include removed block instances that do not exist in state (#35693)
2 years ago
Liam Cervante 6b2cc9c379
stacks: include existing instances for unknown removed and component blocks (#35691)
2 years ago
Liam Cervante b22db510d4
stacks: error when removing a component still in config (#35692)
2 years ago
Liam Cervante c00bee8bbd
stacks: add a test for removed blocks in embedded stacks (#35681)
2 years ago
Liam Cervante cf49545b5a
stacks: include removed blocks during validate command (#35680)
2 years ago
Liam Cervante 6f9df8f5eb
stacks: ensure that all components in state are referenced in configuration (#35677)
2 years ago
Liam Cervante f8fe397d88
stacks: add removed block functionality (#35671)
2 years ago
Liam Cervante 436b72b63b
stacks: fix memory leak caused by unclosed providers (#35678)
2 years ago
Liam Cervante b6ac98122b
stacks: refactor shared functionality in prep for removed blocks (#35670)
2 years ago
Liam Cervante 36971f6ee8
stacks: add support for the removed block to .tfstacks.hcl (#35669)
2 years ago
Liam Cervante 7163c4b6d5
stacks: fix destroy ordering of stacks destroy plans (#35665)
2 years ago
Liam Cervante 36f11851a6
stacks: refactor the mock provider for realism (#35654)
2 years ago
Liam Cervante 11f431196d
stacks: remove unneeded required components functions (#35648)
2 years ago
Liam Cervante 483564a0ea
stacks: switch protofile licences to BUSL (#35633)
2 years ago
Liam Cervante cb7bae3217
stacks: remove stale state during Stack apply operations (#35639)
2 years ago
Liam Cervante 50233d7a78
stacks: support sensitive input values in planned changes (#35640)
2 years ago
Liam Cervante 40dc5c02d5
stacks: ensure providers that should not be configured cannot be (#35624)
2 years ago
James Bardin 20f66dffd0 fixup new test comparator
2 years ago
James Bardin 2ffbd0eb4e remove old refactoring comments
2 years ago
James Bardin 0b8fbfe323 ignore unexported state field in comparison
2 years ago
James Bardin bc750192e4 POC for always using decoded changes in core
2 years ago
Liam Cervante f1ae07b1af
stacks: add support for provider functions in .tfstack.hcl files (#35610)
2 years ago
Liam Cervante 964c64157c
stacks: fix bug preventing unconfigured clients within Terraform (#35571)
2 years ago
Liam Cervante 7660d8d086
stacks: fix suggested command when lock file is out of date (#35616)
2 years ago
Liam Cervante 047c1af0b4
stacks: add tests for state manipulation failure cases (#35589)
2 years ago
Liam Cervante bb73fb1d69
stacks: don't validate input variables during the apply phase (#35561)
2 years ago
Liam Cervante 5939efb798
stacks: add depends_on for embedded stacks and components (#35549)
2 years ago
Liam Cervante 38033b5c45
stacks: sort diags in test before comparison (#35550)
2 years ago
Liam Cervante 915b174da3
stacks: split the terraform1 RPC package into per-service packages (#35513)
2 years ago
Liam Cervante 471bddf3ba
json plan: update resource index and import ids to support unknown values (#35518)
2 years ago
Liam Cervante 46393f2a92
stacks: apply automatic type conversion before comparing inputs (#35530)
2 years ago
Daniel Schmidt 429ccbb88e
Merge pull request #35512 from hashicorp/TF-18555
2 years ago
Daniel Schmidt 4faf0f25dd
guard against nil resource key
2 years ago
Daniel Schmidt c693c39677
use resource_name instead of name
2 years ago
Liam Cervante 0c67edd598
stacks: ensure input values for components don't change between plan and apply (#35489)
2 years ago
Daniel Schmidt df85a22343
stacks: add fields required to display plan
2 years ago
Liam Cervante 33c0ae7f09
stacks: add additional provider validation tests (#35471)
2 years ago
Liam Cervante e704da535e
stack: stacks should be applyable even if no components are (#35498)
2 years ago
Liam Cervante 87bbc47737
stacks: include plan mode in stacks plan format (#35405)
2 years ago
Martin Atkins 170cca1332 stacks+promising: Better error messages for promise resolution failure
2 years ago
Martin Atkins ec2510fc3d stacks: Track raw stack as separate messages in raw plan
2 years ago
Alisdair McDiarmid d828776757 stacks+rpcapi: Load prior state and plan separately
2 years ago
Liam Cervante 3ecf7655ba
stacks: insert unknown values for missing outputs during applies (#35463)
2 years ago
Daniel Schmidt 1d45d12f40
stacks: track resource deferrals in apply
2 years ago
Liam Cervante 46a6d3f637
stacks: include moved and imported metadata in change descriptions (#35439)
2 years ago
Daniel Schmidt 591c3dea36
Merge pull request #35433 from hashicorp/TF-10919
2 years ago
Liam Cervante 634155f56b
stacks: extend diagnostic message to capture error from unscheduled component (#35434)
2 years ago
Daniel Schmidt 93cf093168
stacks: add new deferred plan status
2 years ago
Liam Cervante 8e47b5907c
stacks: provide more helpful diagnostics when providers types are mismatched (#35422)
2 years ago
Daniel Schmidt 4f401d9cd3
stacks: add dependency lock to new test case
2 years ago
Daniel Schmidt bf5037fa05
stacks: add test case
2 years ago
Daniel Schmidt 9f8ab0450c
stacks: fix move apply test
2 years ago
Daniel Schmidt 2a3c579693
stacks: use inspecting phase for provider config tests
2 years ago
Daniel Schmidt 05755422f3
stacks: pass dependency lock in tests
2 years ago
Daniel Schmidt 4433239da4
stacks: validate dependency lockfile in apply phase
2 years ago
Daniel Schmidt 0e5f7acda0
stacks: validate dependency lockfile in planning phase
2 years ago
Daniel Schmidt fb2f3ca276
stacks: refactor to get dependency locks through main
2 years ago
Daniel Schmidt 2ed6e1facd
stacks: validate lockfile containing all providers
2 years ago
Liam Cervante 587a7e88ff
stacks: include move, forget, import counts in apply summaries (#35391)
2 years ago
Liam Cervante 27f26bd1b5
stacks: emit specific moved notification during apply (#35387)
2 years ago
Daniel Schmidt ae05a0d27b
stacks: use plantimestamp from opts while planning
2 years ago
Daniel Schmidt a51938c246
stacks: move PlanTimestamp method for consistency
2 years ago
Daniel Schmidt 46999364f0
stacks: refactor for plantimestamp to come from the outside
2 years ago
Daniel Schmidt 49ba330fb5
stacks: force plan timestamp in module runtime
2 years ago
Daniel Schmidt b62a67394b
stacks: save plantimestamp to plan
2 years ago
Daniel Schmidt 8fa922f912
stacks: implement PlanTimestamp method on ExpressionScope
2 years ago
Mutahhir Hayat 01c5ddaecc
Merge pull request #34797 from hashicorp/mutahhir/stacks/local-value
2 years ago
Liam Cervante c0499647fa
stacks: include moved and removed in API (#35360)
2 years ago
Liam Cervante 0f0414d484
Fix partial address representation in plan for deferred actions (#34966)
2 years ago
Mutahhir Hayat 148b19b0d7 return validate value instead of dynamic value
2 years ago
Daniel Schmidt 3aa8e43100
Merge pull request #35356 from hashicorp/b-stacks-apply-variables-not-passed
2 years ago
Martin Atkins c57f709b1d stackruntime: Pass the apply-time variable values to stackeval
2 years ago
Liam Cervante b646dff26a
stacks: apply nested default values to inputs (#35349)
2 years ago
Liam Cervante 284ce63947
stacks: applyable status should be dependent on applyable components (#35350)
2 years ago
Martin Atkins 1714729f87 stackeval: terraform.applying symbol
2 years ago
Martin Atkins e74896bd24 stackruntime: Handle apply-time-specified input variables
2 years ago
Martin Atkins 79f78b268f stackeval: Ephemeral output values
2 years ago
Martin Atkins 71749d9682 stackeval: Ephemeral input variables
2 years ago
Martin Atkins 8c36d3b580 stackconfig: Variables and outputs can be sensitive/ephemeral
2 years ago
Liam Cervante 517f9944f7
stacks: support deferred imports in stacks events (#35334)
2 years ago
Liam Cervante 108bd85053
Refactor deferred variable name to defer in terraform1 API (#35343)
2 years ago
Mutahhir Hayat d398fa50c6 handle overlooked error in test
2 years ago
Mutahhir Hayat cb28bf3379 remove unused test
2 years ago
Mutahhir Hayat e20891ac1d add tests for local values through data sources
2 years ago
Liam Cervante 9b95898f63
stacks: emit events for deferred actions (#35325)
2 years ago
Liam Cervante 1bb78c14c2
deferred actions: always enable deferred actions in stacks (#35321)
2 years ago
Liam Cervante fc390038f3
stacks: add tests for and refactor steps when a provider can't be configured (#35294)
2 years ago
Liam Cervante eeb2c53385
stacks: remove wildcard key from computed instances (#35284)
2 years ago
Liam Cervante dc06717f69
stacks: add support for unknown for_each expressions in providers (#35267)
2 years ago
Liam Cervante 1e9a186059
stacks: return dynamic types when referencing partial components (#35254)
2 years ago
Liam Cervante 7096ec85cc
stacks: Enable resource deferrals within stack tests (#35168)
2 years ago
Daniel Schmidt 59ead5356f
stacks: update RPC APIs with deferral information (#35125)
2 years ago
Alisdair McDiarmid c8eec89c3d
Merge pull request #35247 from hashicorp/alisdair/rpcapi-stop
2 years ago
Liam Cervante b5d6b13b3b
stacks: convert sourcebundle source into directory for config SourceDir field (#35245)
2 years ago
Martin Atkins 5003af8335 stackeval: If context is cancelled, ask provider instances to stop
2 years ago
Alisdair McDiarmid 39373cc0d6 stackeval: Stop operations on context cancellation
2 years ago
Martin Atkins 9448845e91 stackeval: Improve coverage of namedPromiseReporter impls
2 years ago
Martin Atkins a4d19a8d13 stackeval: Stack.ProviderByLocalAddr must memoize its results
2 years ago
Liam Cervante 7a8ffff66e
stacks: Fix unknown provider values crashing validation phase (#35155)
2 years ago
Daniel Schmidt 2c65affe05
stacks: add comments to tests
2 years ago
Daniel Schmidt b1e50d0475
chore: fix comment
2 years ago
Daniel Schmidt 664bb21738
stacks: add comment
2 years ago
Mutahhir Hayat 6bbc8cdc76 Add more tests for local values
2 years ago
Mutahhir Hayat 2667a0f2c3 cleanup comments
2 years ago
Mutahhir Hayat 5e12bdf048 Stack evaluation should also visit local values when walking the stack
2 years ago
Mutahhir Hayat be317d4d3a Make Stack and Stack config aware of local values
2 years ago
Mutahhir Hayat 6554ce6bfd Add planning test to test for locals usage
2 years ago
Mutahhir Hayat 129d58fed3 Create local value structs, including config and tests
2 years ago
Mutahhir Hayat d695f8197c Add local values test
2 years ago
Daniel Schmidt 3267718d3d
stacks: support unknown for_each on embedded stacks
2 years ago
kmoe b74715e5fb
stacks: fix invalid filename (#35111)
2 years ago
Daniel Schmidt 35f44b01f0
stacks: fix comment and add assertion for diagnostics
2 years ago
Daniel Schmidt aeb5b47723
stacks: remove unused test case
2 years ago
Daniel Schmidt f847360a40
stacks: component.CheckInstances now reports on for each value diagnostics
2 years ago
Daniel Schmidt c370e5e71d
stacks: use more precise name for variable
2 years ago
Daniel Schmidt 1afc9789ef
stacks: use UnknownForEachRepetitionData for instance map repetition data in for_each
2 years ago
Daniel Schmidt 91a18a6b30
stacks: fix typo
2 years ago
Daniel Schmidt 7d0c4cfc4d
stacks: early exit on invalid for_each values for components
2 years ago
Daniel Schmidt d1168ffa62
stacks: return instance value for wildcard component instances
2 years ago
Daniel Schmidt 6f95225a91
stacks: handle unknown dynamic values
2 years ago
Daniel Schmidt 3cbfd39721
stacks: validate unknown component for_each type
2 years ago
Daniel Schmidt 3a7150b27e
stacks: handle unknown values in component for_each
2 years ago
Sebastian Rivera 015f795ff0 Rebrand Terraform Cloud to HCP Terraform
2 years ago
Martin Atkins 30e2fd6525 Handle marks a little more consistently
2 years ago
Nick Fagerlund 4d46cc81e3 Fix several deferred actions tests by setting DeferralAllowed
2 years ago
Nick Fagerlund 2b4147e0ba Add DeferralAllowed to stackeval.PlanOpts (temporary)
2 years ago
Nick Fagerlund d5be799cb9 End unknown_instances language experiment, in favor of whole-plan option
2 years ago
Martin Atkins d3b8a55781 go.mod: go get google.golang.org/protobuf@v1.33.0
2 years ago
Alisdair McDiarmid f409639934
Merge pull request #34765 from hashicorp/alisdair/stack-root-input-variable-defaults
2 years ago
Alisdair McDiarmid f3ec86b17b stackruntime: Treat unset and null equally
2 years ago
Daniel Schmidt 949a0e5585
Merge pull request #34755 from hashicorp/TF-10993
2 years ago
Daniel Schmidt 2fa4cc7b53
stacks: use existing conversion for attribute paths
2 years ago
Alisdair McDiarmid 0fe26468cd stackruntime: Apply defaults to root variables
2 years ago
CJ Horton 5a750561e6 round-trip check results through stack plans
2 years ago
Daniel Schmidt 57dd94fcde
stacks: expose replace paths in grpc api
2 years ago
Daniel Schmidt 49ad27f1c9
Merge pull request #34737 from hashicorp/stacks-for-each
2 years ago
Nick Fagerlund c9c24706aa
Merge pull request #34741 from hashicorp/nf/feb24-provider-addrs-in-statuses
2 years ago