Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rspurgeon
Copy link
Collaborator

No description provided.

@Copilot Copilot AI review requested due to automatic review settings October 17, 2025 21:09
Copy link
Contributor

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 adds support for Control Plane Resource Groups in the Konnect declarative configuration, enabling control planes to function as groups with managed memberships.

Key changes:

  • Introduced ControlPlaneGroupsAPI interface and integration throughout the SDK, client, and planning layers
  • Added members field to control plane resources with validation for group-specific constraints
  • Implemented membership synchronization during create/update operations with reference resolution

Reviewed Changes

Copilot reviewed 16 out of 16 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
internal/konnect/helpers/sdk_mock.go Added mock factory for ControlPlaneGroupsAPI
internal/konnect/helpers/sdk.go Added GetControlPlaneGroupsAPI method to SDK interface
internal/declarative/state/client_control_plane_test.go Added tests for listing and upserting control plane group memberships
internal/declarative/state/client.go Added membership listing/upserting methods and cursor extraction helper
internal/declarative/resources/types.go Added GetControlPlaneByRef helper method
internal/declarative/resources/resources_test.go Added validation tests for control plane groups with members
internal/declarative/resources/control_plane.go Added ControlPlaneGroupMember type and member validation logic
internal/declarative/planner/dependencies.go Added array reference dependency resolution
internal/declarative/planner/control_plane_planner_test.go Added tests for planning group creation and member updates
internal/declarative/planner/control_plane_planner.go Implemented member tracking, normalization, and reference building
internal/declarative/executor/executor.go Added member resolution and synchronization during resource operations
internal/declarative/executor/control_plane_operations_test.go Added test for group member sync on create
internal/cmd/root/verbs/dump/declarative.go Added group membership fetching and normalization in dump command
internal/cmd/root/products/konnect/declarative/declarative.go Wired ControlPlaneGroupsAPI into state client
docs/examples/declarative/control-plane/README.md Added control plane group example reference
docs/declarative.md Added documentation for control plane groups feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@rspurgeon rspurgeon merged commit 92df391 into main Oct 20, 2025
11 checks passed
@rspurgeon rspurgeon deleted the cpgs branch October 20, 2025 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant