zncdatadev / hive-operator

Operator for Apache Hive
Apache License 2.0
5 stars 5 forks source link

[Bug]: kind is missing when first run make kind-create #68

Open whg517 opened 2 months ago

whg517 commented 2 months ago

desc

When first run make kind-create in a new golang system environment, an error message show bash: /go/bin/bin/kind: No such file or directory

But, run make kind following, and run make kind-create again, everything is fine.

how to show:

Everyone can run a new golang env by docker, and mount project to container, then run make kind-create.

console log

@whg517 ➜ /workspaces/hive-operator (feat/upgrade-go1.22) $ make kind-create
go: downloading sigs.k8s.io/kind v0.22.0
go: downloading github.com/alessio/shellescape v1.4.1
go: downloading github.com/spf13/cobra v1.4.0
go: downloading github.com/mattn/go-isatty v0.0.14
go: downloading github.com/pelletier/go-toml v1.9.4
go: downloading github.com/BurntSushi/toml v1.0.0
go: downloading github.com/evanphx/json-patch/v5 v5.6.0
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading github.com/google/safetext v0.0.0-20220905092116-b49f7bc46da2
go: downloading golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
/go/bin/bin/kind create cluster --config test/e2e/kind-config.yaml --image kindest/node:v1.26.14 --name hive-operator-1.26.14  --kubeconfig ./kind-kubeconfig-1.26.14  --wait 120s
bash: /go/bin/bin/kind: No such file or directory
make: *** [Makefile:338: kind-create] Error 127
@whg517 ➜ /workspaces/hive-operator (feat/upgrade-go1.22) $ make kind
make: Nothing to be done for 'kind'.
@whg517 ➜ /workspaces/hive-operator (feat/upgrade-go1.22) $ make kind-create
/go/bin/kind create cluster --config test/e2e/kind-config.yaml --image kindest/node:v1.26.14 --name hive-operator-1.26.14  --kubeconfig ./kind-kubeconfig-1.26.14  --wait 120s
Creating cluster "hive-operator-1.26.14" ...
 ✓ Ensuring node image (kindest/node:v1.26.14) 🖼 
 ✓ Preparing nodes 📦  
 ✓ Writing configuration 📜 
 ✓ Starting control-plane 🕹️ 
 ✓ Installing CNI 🔌 
 ✓ Installing StorageClass 💾 
 ✓ Waiting ≤ 2m0s for control-plane = Ready ⏳ 
 • Ready after 15s 💚
Set kubectl context to "kind-hive-operator-1.26.14"
You can now use your cluster with:

kubectl cluster-info --context kind-hive-operator-1.26.14 --kubeconfig ./kind-kubeconfig-1.26.14

Thanks for using kind! 😊
# make kind-setup KUBECONFIG=./kind-kubeconfig-1.26.14