Skip to content

Commit efc5783

Browse files
committed
BUILD/MINOR: go.mod: upgrade client-native
Upgrade github.com/haproxytech/client-native/v6 to v6.3.1-0.20260520132134-5762461b033f
1 parent 2a0ca66 commit efc5783

5 files changed

Lines changed: 2443 additions & 1025 deletions

File tree

client-native/events.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func ListenHAProxyEvents(ctx context.Context, client clientnative.HAProxyClient)
6868
return nil, err
6969
}
7070
// v3.2+
71-
if version.Major < 3 || (version.Major == 3 && version.Minor < 2) {
71+
if version.Major() < 3 || (version.Major() == 3 && version.Minor() < 2) {
7272
return nil, ErrOldVersion
7373
}
7474

configure_data_plane.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import (
3030
"sync"
3131
"syscall"
3232

33+
"github.com/Masterminds/semver/v3"
3334
"github.com/getkin/kin-openapi/openapi2"
3435
"github.com/getkin/kin-openapi/openapi2conv"
3536
"github.com/getkin/kin-openapi/openapi3"
@@ -1215,7 +1216,7 @@ func canUseMasterSocketReload(conf *dataplaneapi_config.HAProxyConfiguration, cl
12151216
return false
12161217
}
12171218

1218-
return cn_runtime.IsBiggerOrEqual(&cn_runtime.HAProxyVersion{Major: 2, Minor: 7}, &currVersion)
1219+
return cn_runtime.IsBiggerOrEqual(&cn_runtime.HAProxyVersion{Version: semver.New(2, 7, 0, "", "")}, &currVersion)
12191220
}
12201221

12211222
func configureNativeClient(cyx context.Context, haproxyOptions dataplaneapi_config.HAProxyConfiguration, mWorker bool) client_native.HAProxyClient {

0 commit comments

Comments
 (0)