From 2ec05655e956cdaeeb80bcf57fbed9d347b15310 Mon Sep 17 00:00:00 2001 From: moradudu <162454698+moradudu@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:36:59 +0800 Subject: [PATCH 1/4] support ipv6 --- pkg/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/agent/agent.go b/pkg/agent/agent.go index 1c47d3b9..f38acc0f 100644 --- a/pkg/agent/agent.go +++ b/pkg/agent/agent.go @@ -79,7 +79,7 @@ func NewAgent(options *Options) (*Agent, error) { conf.CAData = ca conf.BearerToken = token - conf.KubernetesSvcHost = fmt.Sprintf("%s:%s", host, port) + conf.KubernetesSvcHost = net.JoinHostPort(host,port) } agent := &Agent{ From 4f30f7e5eaa3f6b90870d518ffb1896d26c5a37f Mon Sep 17 00:00:00 2001 From: moradudu <162454698+moradudu@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:03:28 +0800 Subject: [PATCH 2/4] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e97a9ce1..4d70379e 100644 --- a/README.md +++ b/README.md @@ -98,4 +98,5 @@ spec: externalKubeAPIEnabled: true ``` -With `externalKubeAPIEnabled=true` and `connection.type=proxy` tower will create the serivce with `LoadBlancer` type, content in annotation with key `tower.kubesphere.io/external-lb-service-annoations` will be applied to the service anntations as k-v, so that your can control how the `ccm` process the service. \ No newline at end of file +With `externalKubeAPIEnabled=true` and `connection.type=proxy` tower will create the serivce with `LoadBlancer` type, content in annotation with key `tower.kubesphere.io/external-lb-service-annoations` will be applied to the service anntations as k-v, so that your can control how the `ccm` process the service. +## From 110caeed903a53afaa25e91df7519cd50747f3cf Mon Sep 17 00:00:00 2001 From: moradudu <162454698+moradudu@users.noreply.github.com> Date: Sat, 23 Mar 2024 17:23:42 +0800 Subject: [PATCH 3/4] Update main.go --- cmd/proxy/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index 3f126693..a447a66f 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -1,3 +1,4 @@ +// package main import ( From f822158871e2c8d1c2e43f5051eb6b3aada65e23 Mon Sep 17 00:00:00 2001 From: moradudu <162454698+moradudu@users.noreply.github.com> Date: Mon, 25 Mar 2024 16:34:11 +0800 Subject: [PATCH 4/4] Update main.go --- cmd/proxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/proxy/main.go b/cmd/proxy/main.go index a447a66f..102d3e74 100644 --- a/cmd/proxy/main.go +++ b/cmd/proxy/main.go @@ -1,4 +1,4 @@ -// + package main import (