You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resource Identity: Add identity data to existing RPCs and add two new identity related RPCs" (#1444)
* update plugin go
* initial generate of RPC + small shim test
* wip - resource identity schema
* Added initial testing for getresourceidentityschemas
* Added initial attempt for GetResourceIdentitySchemas and UpgradeResourceIdentity.
* start implementing identity in ReadResource – test doesn't work yet, but getting close
* Added more for GetResourceIdentitySchemas and UpgradeResourceIdentity.
* Copied CoreIdentitySchema to CoreResourceIdentitySchema and started ConfigIdentitySchemaToProto and coreConfigIdentitySchema to use in GetResourceIdentitySchemas
* Continuing addition of functions for Resource Identity
* Added TODO for internal validation later
* Tests for GetResourceIdentity passing
* Initial test written for UpgradeResourceIdentity passing
* make ReadResource test pass
* use the right identity upgraders
* support get, set for identity data
* support get, set for identity data in diffs in PlanResourceChange customize diff functions
* Added to the internal validation in schema and corresponding tests, need to check if the expected behavior is correct
* Added TestUpgradeResourceIdentity_removedAttr and TestUpgradeResourceIdentity_jsonStateBigInt however BigInt doesn't work just yet
* safeguard empty identity sent by Terraform
* implement identity in ApplyResourceChange
* allow using Identity() when there wasn't one yet
* fix check for previous state
* Added scaffolding for internalIdentityValidate in resource.go to validate resource identities
* update terraform-plugin-go to latest main
* fix diff possibly being empty
* update RawIdentity to RawState as the former was retired
* update code comments and remove obsolete todos
* address review feedback
* fix lint
* add copyright headers
* fix TestUpgradeResourceIdentity_jsonStateBigInt test
* update todo comments
* remove obsolete comment
* remove validation for identity schemas, will be done in separate PR
---------
Co-authored-by: Austin Valle <[email protected]>
Co-authored-by: Rain <[email protected]>
0 commit comments