Skip to content

Commit

Permalink
修复获取eks的kubeconfig时Endpoint错误的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dove0012 committed Oct 30, 2023
1 parent 1bf8383 commit 8bda8de
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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,
},
},
Expand Down

0 comments on commit 8bda8de

Please sign in to comment.