mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Merge pull request #76639 from lubinsz/pr_bzl_arm64
Add an environment variable for bazel-test-integration on Arm
This commit is contained in:
commit
01f0be4901
@ -70,6 +70,10 @@ func getAvailablePort() (int, error) {
|
|||||||
// startEtcd executes an etcd instance. The returned function will signal the
|
// startEtcd executes an etcd instance. The returned function will signal the
|
||||||
// etcd process and wait for it to exit.
|
// etcd process and wait for it to exit.
|
||||||
func startEtcd() (func(), error) {
|
func startEtcd() (func(), error) {
|
||||||
|
if runtime.GOARCH == "arm64" {
|
||||||
|
os.Setenv("ETCD_UNSUPPORTED_ARCH", "arm64")
|
||||||
|
}
|
||||||
|
|
||||||
etcdURL = env.GetEnvAsStringOrFallback("KUBE_INTEGRATION_ETCD_URL", "http://127.0.0.1:2379")
|
etcdURL = env.GetEnvAsStringOrFallback("KUBE_INTEGRATION_ETCD_URL", "http://127.0.0.1:2379")
|
||||||
conn, err := net.Dial("tcp", strings.TrimPrefix(etcdURL, "http://"))
|
conn, err := net.Dial("tcp", strings.TrimPrefix(etcdURL, "http://"))
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user