flink-on-k8s-operator icon indicating copy to clipboard operation
flink-on-k8s-operator copied to clipboard

unable to find a version that was supported for platform darwin/arm64 when execute make test

Open Grypse opened this issue 2 years ago • 4 comments

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.

Grypse avatar Feb 23 '22 09:02 Grypse

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

regadas avatar Feb 25 '22 15:02 regadas

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 https://github.com/kubernetes-sigs/controller-runtime/issues/1809. Just need to wait for Kubebuilder arm64 version released to fix this error.

Grypse avatar Mar 01 '22 11:03 Grypse

You can temporarily solve this problem by this answer https://github.com/kubernetes-sigs/controller-runtime/issues/1657#issuecomment-988484517 @Grypse

acechef avatar Mar 08 '22 09:03 acechef

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 avatar Apr 12 '22 21:04 regadas

This should be addressed now.

regadas avatar Oct 12 '22 11:10 regadas