Skip to content

Commit 9ece8f5

Browse files
authored
update cdc template (#317)
1 parent da4887a commit 9ece8f5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

internal/cli/serverless/changefeed/template.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ import (
2929
const (
3030
KafkaInfoTemplateWithExplain = `{
3131
"network": {
32-
// networkType: "PUBLIC", "PRIVATE"
32+
// networkType: "PUBLIC", "PRIVATE_LINK"
3333
"networkType": "PUBLIC",
3434
"publicEndpoints": "broker1:9092,broker2:9092"
3535
"privateLink":{
36-
"id": "plc-xxx",
36+
"privateLinkConnectionId": "plc-xxx",
3737
"port": 9092
3838
}
3939
},
@@ -52,6 +52,7 @@ const (
5252
"password": "",
5353
"enableTls": false,
5454
// Specify this field when your server rely on TLS SNI, for example, Confluent Cloud Dedicated clusters.
55+
// If you use private link network, you must attach related domain for the server name to work properly.
5556
"serverName": "",
5657
},
5758
"outputRawChangeEvent": false,
@@ -122,7 +123,7 @@ const (
122123
"networkType": "PUBLIC",
123124
"publicEndpoints": "broker1:9092,broker2:9092",
124125
"privateLink":{
125-
"id": "plc-xxx",
126+
"privateLinkConnectionId": "plc-xxx",
126127
"port": 9092
127128
}
128129
},
@@ -210,7 +211,7 @@ const (
210211

211212
MySQLTemplateWithExplain = `{
212213
"network": {
213-
// required "PUBLIC", "PRIVATE"
214+
// required "PUBLIC", "PRIVATE_LINK"
214215
"networkType": "PUBLIC",
215216
"publicEndpoint": "127.0.0.1:3306",
216217
"privateLink":{

0 commit comments

Comments
 (0)