Skip to content

Commit a0e5b58

Browse files
Remove deprecated and bump protocol version (#797)
* Remove deprecated * plumbing
1 parent a60aeaf commit a0e5b58

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

cmd/lk/agent_private_link.go

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,12 @@ var privateLinkCommands = &cli.Command{
8787
},
8888
}
8989

90-
func buildCreatePrivateLinkRequest(name, region string, port uint32, awsEndpoint string) *lkproto.CreatePrivateLinkRequest {
90+
func buildCreatePrivateLinkRequest(name, region string, port uint32, endpoint string) *lkproto.CreatePrivateLinkRequest {
9191
return &lkproto.CreatePrivateLinkRequest{
92-
Name: name,
93-
Region: region,
94-
Port: port,
95-
Config: &lkproto.CreatePrivateLinkRequest_Aws{
96-
Aws: &lkproto.CreatePrivateLinkRequest_AWSCreateConfig{
97-
Endpoint: awsEndpoint,
98-
},
99-
},
92+
Name: name,
93+
Region: region,
94+
Port: port,
95+
Endpoint: endpoint,
10096
}
10197
}
10298

cmd/lk/agent_private_link_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ func TestBuildCreatePrivateLinkRequest_HappyPath(t *testing.T) {
5252
assert.Equal(t, "us-east-1", req.Region)
5353
assert.Equal(t, uint32(6379), req.Port)
5454

55-
aws := req.GetAws()
56-
require.NotNil(t, aws)
57-
assert.Equal(t, "com.amazonaws.vpce.us-east-1.vpce-svc-abc123", aws.Endpoint)
55+
assert.Equal(t, "com.amazonaws.vpce.us-east-1.vpce-svc-abc123", req.Endpoint)
5856
}
5957

6058
func TestPrivateLinkServiceDNS(t *testing.T) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ require (
1212
github.com/go-logr/logr v1.4.3
1313
github.com/go-task/task/v3 v3.44.1
1414
github.com/joho/godotenv v1.5.1
15-
github.com/livekit/protocol v1.45.0
15+
github.com/livekit/protocol v1.45.1
1616
github.com/livekit/server-sdk-go/v2 v2.16.0
1717
github.com/mattn/go-isatty v0.0.20
1818
github.com/moby/patternmatcher v0.6.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ github.com/livekit/mediatransportutil v0.0.0-20260309115634-0e2e24b36ee8 h1:coWi
275275
github.com/livekit/mediatransportutil v0.0.0-20260309115634-0e2e24b36ee8/go.mod h1:RCd46PT+6sEztld6XpkCrG1xskb0u3SqxIjy4G897Ss=
276276
github.com/livekit/protocol v1.45.0 h1:e2ubU+rKYegn8f/6SGdKQKVCRfBkK1m0J0Rl5MJmns4=
277277
github.com/livekit/protocol v1.45.0/go.mod h1:63AUi0vQak6Y6gPqSBHLc+ExYTUwEqF/m4b2IRW1iO0=
278+
github.com/livekit/protocol v1.45.1 h1:4cbynsPZW32gS2z6nUWfAfr4YaTUwZSKUiLpSpjX+lQ=
279+
github.com/livekit/protocol v1.45.1/go.mod h1:63AUi0vQak6Y6gPqSBHLc+ExYTUwEqF/m4b2IRW1iO0=
278280
github.com/livekit/psrpc v0.7.1 h1:ms37az0QTD3UXIWuUC5D/SkmKOlRMVRsI261eBWu/Vw=
279281
github.com/livekit/psrpc v0.7.1/go.mod h1:bZ4iHFQptTkbPnB0LasvRNu/OBYXEu1NA6O5BMFo9kk=
280282
github.com/livekit/server-sdk-go/v2 v2.16.0 h1:xbr6PLprgasruzEk4Qv2sHVcK6r+cebUvaHxeE4UsZs=

0 commit comments

Comments
 (0)