mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
remove bazel logic from test/integration/framework
This commit is contained in:
parent
aaa9280955
commit
1a7cf6c91a
@ -23,7 +23,6 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
|
||||||
"runtime"
|
"runtime"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
@ -47,12 +46,6 @@ You can use 'hack/install-etcd.sh' to install a copy in third_party/.
|
|||||||
|
|
||||||
// getEtcdPath returns a path to an etcd executable.
|
// getEtcdPath returns a path to an etcd executable.
|
||||||
func getEtcdPath() (string, error) {
|
func getEtcdPath() (string, error) {
|
||||||
bazelPath := filepath.Join(os.Getenv("RUNFILES_DIR"), fmt.Sprintf("com_coreos_etcd_%s", runtime.GOARCH), "etcd")
|
|
||||||
|
|
||||||
p, err := exec.LookPath(bazelPath)
|
|
||||||
if err == nil {
|
|
||||||
return p, nil
|
|
||||||
}
|
|
||||||
return exec.LookPath("etcd")
|
return exec.LookPath("etcd")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user