Skip to content

Conversation

tobio
Copy link
Member

@tobio tobio commented Sep 1, 2025

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

@tobio tobio self-assigned this Sep 1, 2025
@adcoelho adcoelho self-requested a review September 2, 2025 11:31
@nick-benoit nick-benoit requested a review from Copilot September 3, 2025 21:21
Copy link
Contributor

@Copilot Copilot AI left a 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

@nick-benoit
Copy link
Contributor

Per slack discussion with @tobio we should add an acceptance test similar to this where we create a connector with the SDK, then upgrade to the provider based version

tobio and others added 4 commits September 5, 2025 13:20
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)
@tobio tobio requested a review from nick-benoit September 9, 2025 10:50
Copy link
Contributor

@nick-benoit nick-benoit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@tobio tobio merged commit f5a7da3 into main Sep 10, 2025
72 of 73 checks passed
@tobio tobio deleted the connector-framework branch September 10, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants