-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
add api fails with: deepcopy.go:885] Hit an unsupported type invalid type for invalid type #2979
Comments
This issues appears to be identical to #2288 . I would have reopened that issue, but that doesn't seem to be a thing in github. |
I have reproduced this with an empty GOPATH, and creating foo directly under $GOPATH/src |
I CANNOT reproduce this in the same environment with the same GOPATH when I use a locally-built version of the v0.17.0 release tag. To be clear: locally-built operator-sdk from git tag 0.17.0 (2fd7019) WORKS downloaded release build operator-sdk-v0.17.0-x86_64-linux-gnu run in the same directory, same commands, same environment, DOES NOT WORK The release version reports: Locally-built version reports: |
@mdbooth I am unable to reproduce this issue when downloading from the v0.17.0 release: $ curl -sSL -o operator-sdk https://github.com/operator-framework/operator-sdk/releases/download/v0.17.0/operator-sdk-v0.17.0-x86_64-linux-gnu
$ curl -sSL -o operator-sdk.asc https://github.com/operator-framework/operator-sdk/releases/download/v0.17.0/operator-sdk-v0.17.0-x86_64-linux-gnu.asc
$ gpg --verify operator-sdk.asc
$ mv operator-sdk ~/go/bin/
$ command -v operator-sdk
/home/estroz/go/bin/operator-sdk With $ unset GOPATH
$ go env GOPATH
/home/estroz/go
$ pwd
/home/projects
$ operator-sdk new foo --repo github.com/example/foo
INFO[0000] Creating new Go operator 'foo'.
INFO[0000] Created go.mod
...
INFO[0002] Project validation successful.
INFO[0002] Project creation complete.
$ operator-sdk add api --api-version=foo.example.com/v1alpha1 --kind=Foo
INFO[0000] Generating api version foo.example.com/v1alpha1 for kind Foo.
...
INFO[0000] Running deepcopy code-generation for Custom Resource group versions: [foo:[v1alpha1], ]
...
INFO[0006] API generation complete. With $ cd ../go/src/github.com
$ mkdir test-org
$ cd test-org
$ export GOPATH=$(go env GOPATH)
$ operator-sdk new foo
INFO[0000] Creating new Go operator 'foo'.
INFO[0000] Created go.mod
...
INFO[0002] Project validation successful.
INFO[0002] Project creation complete.
$ operator-sdk add api --api-version=foo.example.com/v1alpha1 --kind=Foo
INFO[0000] Generating api version foo.example.com/v1alpha1 for kind Foo.
...
INFO[0000] Running deepcopy code-generation for Custom Resource group versions: [foo:[v1alpha1], ]
...
INFO[0006] API generation complete. This sounds like an environment issue. /triage not-reproducible |
I tried this on a Centos box with the 0.17 released binary, and also from a local build of master, both seem to work so not sure what could be the issue. |
|
@Ssecond @mdbooth Did you see #1854 (comment)? Pretty sure it's the same issue. |
Closing since this seems like a duplicate. Please open a new issue if the responses don't help you resolve it. |
This is with a vanilla operator, no customisation. TL;DR:
Full output:
My environment:
The text was updated successfully, but these errors were encountered: