Commit Graph

173 Commits (6bbc8cdc76c2f815e8b20519cf83a3a7ec0f3cd4)

Author SHA1 Message Date
Liam Cervante 64b311d53a
stacks: apply sensitive marks to outputs from components (#34684)
2 years ago
Liam Cervante f0b61090a2
Move the testing MockProvider into a dedicated shared package (#34681)
2 years ago
Alisdair McDiarmid 06723d3d4b stackeval: Add support for replace actions to hook
2 years ago
Martin Atkins fde6277565 stackruntime: Pass ExperimentsAllowed into stackeval for apply
2 years ago
Liam Cervante 07f6621091
stacks: include resources in state when calculating required providers (#34645)
2 years ago
Martin Atkins e6665c4f43 stackeval: Basic support for deferred-change propagation
2 years ago
Martin Atkins 67d8a5137b rpcapi+stacks: Stacks runtime can see whether experiments are allowed
2 years ago
Liam Cervante 3475d22741
Fix nil pointer exception when planning stacks with undeclared variables (#34638)
2 years ago
Alisdair McDiarmid 55675b990a stackeval: Unmark provider config for plugin RPC
2 years ago
Martin Atkins 884e1fb2a4 terraform: Plans can be "complete" and "applyable"
2 years ago
Martin Atkins 0994e6fbf9 stacks: The terraform.workspace attr is not available in Stacks
2 years ago
Martin Atkins 7d2d4dec5e stackeval: When being destroyed, component instance result comes from plan
2 years ago
Martin Atkins dcb176a557 stackeval: A Main for applying knows the plan it's applying
2 years ago
Martin Atkins c06ad051a1 stackeval: Respect inter-component dependencies during apply
2 years ago
Martin Atkins c345cde93c stackeval: Extended utilities for plan and apply testing
2 years ago
Liam Cervante 9246b3a994
stacks: on module load convert relative paths to absolute (#34523)
2 years ago
Liam Cervante 7d143388f3
Add support for the cross resource type move operation in the proto schema (#34480)
2 years ago
Martin Atkins 3c14eeb945 stackeval: Make some provisioners available to stack components
2 years ago
Alisdair McDiarmid 1d3f863f2b stackruntime: Support sensitive component inputs
2 years ago
Alisdair McDiarmid e4b319401e stacksruntime: Add sensitive outputs tests
2 years ago
Martin Atkins 3961c18420 stackeval: Return an error if a module contains a provider config
2 years ago
Martin Atkins a51c034cc3 stackeval: Include component configurations in our static walks
2 years ago
Martin Atkins a3cd4a11ce stackeval: Use relative, slashy paths in module-related diagnostics
2 years ago
Martin Atkins a4d61733f6 stackplan: Include extra info in raw component instance plan
2 years ago
Martin Atkins 25a514f846 stackeval: Populate planned component instance more thoroughly
2 years ago
Martin Atkins 524da4f278 stackeval: Applyable objects have a set of required components
2 years ago
Martin Atkins 00761a9f70 stackeval: ApplyChecker is now Applyable
2 years ago
Martin Atkins 11bb10ba72 stackeval: Find references in arbitrary expressions and bodies
2 years ago
Martin Atkins 306b9008c4 stackeval: Clean some debug junk in ComponentInstance
2 years ago
James Bardin 2574b899e7
Merge pull request #34385 from hashicorp/jbardin/provider-functions-impl
2 years ago
Matej Risek 039cced8ae
Add component address to ComponentInstance under AppliedChanges (#34418)
2 years ago
James Bardin 2923ba6ac3 add CallFunction to stub provider
2 years ago
Martin Atkins be33a7e9e0 stackeval: Use prior state outputs when planning component destroy
2 years ago
Martin Atkins a47dc447c1 stackeval: Additional testing utilities
2 years ago
Martin Atkins 2aba28eb1a stacks: Track component instance existence in the state
2 years ago
Martin Atkins b0b8d4aa6f states: Only track root module output values
2 years ago
Martin Atkins b64953dba3 stacks: Summary docs giving an overview and some details about stackeval
2 years ago
Martin Atkins 3f569b55c5 stacks: Some code consistency cleanups in preparation for first merge
2 years ago
Martin Atkins 8a99c3c0e5 stacks+rpcapi: Add some missing copyright comments
2 years ago
Martin Atkins 3678815bb3 stackeval: Tests for provider instance configuration evaluation
2 years ago
Martin Atkins 1872c9d9be stackeval: inPromisingTask cancels context when test completes
2 years ago
Martin Atkins 94ca9bc613 stackeval: testEvaluator arranges for its result to be cleaned up
2 years ago
Martin Atkins d7461ce202 stackeval: Initial tests for type "Provider"
2 years ago
Martin Atkins d3e0b89e02 stackeval: Some initial tests for the Component type
2 years ago
Martin Atkins 91b8ea3d76 stackstate: A helper for loading state during tests
2 years ago
Martin Atkins 95ff474ee9 stackeval: Tests for StackCall.ResultValue
2 years ago
Martin Atkins 333c502990 stackeval: Support each.key, each.value, count.index and self references
2 years ago
Martin Atkins 75602fa9eb stackeval: Tests for StackCall.Instances
2 years ago
Martin Atkins 48d2d15a40 stackeval: Some basic tests for OutputValue.CheckResultValue
2 years ago
Martin Atkins 13edd30479 stackeval: Test-only globals
2 years ago
Martin Atkins bb0e833785 stackeval: Remove stale comment about output value changes
2 years ago
Martin Atkins 0281170645 stackeval: Remove stale todo about prior state in plans
2 years ago
Martin Atkins 992f6d4115 stackeval: Fix input variable evaluation in embedded stacks
2 years ago
Martin Atkins 9a943af56d stackruntime: Arbitrary expression evaluation
2 years ago
Martin Atkins d689237a48 stackeval: Tests for the "perEvalPhase" helper
2 years ago
Martin Atkins 5aaed3111e stackeval: Reusable and testable for_each handling
2 years ago
Martin Atkins 1180096850 stackeval: Unit tests for EvalExpr and EvalBody
2 years ago
Martin Atkins 3c6c5effd5 stackeval: Applying must use apply-time provider clients
2 years ago
Martin Atkins 6e7eff9b4b stackruntime: Report deletion of resource instance objects
2 years ago
Martin Atkins c6894cc617 stackeval: ComponentInstance: all output values during planning
2 years ago
Martin Atkins 972f1c0678 stackplan: Track provider config for every resource instance change
2 years ago
Martin Atkins 4e34e6ebfa stacks: Track prior state for all resource instance objects
2 years ago
Martin Atkins 61ccc09681 stacks+rpcapi: Wire through the "plan mode" to the stacks runtime
2 years ago
Martin Atkins af0c4764ef stackeval: A FIXME about emitting prior state snapshots during apply
2 years ago
Martin Atkins 8fd29e9439 stacks: Preserve prior state from plan to apply
2 years ago
Martin Atkins 5372d5eb98 stacks+rpcapi(stacks): Model deposed objects for resource instances
2 years ago
Martin Atkins 2559151d0a stackruntime: Count actions successfully applied
2 years ago
Martin Atkins 5d9cac85bc stackruntime: Emit "pending" events for component instance plan/apply
2 years ago
Martin Atkins 947c483c49 rpcapi: Stack plan and apply use the same progress message type
2 years ago
Martin Atkins 1943ed2395 stackruntime: Emit some more progress hooks during the apply phase
2 years ago
Martin Atkins c4d7ee93fb stackeval: Use the right EvalPhase in various places
2 years ago
Martin Atkins 69aa51b9ff stackruntime: Fix some quirks of data sent from plan to apply
2 years ago
Martin Atkins 569f0f553b stackruntime: ComponentInstance considers previous state
2 years ago
Martin Atkins aaba750095 rpcapi: Stacks: pass previous state to stack runtime during planning
2 years ago
Martin Atkins 49511fe9a8 stackstate: Fuller round-tripping of resource instance object state
2 years ago
Martin Atkins 13e26b60dd addrs: Adopt DeposedKey as an address type; remove states.Generation
2 years ago
Martin Atkins d1b0632e82 stackruntime: Add HashiCorp copyright comments
2 years ago
Martin Atkins 74215a4451 stacks: Include resource type schema in PlannedChange and AppliedChange
2 years ago
Martin Atkins 48518b8233 stacks: A very basic stub of applied resource instance change announcements
2 years ago
Martin Atkins d99985720f stacks: Carry input variable values from plan to apply
2 years ago
Martin Atkins b887d29894 stackeval: NewForApplying must save the ChangeExecResults object
2 years ago
Martin Atkins de170a9a30 stackeval: InputVariable should respect EvalPhase when deciding value
2 years ago
Martin Atkins 373f39d6ac stackeval: ApplyPlan's ChangeExec must be in main task
2 years ago
Martin Atkins b8923a5f94 stackruntime: Persist a component's plantimestamp in the plan
2 years ago
Martin Atkins 8f00a7bf5a stackruntime: Make sure PlanResponse and ApplyResponse channels get closed
2 years ago
Alisdair McDiarmid 927350eca8 rpcapi: Add component expansion and change summary
2 years ago
Martin Atkins f1ceee5e69 rpcapi: Stacks.ApplyStackChanges initial implementation
2 years ago
Martin Atkins 2a0d407eb6 stackruntime: ApplyPlan function
2 years ago
Martin Atkins 8719f13b58 stackeval: Stubby implementation of applying changes to components
2 years ago
Martin Atkins f8d2fef129 stackeval: Factor out the two "walk drivers"
2 years ago
Martin Atkins fafa36e73a stackeval: ApplyPlan function and initial supporting internals
2 years ago
Martin Atkins 985b110afa stackeval: ChangeExec returns states.State from component instance change
2 years ago
Martin Atkins 959b02daa3 stackeval: ChangeExec allows component changes to return diagnostics
2 years ago
Martin Atkins 0ec4acb4ce stackeval: ChangeExec for orchestrating apply-time changes
2 years ago
Alisdair McDiarmid 54062a52cb stacks: More extensive in-progress plan events
2 years ago
Martin Atkins 6a45cdf7b0 stacks/stackruntime: Report if provider schema fetching fails
2 years ago
Martin Atkins 2095a7d000 stacks/stackruntime: Don't panic if component modules are invalid
2 years ago
Martin Atkins afd2282aa6 stacks/stackruntime: fix TestPlanWithSingleResource
2 years ago
Martin Atkins c1e7abafc3 stackruntime: Configure and assign provider instances
2 years ago
Martin Atkins 3dc3781904 stackruntime: Starting up and configuring provider plugins
2 years ago