Skip to content
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

Closed
Grypse opened this issue Feb 23, 2022 · 5 comments

Comments

@Grypse
Copy link
Contributor

Grypse commented Feb 23, 2022

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.

@regadas
Copy link
Contributor

regadas commented Feb 25, 2022

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! 😄

@Grypse
Copy link
Contributor Author

Grypse commented Mar 1, 2022

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.
Just need to wait for Kubebuilder arm64 version released to fix this error.

@acechef
Copy link

acechef commented Mar 8, 2022

You can temporarily solve this problem by this answer kubernetes-sigs/controller-runtime#1657 (comment) @Grypse

@regadas
Copy link
Contributor

regadas commented Apr 12, 2022

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.

@regadas
Copy link
Contributor

regadas commented Oct 12, 2022

This should be addressed now.

@regadas regadas closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants