-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
could not decode file into runtime.Object on config component returning #3048
Comments
Hi @lucasmellos,
Then, I'd recommend you follow up the QUICK START steps/commands : https://book.kubebuilder.io/quick-start.html#test-it-out
If that does not work can you please try to check if that will work on cluster: https://book.kubebuilder.io/quick-start.html#run-it-on-the-cluster Build and push your image to the location specified by IMG:
|
Hey @camilamacedo86 thanks for sharing these infos. That was on my side within the GVK, although I noticed something that isn't 100% clear on the documentation. On the As far as I've seen I didn't notice anything on the documentation related to the |
Hi @lucasmellos, If you create the project with old versions you might fail in the issue: https://github.com/kubernetes-sigs/kubebuilder/pull/2826/files OR in the issue #3013 if you are using the latest version. See that the componentConfig is an optional feature and the default scaffold should not have the files/changes required to work with. The idea is we have a plugin in the future instead of using the flag --component-config=true to enable it. See: #3022 About help Could you please check if the master branch does not have it sorted out (by creating a new project with a bin built from master)? Also, feel free to check the master branch version of docs (https://master.book.kubebuilder.io/) to see if it has any hall for improvements and feel free to push a PR against it. If the issue is solved on master (doc or code), it will be all sorted out in the next release. Thank you for your collaboration. |
Improvements will be added to new issues due to their nature. |
What broke? What's expected?
I've tested my multiple times and then tested the example available in the book here and the component config is returning
Reproducing this issue
KubeBuilder (CLI) Version
Version: main.version{KubeBuilderVersion:"3.7.0", KubernetesVendor:"1.24.1", GitCommit:"3bfc84ec8767fa760d1771ce7a0cb05a9a8f6286", BuildDate:"2022-09-20T17:21:57Z", GoOs:"darwin", GoArch:"arm64"}
PROJECT version
3
Plugin versions
Other versions
go version go1.19.2 darwin/arm64
sigs.k8s.io/controller-runtime v0.13.0
Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.2", GitCommit:"f66044f4361b9f1f96f0053dd46cb7dce5e990a8", GitTreeState:"clean", BuildDate:"2022-06-15T14:22:29Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:38:19Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"linux/arm64"}
Extra Labels
/kind documentation
The text was updated successfully, but these errors were encountered: