Skip to content

could not decode file into runtime.Object on config component returning  #3048

@lucasmellos

Description

@lucasmellos

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

{"error": "could not decode file into runtime.Object"}

Reproducing this issue

git clone https://github.com/kubernetes-sigs/kubebuilder
cd docs/book/src/component-config-tutorial/testdata/project
# set some config file 
make run 

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

layout:
- go.kubebuilder.io/v3

and on too

layout:
- go.kubebuilder.io/v4-alpha

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.kind/documentationCategorizes issue or PR as related to documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions