feat: ephemeral resource support (proto 6.9), write_only, Map/List types#1
Closed
rhencke wants to merge 3 commits into
Closed
feat: ephemeral resource support (proto 6.9), write_only, Map/List types#1rhencke wants to merge 3 commits into
rhencke wants to merge 3 commits into
Conversation
Map(value_type) provides map(string→T) support. Wire format: ["map", <value_type>], matches go-cty encoding. Encode/decode delegate to value_type per value. Handles None and Unknown sentinels like List/Set.
…te_only - Upgrade to tfplugin6.9 proto (ephemeral RPCs, write_only attribute, resource identity stubs) - Add EphemeralResource protocol to iface.py with get_name/get_schema/validate/open/close - Add get_ephemeral_resources/new_ephemeral_resource to Provider iface - Add ValidateEphemeralResourceConfig, OpenEphemeralResource, RenewEphemeralResource, CloseEphemeralResource RPCs to ProviderServicer - Add write_only field to schema.Attribute - Update protobuf constraint to >=6.0.0 (gencode requires 6.x) - Update Makefile to reference tfplugin6.9.proto - Add comprehensive tests for ephemeral resource support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
write_onlyattribute flag, and resource identity stubsEphemeralResourceprotocol toiface.pywithget_name,get_schema,validate,open,closeProviderinterface withget_ephemeral_resources()/new_ephemeral_resource()ProviderServicer:ValidateEphemeralResourceConfig,OpenEphemeralResource,RenewEphemeralResource,CloseEphemeralResourcewrite_onlyfield toschema.Attribute(secrets that are provided via config but omitted from state)>=6.0.0(gencode now requires 6.x runtime)tf/tests/test_ephemeral.py(19 tests)Related
Companion to hfern#18 (Map/List types).
Test plan
uv run --active pytest tf/ -qpasses (159 tests)