-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
golang/tutorial failed unless I installed kubebuilder #4432
Comments
The following info will be in the FAQ section for the next releases: Note: If using an OS which does not point sh to the bash shell (Ubuntu for example) then you should add the following line to the Makefile: SHELL := /bin/bash This will fix potential issues when the docker-build target runs the controller test suite. Issues maybe similar to following error: failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory occurred Could you please let me know if it solves your scenario? |
The root cause of this issue is |
Fixes error: ``` failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory ``` Reference: operator-framework/operator-sdk#4432 (comment)
* go mod tidy * Change SelfLink --> UID * Use GetUID() * Bump KinD to latest * Remove UID entirely * Revert overzealous removal * Set SHELL Fixes error: ``` failed to start the controlplane. retried 5 times: fork/exec /usr/local/kubebuilder/bin/etcd: no such file or directory ``` Reference: operator-framework/operator-sdk#4432 (comment) * Generalize Bash location * Update CRDs * Update v1 CRD
Bug Report
This is exactly the same as closed issue #3461
What did you do?
I followed this tutorial today:
https://sdk.operatorframework.io/docs/building-operators/golang/tutorial/
I run it until got to this command:
What did you expect to see?
Should pass
What did you see instead? Under which circumstances?
Got error:
Then I installed kubebuilder following this guide: https://book.kubebuilder.io/quick-start.html#installation
The ran again and this time is passed.
Environment
Operator type:
/language go
Kubernetes cluster type:
not sure
$ operator-sdk version
operator-sdk version: "v1.3.0", commit: "1abf57985b43bf6a59dcd18147b3c574fa57d3f6", kubernetes version: "1.19.4", go version: "go1.15.5", GOOS: "linux", GOARCH: "amd64"
$ go version
(if language is Go)go version go1.15.7 linux/amd64
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.2", GitCommit:"52c56ce7a8272c798dbc29846288d7cd9fbae032", GitTreeState:"clean", BuildDate:"2020-04-16T11:56:40Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.5", GitCommit:"e6503f8d8f769ace2f338794c914a96fc335df0f", GitTreeState:"clean", BuildDate:"2020-06-26T03:39:24Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Possible Solution
Either add kubebuilder to the list of prerequisite or remove the dependency.
Additional context
The text was updated successfully, but these errors were encountered: