Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加aws导入集群功能 #2388

Closed
wants to merge 9 commits into from
Prev Previous commit
Next Next commit
修复获取eks的kubeconfig时Endpoint错误的问题
  • Loading branch information
dove0012 committed Oct 30, 2023
commit 8bda8de98ff1cd41c82e3129237815d23763f716
Original file line number Diff line number Diff line change
@@ -5,10 +5,11 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
cutils "github.com/Tencent/bk-bcs/bcs-services/bcs-cluster-manager/internal/cloudprovider/utils"
"net"
"time"

cutils "github.com/Tencent/bk-bcs/bcs-services/bcs-cluster-manager/internal/cloudprovider/utils"

"github.com/Tencent/bk-bcs/bcs-services/bcs-cluster-manager/internal/types"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/eks"
@@ -61,7 +62,7 @@ func GetClusterKubeConfig(sess *session.Session, cluster *eks.Cluster) (string,
{
Name: *cluster.Name,
Cluster: types.ClusterInfo{
Server: "https://" + *cluster.Endpoint,
Server: *cluster.Endpoint,
CertificateAuthorityData: decodedCA,
},
},