From b60b2a6bd77589b0071f15d9ee4907b6b78a7484 Mon Sep 17 00:00:00 2001 From: shiyuhang <1136742008@qq.com> Date: Tue, 16 Dec 2025 17:04:27 +0800 Subject: [PATCH] update template --- internal/cli/serverless/changefeed/template.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/internal/cli/serverless/changefeed/template.go b/internal/cli/serverless/changefeed/template.go index 1e30c3bd..367ecabe 100644 --- a/internal/cli/serverless/changefeed/template.go +++ b/internal/cli/serverless/changefeed/template.go @@ -29,11 +29,11 @@ import ( const ( KafkaInfoTemplateWithExplain = `{ "network": { - // networkType: "PUBLIC", "PRIVATE" + // networkType: "PUBLIC", "PRIVATE_LINK" "networkType": "PUBLIC", "publicEndpoints": "broker1:9092,broker2:9092" "privateLink":{ - "id": "plc-xxx", + "privateLinkConnectionId": "plc-xxx", "port": 9092 } }, @@ -52,6 +52,7 @@ const ( "password": "", "enableTls": false, // Specify this field when your server rely on TLS SNI, for example, Confluent Cloud Dedicated clusters. + // If you use private link network, you must attach related domain for the server name to work properly. "serverName": "", }, "outputRawChangeEvent": false, @@ -122,7 +123,7 @@ const ( "networkType": "PUBLIC", "publicEndpoints": "broker1:9092,broker2:9092", "privateLink":{ - "id": "plc-xxx", + "privateLinkConnectionId": "plc-xxx", "port": 9092 } }, @@ -210,7 +211,7 @@ const ( MySQLTemplateWithExplain = `{ "network": { - // required "PUBLIC", "PRIVATE" + // required "PUBLIC", "PRIVATE_LINK" "networkType": "PUBLIC", "publicEndpoint": "127.0.0.1:3306", "privateLink":{