-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
make test fails #5090
Comments
Is go 1.16 supported - kubernetes-sigs/kubebuilder#2124 (comment)? |
This solved my issue - kubernetes-sigs/controller-runtime#1034 (comment) I switched to Kubebuilder. Operator-SDK is using it under the hood. I followed this - https://book.kubebuilder.io/quick-start.html, and it works. Videoosdk-pass.mp4Commands are basically the same. I wasted about 5 hours on this. Operator-SDK team, please fix this, so others don't go through this. I would pay a premium to get answers in minutes than spend hours. |
This could be a bug and needs investigation. Looks like the author is using the latest version of operator-sdk which uses
setup-envtest downloads the binaries at |
kubernetes-sigs/kubebuilder#2272 would solve this issue. |
Did you get this working with |
@cg2p A 1.10.x patch release would be out soon as soon as #5117 is merged. That would solve this issue. |
Still seeing this issue in 1.11 installed via brew, followed the quick start instructions.
|
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Same issue on
|
Alright. Finally, I update the But I hit same issue while I want to
Related code: |
Facing the same issue under a
|
Maybe related (i should dig more on how the things work) but the directory where it supposed to have the envtest binary is empty:
It the scripts try to download for the current architecture
|
Where do the binaries have to be placed? This is the folder you mentioned in your last message (
|
@timbrd if you have the binaries (it seems so) than you need to apply a manual fix like explained here: #5090 (comment) (not tested because i currently have just a silicon cpu right now) |
I have an Apple Silicon chip too. The patch was already applied in my Makefile, it's still not working though:
Anything else I should try to do? |
@timbrd i don't really know how to fix it, stumbled upon this issue just yesterday and it was my first time using this project and kubebuilder |
@paolomainardi I fixed it by manually adding the folder containing the etcd and kube-apiserver binaries, which I haved downloaded before, to $PATH:
Now I can run the tests without modifying the makefile. It seems though, that the fix which was mentioned by @varshaprasad96 does not work. |
@timbrd thanks for keeping me posted, the question now is: how do you have those binaries ? 🤔 This is what i have running tests on a brand new project:
And no binaries:
|
If we execute Yes, I hit the same issue again on WSL container.
|
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-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. |
I have been tortured by this problem. How did you solve it in the end? |
The below combination worked for me :) arshabbir@arshabbir-VirtualBox: |
this problem is solved by these two differentials. kubernetes-sigs/controller-runtime#1657 (comment) |
Thanks for posting. For me the first one was sufficient to resolve the problem on M1. |
Bug Report
What did you do?
Create new folder and run
go mod init example.com/m/v2
operator-sdk init --plugins go/v3 --domain example.org --owner "Your name"
operator-sdk create api --group ship --version v1beta1 --kind Frigate
make test
What did you expect to see?
PASS
What did you see instead? Under which circumstances?
Environment
Operator type:
/language go
Kubernetes cluster type:
vanilla
$ operator-sdk version
$ kubectl version
Possible Solution
Additional context
Running inside WSL 2 Ubuntu 20 on Windows 10
Doing
shell = /bin/bash
does not work. Are KB and friends a prerequisite?Video
osdk2.mp4
The text was updated successfully, but these errors were encountered: