-
Notifications
You must be signed in to change notification settings - Fork 1.6k
fix testenv docs #2632
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
fix testenv docs #2632
Changes from 1 commit
cd7ef92
88f9e58
f44622c
d25e5f4
52120b4
d073346
b0cb2e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,14 @@ export K8S_VERSION=1.21.2 | |
| curl -sSLo envtest-bins.tar.gz "https://go.kubebuilder.io/test-tools/${K8S_VERSION}/$(go env GOOS)/$(go env GOARCH)" | ||
| ``` | ||
|
|
||
| However, in the case of M1 Mac using AppleSillicon, the arm64 binary is not yet available, so the test in the Makefile must be changed. | ||
| ```makefile | ||
| test: manifests generate fmt vet envtest ## Run tests. | ||
| KUBEBUILDER_ASSETS="$(shell $(ENVTEST) --arch=amd64 use $(ENVTEST_K8S_VERSION) -p path)" go test ./... -coverprofile cover.out | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is the amd64 working in the AppleSillicon?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As you say, there is no kubebuilder-tools supporting darwin/arm64, so using this flag will allow Apple Sillicon to run binaries for intel via Rosseta. (Temporary solution)
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @shintard, I checked all that is missing for we support the Apple Silicon and I updated the comment: #1932 (comment) |
||
| ``` | ||
|
|
||
| This way, you can use intel binaries. downloaded intel binaries are executed via Rosseta2. | ||
|
|
||
| Then install them: | ||
|
|
||
| ```sh | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the project does not support arm64 yet.
It is not the only place that would need to receive some tweaks to work with probably.
I think for now we could have a FAQ section and then add there the steps/info
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's a very good idea to post this description in the FAQ section!
Can we maintain the documentation that way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have the wish to create the FAQ for too long and we have other things to add.
I think that it is also a nice one to go there.