We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
➜ watch-crd git:(master) ✗ make test /Users/canwuyao/workspace/go/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./..." go fmt ./... go vet ./... /Users/canwuyao/workspace/go/bin/controller-gen "crd:trivialVersions=true" rbac:roleName=manager-role webhook paths="./..." output:crd:artifacts:config=config/crd/bases go test ./... -coverprofile cover.out ? yaocw2020/kube-demo/watch-crd [no test files] ? yaocw2020/kube-demo/watch-crd/api/v1alpha1 [no test files] Running Suite: Controller Suite =============================== Random Seed: 1598432979 Will run 0 of 0 specs STEP: bootstrapping test environment 2020-08-26T17:09:39.527+0800 DEBUG controller-runtime.test-env starting control plane {"api server flags": []} 2020-08-26T17:09:39.529+0800 ERROR controller-runtime.test-env unable to start the controlplane {"tries": 0, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} github.com/go-logr/zapr.(*zapLogger).Error /Users/canwuyao/workspace/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:256 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:225 yaocw2020/kube-demo/watch-crd/controllers.glob..func1 /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:61 reflect.Value.call /usr/local/opt/go/libexec/src/reflect/value.go:460 reflect.Value.Call /usr/local/opt/go/libexec/src/reflect/value.go:321 github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:49 github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:86 2020-08-26T17:09:39.530+0800 ERROR controller-runtime.test-env unable to start the controlplane {"tries": 1, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} github.com/go-logr/zapr.(*zapLogger).Error /Users/canwuyao/workspace/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:256 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:225 yaocw2020/kube-demo/watch-crd/controllers.glob..func1 /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:61 reflect.Value.call /usr/local/opt/go/libexec/src/reflect/value.go:460 reflect.Value.Call /usr/local/opt/go/libexec/src/reflect/value.go:321 github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:49 github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:86 2020-08-26T17:09:39.531+0800 ERROR controller-runtime.test-env unable to start the controlplane {"tries": 2, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} github.com/go-logr/zapr.(*zapLogger).Error /Users/canwuyao/workspace/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:256 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:225 yaocw2020/kube-demo/watch-crd/controllers.glob..func1 /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:61 reflect.Value.call /usr/local/opt/go/libexec/src/reflect/value.go:460 reflect.Value.Call /usr/local/opt/go/libexec/src/reflect/value.go:321 github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:49 github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:86 2020-08-26T17:09:39.532+0800 ERROR controller-runtime.test-env unable to start the controlplane {"tries": 3, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} github.com/go-logr/zapr.(*zapLogger).Error /Users/canwuyao/workspace/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:256 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:225 yaocw2020/kube-demo/watch-crd/controllers.glob..func1 /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:61 reflect.Value.call /usr/local/opt/go/libexec/src/reflect/value.go:460 reflect.Value.Call /usr/local/opt/go/libexec/src/reflect/value.go:321 github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:49 github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:86 2020-08-26T17:09:39.533+0800 ERROR controller-runtime.test-env unable to start the controlplane {"tries": 4, "error": "fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory"} github.com/go-logr/zapr.(*zapLogger).Error /Users/canwuyao/workspace/go/pkg/mod/github.com/go-logr/[email protected]/zapr.go:128 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).startControlPlane /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:256 sigs.k8s.io/controller-runtime/pkg/envtest.(*Environment).Start /Users/canwuyao/workspace/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/envtest/server.go:225 yaocw2020/kube-demo/watch-crd/controllers.glob..func1 /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:61 reflect.Value.call /usr/local/opt/go/libexec/src/reflect/value.go:460 reflect.Value.Call /usr/local/opt/go/libexec/src/reflect/value.go:321 github.com/onsi/ginkgo/internal/leafnodes.newRunner.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:49 github.com/onsi/ginkgo/internal/leafnodes.(*runner).runAsync.func1 /Users/canwuyao/workspace/go/pkg/mod/github.com/onsi/[email protected]/internal/leafnodes/runner.go:86 Failure [0.006 seconds] [BeforeSuite] BeforeSuite /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:52 Unexpected error: <*fmt.wrapError | 0xc000412640>: { msg: "failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory", err: { Op: "fork/exec", Path: "/usr/local/kubebuilder/bin/etcd", Err: 0x2, }, } failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory occurred /Users/canwuyao/workspace/go/src/yaocw2020/kube-demo/watch-crd/controllers/suite_test.go:62 ------------------------------ Ran 0 of 0 Specs in 0.007 seconds FAIL! -- 0 Passed | 0 Failed | 0 Pending | 0 Skipped --- FAIL: TestAPIs (0.01s) FAIL coverage: 0.0% of statements FAIL yaocw2020/kube-demo/watch-crd/controllers 0.289s FAIL make: *** [test] Error 1
The text was updated successfully, but these errors were encountered:
kubernetes-sigs/kubebuilder#326 we use the envvar KUBEBUILDER_ASSETS to pass the bin-directory explicitly. It works for this issue.
➜ watch-crd git:(master) ✗ which etcd /usr/local/bin/etcd ➜ watch-crd git:(master) ✗ export KUBEBUILDER_ASSETS=/usr/local/bin
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: