-
Notifications
You must be signed in to change notification settings - Fork 122
Migrate elasticstack_kibana_action_connector resource to the plugin framework #1269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR migrates the elasticstack_kibana_action_connector
resource from the SDKv2 to the Terraform plugin framework. The migration includes creating a new custom ConfigValue type to handle default values in connector configurations and enables explicit connector ID setting support.
Key changes include:
- Migration from SDKv2 to plugin framework implementation
- Introduction of custom ConfigValue type for handling connector configuration defaults
- Addition of UUID validation for connector IDs
- Framework diagnostics conversion utilities
Reviewed Changes
Copilot reviewed 24 out of 24 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
provider/provider.go | Removed SDKv2 resource registration for kibana action connector |
provider/plugin_framework.go | Added plugin framework resource registration |
internal/kibana/connectors/*.go | New plugin framework implementation with custom config handling |
internal/utils/validators/is_uuid.go | New UUID validator for connector IDs |
internal/utils/diag.go | Added framework to SDK diagnostics conversion utility |
internal/clients/kibana_oapi/connector.go | Updated to use framework diagnostics and simplified config defaults |
internal/kibana/connector.go | Removed old SDKv2 implementation |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* origin/main: Somehow I didn't merge this properly... (#1273) fix(deps): update module github.com/stretchr/testify to v1.11.1 (#1272) Migrate to terraform-plugin-testing (#1256) Migrate Elasticsearch enrich policy resource and data source to Terraform Plugin Framework (#1220) Add support for solution field in elasticsearch_kibana_space resource and data source (#1210) Don't force replacement when changing integration versions (#1255) chore(deps): update golang:1.25.0 docker digest to 5502b0e (#1267) chore(deps): update docker.elastic.co/kibana/kibana docker tag to v9.1.3 (#1263) Bump github.com/ulikunitz/xz from 0.5.12 to 0.5.14 (#1264)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Does what it says on the tin.
Migrates the old suppress diff functionality into a new ConfigValue type which ignores any default values added into the connector response.
Related to #1088
Related to #1214
Fixes #1228
Fixes #1066