-
Notifications
You must be signed in to change notification settings - Fork 114
Open
Description
Hi, I am following the documentation here trying to generate Crossplane provider from this Terraform provider.
I am targeting API V2 of Crossplane - by this I mean that I am referencing "github.com/crossplane/upjet/v2/pkg/*" paths in the import statements.
When running make generate I am receiving the following error message:
15:30:53 [ .. ] generating provider schema for OrographicLift/hlb 1.2.0
15:30:54 [ OK ] generating provider schema for OrographicLift/hlb 1.2.0
15:30:54 [ .. ] go generate linux_arm64
Running goimports on apis folder with scope Cluster
Running goimports on controller folder with scope Cluster
Generated 1 resources with scope Cluster!
Running goimports on apis folder with scope Namespaced
Running goimports on controller folder with scope Namespaced
Generated 1 resources with scope Namespaced!
cluster/zz_register.go:14:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1
cluster/zz_register.go:15:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1beta1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1beta1
namespaced/zz_register.go:14:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1alpha1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1alpha1
namespaced/zz_register.go:15:2: no required module provides package github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1beta1; to add it:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/namespaced/v1beta1
Error: not all generators ran successfully
run `controller-gen object:headerFile=../hack/boilerplate.go.txt paths=./... crd:allowDangerousTypes=true,crdVersions=v1 output:artifacts:config=../package/crds -w` to see all available markers, or `controller-gen object:headerFile=../hack/boilerplate.go.txt paths=./... crd:allowDangerousTypes=true,crdVersions=v1 output:artifacts:config=../package/crds -h` for usage
exit status 1
apis/generate.go:28: running "go": exit status 1
15:30:56 [FAIL]
make[1]: *** [go.generate] Error 1
make: *** [generate] Error 2
Sadly the documentation that I am following does not mention anything about scopes of the resources so I am not sure if my work is missing any code.
When attempting to issue the proposed go get commands I am receiving this error message:
go get github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1
go: github.com/footprint-it-solutions/provider-zonehero-v2/apis/cluster/v1alpha1: no matching versions for query "upgrade"
what can I do to resolve this issue?
Platform: MacOS
go version go1.24.7 darwin/arm64
Terraform v1.13.1 on darwin_arm64
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels