Skip to content

Commit

Permalink
baremetalport
Browse files Browse the repository at this point in the history
  • Loading branch information
庄润梓 committed Jul 2, 2024
1 parent 63f9f69 commit ab43e0b
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions tests/e2e/greptimedbcluster_baremetal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"k8s.io/klog/v2"
)

var _ = Describe("Basic test of greptimedb cluster in baremetal", Ordered, func() {
Expand All @@ -42,10 +41,6 @@ var _ = Describe("Basic test of greptimedb cluster in baremetal", Ordered, func(
var err error
createcmd := newCreateClusterinBaremetalCommand()

go func() {
forwardRequestinbaremetal()
}()

err = createcmd.Start()
Expect(err).NotTo(HaveOccurred(), "failed to create cluster in baremetal")

Expand Down Expand Up @@ -166,13 +161,3 @@ func killProcess(pid int) error {
return err
}
*/

func forwardRequestinbaremetal() {
for {
cmd := exec.Command("kubectl", "port-forward", "svc/mydb-frontend", "4002:4002")
if err := cmd.Run(); err != nil {
klog.Errorf("Failed to port forward: %v", err)
return
}
}
}

0 comments on commit ab43e0b

Please sign in to comment.