Commit Graph

358 Commits (stacks-variable-validations)

Author SHA1 Message Date
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
3 years ago
Martin Atkins 3f569b55c5 stacks: Some code consistency cleanups in preparation for first merge
3 years ago
Martin Atkins 8a99c3c0e5 stacks+rpcapi: Add some missing copyright comments
3 years ago
Martin Atkins 3678815bb3 stackeval: Tests for provider instance configuration evaluation
3 years ago
Martin Atkins 1872c9d9be stackeval: inPromisingTask cancels context when test completes
3 years ago
Martin Atkins 94ca9bc613 stackeval: testEvaluator arranges for its result to be cleaned up
3 years ago
Martin Atkins d7461ce202 stackeval: Initial tests for type "Provider"
3 years ago
Martin Atkins d3e0b89e02 stackeval: Some initial tests for the Component type
3 years ago
Martin Atkins 91b8ea3d76 stackstate: A helper for loading state during tests
3 years ago
Martin Atkins 95ff474ee9 stackeval: Tests for StackCall.ResultValue
3 years ago
Martin Atkins 333c502990 stackeval: Support each.key, each.value, count.index and self references
3 years ago
Martin Atkins 75602fa9eb stackeval: Tests for StackCall.Instances
3 years ago
Martin Atkins 48d2d15a40 stackeval: Some basic tests for OutputValue.CheckResultValue
3 years ago
Martin Atkins 13edd30479 stackeval: Test-only globals
3 years ago
Martin Atkins bb0e833785 stackeval: Remove stale comment about output value changes
3 years ago
Martin Atkins 0281170645 stackeval: Remove stale todo about prior state in plans
3 years ago
Martin Atkins 992f6d4115 stackeval: Fix input variable evaluation in embedded stacks
3 years ago
Martin Atkins 9a943af56d stackruntime: Arbitrary expression evaluation
3 years ago
Martin Atkins d689237a48 stackeval: Tests for the "perEvalPhase" helper
3 years ago
Martin Atkins 5aaed3111e stackeval: Reusable and testable for_each handling
3 years ago
Martin Atkins 1180096850 stackeval: Unit tests for EvalExpr and EvalBody
3 years ago
Martin Atkins 3c6c5effd5 stackeval: Applying must use apply-time provider clients
3 years ago
Martin Atkins 6e7eff9b4b stackruntime: Report deletion of resource instance objects
3 years ago
Martin Atkins c6894cc617 stackeval: ComponentInstance: all output values during planning
3 years ago
Martin Atkins 972f1c0678 stackplan: Track provider config for every resource instance change
3 years ago
Martin Atkins 4e34e6ebfa stacks: Track prior state for all resource instance objects
3 years ago
Martin Atkins 61ccc09681 stacks+rpcapi: Wire through the "plan mode" to the stacks runtime
3 years ago
Martin Atkins af0c4764ef stackeval: A FIXME about emitting prior state snapshots during apply
3 years ago
Martin Atkins 8fd29e9439 stacks: Preserve prior state from plan to apply
3 years ago
Martin Atkins 5372d5eb98 stacks+rpcapi(stacks): Model deposed objects for resource instances
3 years ago
Martin Atkins 2559151d0a stackruntime: Count actions successfully applied
3 years ago
Martin Atkins 5d9cac85bc stackruntime: Emit "pending" events for component instance plan/apply
3 years ago
Martin Atkins 947c483c49 rpcapi: Stack plan and apply use the same progress message type
3 years ago
Martin Atkins 1943ed2395 stackruntime: Emit some more progress hooks during the apply phase
3 years ago
Martin Atkins c4d7ee93fb stackeval: Use the right EvalPhase in various places
3 years ago
Martin Atkins 69aa51b9ff stackruntime: Fix some quirks of data sent from plan to apply
3 years ago
Martin Atkins 569f0f553b stackruntime: ComponentInstance considers previous state
3 years ago
Martin Atkins aaba750095 rpcapi: Stacks: pass previous state to stack runtime during planning
3 years ago
Martin Atkins 49511fe9a8 stackstate: Fuller round-tripping of resource instance object state
3 years ago
Martin Atkins 13e26b60dd addrs: Adopt DeposedKey as an address type; remove states.Generation
3 years ago
Martin Atkins d1b0632e82 stackruntime: Add HashiCorp copyright comments
3 years ago
Martin Atkins 74215a4451 stacks: Include resource type schema in PlannedChange and AppliedChange
3 years ago
Martin Atkins 48518b8233 stacks: A very basic stub of applied resource instance change announcements
3 years ago
Martin Atkins d99985720f stacks: Carry input variable values from plan to apply
3 years ago
Martin Atkins b887d29894 stackeval: NewForApplying must save the ChangeExecResults object
3 years ago
Martin Atkins de170a9a30 stackeval: InputVariable should respect EvalPhase when deciding value
3 years ago
Martin Atkins 373f39d6ac stackeval: ApplyPlan's ChangeExec must be in main task
3 years ago
Martin Atkins b8923a5f94 stackruntime: Persist a component's plantimestamp in the plan
3 years ago
Martin Atkins 8f00a7bf5a stackruntime: Make sure PlanResponse and ApplyResponse channels get closed
3 years ago
Alisdair McDiarmid 927350eca8 rpcapi: Add component expansion and change summary
3 years ago
Martin Atkins f1ceee5e69 rpcapi: Stacks.ApplyStackChanges initial implementation
3 years ago
Martin Atkins 2a0d407eb6 stackruntime: ApplyPlan function
3 years ago
Martin Atkins 8719f13b58 stackeval: Stubby implementation of applying changes to components
3 years ago
Martin Atkins f8d2fef129 stackeval: Factor out the two "walk drivers"
3 years ago
Martin Atkins fafa36e73a stackeval: ApplyPlan function and initial supporting internals
3 years ago
Martin Atkins 985b110afa stackeval: ChangeExec returns states.State from component instance change
3 years ago
Martin Atkins 959b02daa3 stackeval: ChangeExec allows component changes to return diagnostics
3 years ago
Martin Atkins 0ec4acb4ce stackeval: ChangeExec for orchestrating apply-time changes
3 years ago
Alisdair McDiarmid 54062a52cb stacks: More extensive in-progress plan events
3 years ago
Martin Atkins 6a45cdf7b0 stacks/stackruntime: Report if provider schema fetching fails
3 years ago
Martin Atkins 2095a7d000 stacks/stackruntime: Don't panic if component modules are invalid
3 years ago
Martin Atkins afd2282aa6 stacks/stackruntime: fix TestPlanWithSingleResource
3 years ago
Martin Atkins c1e7abafc3 stackruntime: Configure and assign provider instances
3 years ago
Martin Atkins 3dc3781904 stackruntime: Starting up and configuring provider plugins
3 years ago
Martin Atkins 373889ae25 stackeval: Actually use the component block "inputs" argument
3 years ago
Martin Atkins 7c1dbc9061 stackeval: Don't share objects between AsyncTask closures
3 years ago
Martin Atkins d1eaf199c9 stackeval: Don't panic if we don't know the input type for a component
3 years ago
Martin Atkins fbc34005ba stackeval: Emit PlannedChange for each component instance
3 years ago
Martin Atkins 2d2baee72d staticcheck: Broadly ignore unused stuff in all of "stacks"
3 years ago
Martin Atkins ea3b70abf0 stackeval: Component calls are now referenceable
3 years ago
Martin Atkins 4a179ed969 stackeval: Very very basic component planning
3 years ago
Martin Atkins d435cd5a1b stackconfig: Bring the source bundle with the config
3 years ago
Martin Atkins d3e93e4a31 stackruntime: Initial stubbing of Plan
3 years ago
Martin Atkins e76e203c77 stackeval: walkState with custom diagnostics handling
3 years ago
Martin Atkins 355bae32da stackruntime: Allow hooking the start and end of the overall plan operation
3 years ago
Martin Atkins 863a91359a stackruntime: Plan calls into stackeval
3 years ago
Martin Atkins 0111408ca8 stackruntime: Stub of "Plan" function
3 years ago
Martin Atkins 8af46fd38b stackruntime: An extensible "hooks" API
3 years ago
Martin Atkins 2b7fad5bee stackruntime: Our fake telemetry span must be passed by pointer
3 years ago
Martin Atkins 03c981d9d0 promising,rpcapi,stackruntime: Quiet some staticcheck errors
3 years ago
Martin Atkins 791a5fb8a6 stackruntime: Top-level "Validate" function
3 years ago
Martin Atkins 8c7acd5378 stackruntime: Helper for viewing traces in tests
3 years ago
Martin Atkins 4754889950 stackruntime: Beginnings of Validate function
3 years ago
Martin Atkins fd4612b804 stackeval: An OpenTelemetry tracer
3 years ago
Martin Atkins c5930cc83d stackeval: Ignore some unused stuff for now
3 years ago
Martin Atkins 59a044dd6f stackeval: The naming of promises
3 years ago
Martin Atkins 3d503f8e71 stackruntime: Stubbing the "interpreter" for stack configurations
3 years ago