-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
etcd should not be assumed to be in /usr/local/kubebuilder/bin/etcd #326
Comments
+1 |
kubebuilder needs to be unzipped or linked to default directory which is ‘/usr/local/kubebuilder’ as instructed in document. Kubebuilder uses binaries from it |
This is definitely not ideal. Why should the installation directory matter. |
Yes, I also find this rather very surprising. |
With this commit kubernetes-sigs/controller-runtime@c5e5439 (which is included at least in 1.0.5) we can use the envvar
Worked for me with the getting-started example (Except for struggling because of #359). |
That sounds okay to me, shall we close?
…On Fri, 19 Oct 2018, 2:36 pm Christoph Glaubitz, ***@***.***> wrote:
With this commit ***@***.***
<kubernetes-sigs/controller-runtime@c5e5439>
(which is included at least in 1.0.5) we can use the envvar
KUBEBUILDER_ASSETS to pass the bin-directory explicitly.
export KUBEBUILDER_ASSETS=~/sdk/kubebuilder_1.0.5_linux_amd64/bin/
Worked for me with the getting-started example (Except for struggling
because of #359
<#359>).
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#326 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPWS6QC5weX16_2ZzmfFz5NysSXGYmIks5umdVVgaJpZM4VZR0S>
.
|
Please consider adding the information to
in the kubebuilder book. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
I saw the same error when I ran
The following steps resolved the error for me and then
|
You can also set the KUBEBUILDER_ASSETS environment variable, for posterity |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
allows setting of KUBEBUILDER_ASSETS environment variable so kubebuilder can find the binary assets kubernetes-sigs/kubebuilder#326 (comment) fixes #1
export KUBEBUILDER_ASSETS=<path of kubebuilder/bin> probably remove the "space" on the both sides of the equal sign will be better |
We can use setup-envtest tool to download which version of assets we need and use like below: export KUBEBUILDER_ASSETS=$(setup-envtest use 1.25.0 -p path) |
I installed the Kubebuilder binaries in a personal folder:
Kubebuilder assumes that
etcd
is in/usr/local/kubebuilder/bin/etcd
My grepping found this:
./vendor/sigs.k8s.io/controller-runtime/pkg/envtest/server.go: defaultEtcdBin = "/usr/local/kubebuilder/bin/etcd"
As long as
etcd
is in the user's path, things should work. Is there a reason a full path was hardcoded?The text was updated successfully, but these errors were encountered: