Skip to content

Commit

Permalink
fix Fixed kurator-member.config file path error
Browse files Browse the repository at this point in the history
Signed-off-by: LiZhenCheng9527 <lizhencheng6@huawei.com>
  • Loading branch information
LiZhenCheng9527 committed Feb 1, 2024
1 parent 1bb3d78 commit 31f126f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion e2e/attachedcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package e2e

import (
"os"
"path/filepath"
"time"

"github.com/onsi/ginkgo/v2"
Expand All @@ -42,7 +43,9 @@ var _ = ginkgo.Describe("[AttachedClusters] AttachedClusters testing", func() {
namespace = "default"
fleetname = "e2etest"
memberClusterName = "kurator-member"
kubeconfigPath = "/root/.kube/kurator-member.config"
homeDir, err := os.UserHomeDir()
gomega.Expect(err).ShouldNot(gomega.HaveOccurred())
kubeconfigPath = filepath.Join(homeDir, ".kube/kurator-member.config")

// build secrets use member cluster kubeconfig
kubeconfig, readfileErr := os.ReadFile(kubeconfigPath)
Expand Down

0 comments on commit 31f126f

Please sign in to comment.