-
Notifications
You must be signed in to change notification settings - Fork 71
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
unable to find a version that was supported for platform darwin/arm64 when execute make test #289
Comments
Yeah I'm sensing that the versions we are using do not take into account different arch's; I'll try to have a look at this, but if you have time PR's to address this would be very welcomed! 😄 |
It's maybe caused by the support of Kubebuilder to Mac pro M1 chip. The envtest need to download kubebuilder arm64 version, but not find. The issue link is kubernetes-sigs/controller-runtime#1809. |
You can temporarily solve this problem by this answer kubernetes-sigs/controller-runtime#1657 (comment) @Grypse |
I just got my hands on an M1 machine; should be able to address this soon:tm: but if any of you wants to go ahead, let me know. |
This should be addressed now. |
make test
flink-on-k8s-operator/bin/controller-gen "crd:maxDescLen=0,trivialVersions=true,preserveUnknownFields=false,generateEmbeddedObjectMeta=true" rbac:roleName=manager-role webhook paths="./apis/.../v1beta1/..." output:crd:artifacts:config=config/crd/bases \\# remove status field as they interfer with ArgoCD and Google config-sync \\# https://github.com/kubernetes-sigs/controller-tools/issues/456 yq -i e 'del(.status)' config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml /flink-on-k8s-operator/bin/controller-gen object:headerFile="hack/boilerplate.go.txt" paths="./apis/.../v1beta1/..." go fmt ./... go vet ./... go mod tidy unable to find a version that was supported for platform darwin/arm64 rm -rf config/test && mkdir -p config/test/crd /flink-on-k8s-operator/bin/kustomize build config/crd > config/test/crd/flinkoperator.k8s.io_flinkclusters.yaml KUBEBUILDER_ASSETS="" go test ./... -coverprofile cover.out ? github.com/spotify/flink-on-k8s-operator [no test files] ? github.com/spotify/flink-on-k8s-operator/apis/flinkcluster/v1alpha1 [no test files] Running Suite: v1beta1 Suite - /flink-on-k8s-operator/apis/flinkcluster/v1beta1 Random Seed: 1645608488
Runtime info: MacBook Pro with M1 chip.
The text was updated successfully, but these errors were encountered: