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

Problem to generate crd with terraform object type #398

Closed
littlejo opened this issue May 7, 2024 · 0 comments
Closed

Problem to generate crd with terraform object type #398

littlejo opened this issue May 7, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@littlejo
Copy link

littlejo commented May 7, 2024

What happened?

I have this error:

make generate
18:09:31 [ .. ] generating provider schema for littlejo/cilium 0.2.3
18:09:33 [ OK ] generating provider schema for littlejo/cilium 0.2.3
18:09:33 [ .. ] verify go modules dependencies have expected content
all modules verified
18:10:07 [ OK ] go modules dependencies verified
18:10:07 [WARN] the source directory is not relative to the GOPATH at /Users/joseph.ligier/go or you are you using symlinks. The build might run into issue. Please move the source directory to be at /Users/joseph.ligier/go/src/github.com/littlejo/provider-cilium
18:10:09 [ .. ] go generate -s -w linux_amd64
panic: cannot generate crd for resource cilium_deploy: cannot build types for Deploy: cannot build the Types: cannot infer type from schema of field ca: invalid schema type TypeInvalid

goroutine 1 [running]:
github.com/crossplane/upjet/pkg/pipeline.Run(0xc000591440, {0xc00004c2d0, 0x42})
	/Users/joseph.ligier/go/pkg/mod/github.com/crossplane/[email protected]/pkg/pipeline/run.go:102 +0x1e05
main.main()
	/Users/joseph.ligier/clients/perso/crossplane/main/provider-cilium/cmd/generator/main.go:26 +0x74
exit status 2
apis/generate.go:25: running "go": exit status 1
generate: open /Users/joseph.ligier/clients/perso/crossplane/main/provider-cilium/apis/cmesh/v1alpha1/zz_connection_types.go: no such file or directory
18:10:34 [FAIL]
make[1]: *** [go.generate] Error 1
make: *** [generate] Error 2

in terraform, ca is of type: object("crt": types.StringType,"key": types.StringType)

How can we reproduce it?

git clone https://github.com/littlejo/provider-cilium
cd provider-cilium
git checkout cilium-ca
make submodules
make generate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant