Skip to content

feat: add GCP PSC Service Attachment support for RPEs#512

Draft
EvandroLG wants to merge 5 commits into
mainfrom
feat/rpe-gcp-psc-support
Draft

feat: add GCP PSC Service Attachment support for RPEs#512
EvandroLG wants to merge 5 commits into
mainfrom
feat/rpe-gcp-psc-support

Conversation

@EvandroLG
Copy link
Copy Markdown
Contributor

@EvandroLG EvandroLG commented Apr 17, 2026

Summary

  • Add GCP_PSC_SERVICE_ATTACHMENT as a supported type for clickhouse_clickpipes_reverse_private_endpoint, with a new optional gcp_service_attachment
    attribute (format: projects/{project}/regions/{region}/serviceAttachments/{name}).
  • Update the embedded resource description and generated docs to list the new type.
  • Add a schema unit test to guard the attribute and the extended type enum against regressions.

@EvandroLG EvandroLG self-assigned this Apr 17, 2026
@github-actions
Copy link
Copy Markdown
Contributor

@ClickHouse/clickpipes This PR has been tagged as ClickPipes-related.

Copy link
Copy Markdown

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

Adds support for creating ClickPipes Reverse Private Endpoints (RPEs) using GCP Private Service Connect (PSC) Service Attachments.

Changes:

  • Introduces new RPE type GCP_PSC_SERVICE_ATTACHMENT and wires it into allowed type validation.
  • Adds gcp_service_attachment to the Terraform resource schema/model and maps it into the create request + state/read handling.
  • Updates generated resource docs to include the new type/attribute.

Reviewed changes

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

Show a summary per file
File Description
pkg/resource/models/clickpipe_reverse_private_endpoint_resource.go Adds gcp_service_attachment to the Terraform state model.
pkg/resource/clickpipe_reverse_private_endpoint.go Extends schema/type validation, adds create request mapping and read/state mapping for GCP PSC service attachment.
pkg/internal/api/clickpipe_reverse_private_endpoint_models.go Adds gcpServiceAttachment to the API create payload/embedded model.
pkg/internal/api/clickpipe_reverse_private_endpoint.go Adds new API constant/type entry for GCP_PSC_SERVICE_ATTACHMENT.
docs/resources/clickpipes_reverse_private_endpoint.md Updates generated docs schema section for the new type and attribute.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/resource/clickpipe_reverse_private_endpoint.go
Comment thread pkg/resource/clickpipe_reverse_private_endpoint.go
Comment thread docs/resources/clickpipes_reverse_private_endpoint.md
Comment thread pkg/internal/api/clickpipe_reverse_private_endpoint.go
Comment thread pkg/resource/clickpipe_reverse_private_endpoint.go
@EvandroLG EvandroLG marked this pull request as ready for review April 17, 2026 12:48
@EvandroLG EvandroLG requested a review from a team as a code owner April 17, 2026 12:48
Comment thread pkg/resource/clickpipe_reverse_private_endpoint.go
Copy link
Copy Markdown
Member

@whites11 whites11 left a comment

Choose a reason for hiding this comment

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

one suggestion, otherwise looks good

Copy link
Copy Markdown
Member

@jkaflik jkaflik left a comment

Choose a reason for hiding this comment

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

LGTM. As we discussed internally, let's hold with the merge until the release day.

@jkaflik jkaflik marked this pull request as draft April 20, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants