Daniel Banck
cb58a15f3d
Implement ListResource RPC (TF-25509) ( #37092 )
...
* Implement ListResource RPC via callbacks
* Implement ListResource with iterators
* Change `ListResourceResponse` to slice
* Turn ListResourceResponse into a struct
* Add a limit for ListResource
* explicitly cancel stream when listing resources
---------
Co-authored-by: Samsondeen Dare <samsondeen.dare@hashicorp.com>
2025-06-04 09:40:10 +02:00
Radek Simko
643266dc90
Add initial state store protocol skeleton ( #37197 )
...
* Add initial state store protocol skeleton
Introduce ValidateStateStoreConfig + ConfigureStateStore
Update GetProviderSchema + GetMetadata (for mux)
* address PR feedback
2025-06-03 13:52:35 +00:00
Daniel Banck
44ae7da18e
Update Plugin Protocol for List and Implement ValidateListResourceConfig ( #37007 )
...
* Minor auto-formatting changes
* Add list RPC and schema protobuf definitions
* make protobuf
* make generate
* Add ValidateListResourceConfig implementation
2025-05-19 10:20:52 +02:00
Liam Cervante
b6be635748
stacks migrate: allow resource mapping to include nested resources ( #37060 )
...
* stacks migrate: allow resource mapping to include nested resources
* make protobuf
2025-05-16 10:10:47 +02:00
Liam Cervante
3d4391865d
stacks: skip resource instance hooks during refresh plans ( #37043 )
...
* stacks: skip resource instance hooks during refresh plans
* add copywrite headers
2025-05-15 06:41:38 +00:00
Liam Cervante
a80220dcc9
stacks: rename .tfstack files to .tfcomponent ( #37013 )
...
* stacks: rename .tfstack files to .tfcomponent
* fix consistency issues
2025-05-15 08:33:13 +02:00
James Bardin
807e084130
final renaming for function results
2025-05-08 11:42:05 -04:00
James Bardin
a6ec17cb77
rename function results table
...
Remove "provider" from the function results fields since it's not going
to be exclusively used for providers any longer.
2025-05-07 16:03:43 -04:00
James Bardin
d016070564
move function results hashing to lang
...
We need to abstract the function results verification to use internally
too, so start by moving it out of the providers code.
2025-05-07 13:02:46 -04:00
Liam Cervante
1bc7d22ac4
stacks: removed blocks should refresh during refresh plans ( #36916 )
...
* stacks: removed blocks should refresh during refresh plans
* fix copywrite headers
* clarify return values of DefinedByStackInstance
2025-04-24 08:52:26 +00:00
Liam Cervante
dcff9e4d2c
stacks: improve test coverage for removed blocks ( #36914 )
...
* stacks: improve test coverage for removed blocks
* remove leftover comment
2025-04-24 09:22:50 +02:00
Liam Cervante
4eaa9d7fa0
stacks: removing embedded stacks should ignore stacks not in state ( #36901 )
2025-04-24 08:56:11 +02:00
Liam Cervante
063757ff45
stacks: refactor plan, state, and removed tracking with tree structures for efficient lookups ( #36850 )
2025-04-16 14:05:51 +02:00
Samsondeen
be242c36f4
Stacks migrate: migration workflow improvements ( #36882 )
2025-04-16 08:51:18 +02:00
Liam Cervante
a06f82746a
stacks: update removed blocks to allow targeting of embedded stacks ( #36814 )
...
* stacks: update removed blocks to allow targeting of embedded stacks
* copywrite headers
2025-04-04 15:01:37 +02:00
Liam Cervante
2b5101f734
stacks: include existing components when deferring nested stacks ( #36788 )
...
* stacks: include existing components when deferring nested stacks
* improve comments
2025-04-03 10:40:28 +02:00
Liam Cervante
fbd5a7930e
stacks: allow removed blocks to target components in nested stacks ( #36787 )
...
* stacks: allow removed blocks to target components in nested stacks
* make copywrite fix
* fix comments
2025-04-03 10:29:18 +02:00
Liam Cervante
7fadbe34de
write-only attributes: internal providers should set write-only attributes to null ( #36824 )
...
* write-only attributes: internal providers should set write-only attributes to null
* add changelog
* fix copywrite headers
2025-04-02 15:58:42 +02:00
Liam Cervante
c8044baf47
stacks: emit state updates for unclaimed components ( #36702 )
...
* stacks: allow multiple removed blocks to target the same component
* make linter happy
* stacks: emit state updates for unclaimed components
2025-04-02 08:39:10 +02:00
Liam Cervante
9707a27ee6
stacks: rename Removed to RemovedComponent in stackeval ( #36782 )
...
* stacks: provide stack and config on component creation
* stacks: rename Removed to RemovedComponent in stackeval
* renamed function calls also
2025-04-01 07:08:02 +00:00
Liam Cervante
7bec38bf5f
stacks: provide stack and config on component creation ( #36778 )
2025-04-01 08:34:05 +02:00
Liam Cervante
ebdf52cd09
stacks: remove all the unnecessary ctx function parameters ( #36762 )
...
* stacks: remove all the unnecessary ctx function parameters
* fix missing context
2025-03-26 12:34:23 +00:00
Liam Cervante
f82ae44484
stacks: make promises identify themselves ( #36749 )
...
* stacks: refactor promises so they declare id when starting
* stacks: add some missing perEval promises
* formatting
2025-03-26 13:25:45 +01:00
Samsondeen
71dbc7d726
migrate command for terraform stacks ( #36482 )
2025-03-19 10:39:50 +01:00
Samsondeen
8b7e7ad27d
Detect circular references during Validation ( #36709 )
2025-03-19 10:39:23 +01:00
Liam Cervante
9bbe34daa4
stacks: pre-destroy refresh should use a normal plan ( #36696 )
...
* stacks: pre-destroy refresh should use a normal plan
* format
2025-03-18 09:28:31 +01:00
Liam Cervante
c16d466773
stacks: allow multiple removed blocks to target the same component ( #36693 )
...
* stacks: allow multiple removed blocks to target the same component
* make linter happy
2025-03-18 08:54:27 +01:00
Daniel Schmidt
bc901abcc5
stacks: test resource identity
2025-03-12 14:46:50 +01:00
Liam Cervante
d4d92ea0b9
Fix broken build due to merge conflicts ( #36679 )
2025-03-12 09:47:07 +00:00
Liam Cervante
3d014d82f3
stacks: fix errors processing index keys of removed blocks ( #36673 )
2025-03-12 10:33:18 +01:00
Daniel Schmidt
fec6e4b552
send resource identities to provider calls
2025-03-12 09:18:55 +01:00
Daniel Banck
b2b42c0fb4
Store resource identities in state (TF-23255) ( #36464 )
...
* Persist resource identity in Terraform state
* make syncdeps
* Move identity schema merging closer to the protocol
* mock GetResourceIdentitySchemas
* Fix identity refresh tests
* Add more tests
* Change grcpwrap upgrade identity
* Review feedback
* Remove unnecessary version conversion
* Check if GetResourceIdentitySchemas RPC call is implemented
* Update function signature docs
* Adapt protocol changes
* Check unimplemented error for identities in GetSchema
2025-03-11 20:58:44 +01:00
Daniel Banck
10c9b64007
Rename schema.Block to Body ( #36629 )
2025-03-04 16:33:43 +01:00
James Bardin
3b3e4bf003
update the rest of the go:generate calls
2025-02-12 12:25:58 -05:00
Liam Cervante
1c04516392
stacks: allow unknown variables during apply operations ( #36311 )
2025-01-20 12:18:35 +01:00
Liam Cervante
a5c9903bbe
deferred actions: don't plan partial resources during refresh and destroy ( #36310 )
...
* deferred actions: don't plan partial resources during refresh and destroy
* actually, imports don't trigger during refresh
* Update internal/terraform/node_resource_plan_partialexp.go
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
* address comments
---------
Co-authored-by: Nick Fagerlund <nick.fagerlund@gmail.com>
2025-01-20 12:18:25 +01:00
Samsondeen
aec7c3cc89
terraform test: allow computed/mocked values override during planning ( #36227 )
2025-01-08 12:39:03 +01:00
Daniel Schmidt
0ff1b77afa
standardize client capabilities
2025-01-06 16:27:37 +01:00
Daniel Schmidt
3a962e8e7e
ephemeral: add WriteOnlyAttributesAllowed client capability
...
we allow it for all requests
2024-12-12 10:56:40 +01:00
Liam Cervante
a384d2daa7
stacks: fix deferred data sources and unknown component applies ( #35876 )
2024-10-22 11:23:53 +02:00
James Bardin
57a2e545fb
Merge pull request #35834 from hashicorp/jbardin/ephemeral-close
...
core: place ephemeral close nodes more acurately
2024-10-12 09:52:17 -04:00
Liam Cervante
7eb94fa7c8
stacks: fix tests broken now that ephemeral outputs aren't allowed
2024-10-11 10:23:10 +02:00
Daniel Schmidt
8ce424dbb5
Merge pull request #35826 from hashicorp/TF-18610
...
stacks: root level outputs should not allow ephemeral values
2024-10-10 18:12:05 +02:00
James Bardin
3a1a9408d9
fix Descendants spelling
...
this has proliferated everywhere
2024-10-09 11:09:02 -04:00
Liam Cervante
669e8ff1a6
stacks: skip full plan/apply cycles when deleting empty state ( #35831 )
2024-10-09 16:32:54 +02:00
Liam Cervante
bfa320c7b0
stacks: represent ephemeral inputs and outputs as null ( #35824 )
...
* stacks: represent ephemeral inputs and outputs as null
* quick fix: remove unnecessary check
2024-10-08 16:46:31 +02:00
Daniel Schmidt
d3e295da03
stacks: root level outputs should not allow ephemeral values
...
For embedded stacks we allow ephemeral values since they might be
consumed by other stacks / components. If a root level stack has an
ephemeral output it means we would need to display the ephemeral value
somewhere which goes against the ephemerality concept.
2024-10-08 15:21:49 +02:00
James Bardin
384f2d4fab
update collections to use for-range method
2024-10-04 11:22:44 -04:00
UKEME BASSEY
a56a4190aa
Merge pull request #35774 from hashicorp/TF-20569-prevent-panic-when-input-variable-is-sensitive
...
Prevent panic when input or output variable is sensitive
2024-09-25 16:19:00 -04:00
UKEME BASSEY
892a96e4b4
add test
2024-09-24 23:48:59 -04:00