-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Image build fails with "operator-sdk build" command #3080
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
Comments
@demonCoder95 have you tried running /triage support |
Yes, I did. It gives me the following output: INFO[0000] Running deepcopy code-generation for Custom Resource group versions: [cache:[v1alpha1], ]
F0523 01:18:27.122034 5157 deepcopy.go:885] Hit an unsupported type invalid type for invalid type, from github.com/example-inc/memcached-operator/pkg/apis/cache/v1alpha1.Memcached I'm unsure as to if this unsupported type error is of any significance. I haven't done anything other than what the guide was suggesting. |
Ah yes, see #1854 (comment). The methods necessary for your types to implement the |
Exporting GOROOT fixed the |
I suggest we add an "expected command output" after the |
I've been able to achieve a successful build. However, I think the documentation update should be done before we close this issue. What do you think? @estroz |
We should add the underlying issue to the FAQ. Feel free to submit a PR if you have time @demonCoder95. /kind documentation |
Okay, I'll send a patch to the FAQ and reference this issue so that it can be closed upon merge. Thanks! |
When following the Getting Started guide, not setting the GOROOT env variable can fail image builds of memcached operator. This adds an FAQ in the docs, to allow users to troubleshoot the problem. Fixes operator-framework#3080
Generalize the description to remove instance of Getting Started guide Fixes operator-framework#3080
Generalize the description to remove instance of Getting Started guide Fixes operator-framework#3080
Bug Report
What did you do?
While following the Getting Started guide, everything worked fine till the image building step.
What did you expect to see?
Expected to see a successful building of image
What did you see instead? Under which circumstances?
A failure with the following terminal output
Environment
operator-sdk version: "v0.15.0", commit: "21a93ca379b887ab2303b0d148a399bf205c3231"
go version: "go1.13.5 linux/amd64"
Kubernetes cluster kind: minikube
Are you writing your operator in ansible, helm, or go?
go
Possible Solution
I don't have a workaround for this.
Additional context
I've tried googling and found existing issues regarding the
go mod vendor
command. However, I've noticed that all of those issue listings were for older operator-sdk versions, and this version doesn't invokego mod vendor
when runningoperator-sdk new
command. Therefore, those fixes were not applicable.The text was updated successfully, but these errors were encountered: