Skip to content

Commit 3bd7df5

Browse files
Merge branch 'master' into CORENET-6353
2 parents f269fba + cdf603f commit 3bd7df5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

cmd/thin_entrypoint/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
b64 "encoding/base64"
2222
"encoding/json"
2323
"fmt"
24+
"net"
2425
"os"
2526
"path/filepath"
2627
"strings"
@@ -225,7 +226,7 @@ func (o *Options) createKubeConfig(prevCAHash, prevSATokenHash []byte) ([]byte,
225226
return nil, nil, fmt.Errorf("template parse error: %v", err)
226227
}
227228
templateData := map[string]string{
228-
"KubeConfigHost": fmt.Sprintf("%s://[%s]:%s", kubeProtocol, kubeHost, kubePort),
229+
"KubeConfigHost": fmt.Sprintf("%s://%s", kubeProtocol, net.JoinHostPort(kubeHost, kubePort)),
229230
"KubeServerTLS": tlsConfig,
230231
"KubeServiceAccountToken": string(saTokenByte),
231232
}

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module gopkg.in/k8snetworkplumbingwg/multus-cni.v4
22

3-
go 1.24.0
4-
5-
toolchain go1.24.6
3+
go 1.24
64

75
require (
86
github.com/blang/semver v3.5.1+incompatible

0 commit comments

Comments
 (0)