Giter Site home page Giter Site logo

Comments (4)

Kavinjsir avatar Kavinjsir commented on August 25, 2024

/assign

from kubebuilder.

Kavinjsir avatar Kavinjsir commented on August 25, 2024

From my local reproducing, the error is:

INFO Running make:
$ make generate
/Users/tonyjin/pro/tmp/kb/bin/controller-gen-v0.14.0 object:headerFile="hack/boilerplate.go.txt" paths="./..."
Next: implement your new Webhook and generate the manifests with:
$ make manifests
/Users/tonyjin/pro/tmp/kb/bin/controller-gen-v0.14.0 rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
tutorial.kubebuilder.io/project/api/v1:-: CRD for CronJob.batch.tutorial.kubebuilder.io has no storage version
Error: not all generators ran successfully
run `controller-gen rbac:roleName=manager-role crd webhook paths=./... output:crd:artifacts:config=config/crd/bases -w` to see all available markers, or `controller-gen rbac:roleName=manager-role crd webhook paths=./... output:crd:artifacts:config=config/crd/bases -h` for usage
make: *** [manifests] Error 1

I think it is a similar issue to:
#1196

So, when following https://book.kubebuilder.io/multiversion-tutorial/api-changes.html#storage-versions, adding //+kubebuilder:storageversion can help:
Screenshot 2024-03-31 at 9 13 42 PM

from kubebuilder.

camilamacedo86 avatar camilamacedo86 commented on August 25, 2024

This are the steps to build our tutorial https://github.com/kubernetes-sigs/kubebuilder/tree/master/docs/book/src/multiversion-tutorial sample.

After add the store it still failing in the e2e test regards the tests added for the webhook.
So, here in this task we need to

  • Find the solution and fix it in the scaffolds
  • Manually update the tutorial by running the script https://github.com/kubernetes-sigs/kubebuilder/blob/master/docs/book/src/multiversion-tutorial/testdata/generate_multiversion.sh (sadly it still not done with the make generate which is the last step that we need to close #2510) and then compare master branch with our changes to manually add on top the docs info and code implementation of examples
  • Then, push the PR and ensure that it will pass in all tests. See that we have e2e tests to validate the book samples with basic stuff and that fails. So, we need also address any required change in the sample and/or scaffold to ensure that all works fine and pass in the CI tests.

It could be a good first issue for someone that would like to spend so effort and get something that is not so trivial and requires investigation.

Help here is very welcome !!!!

from kubebuilder.

camilamacedo86 avatar camilamacedo86 commented on August 25, 2024

Hi @Kavinjsir

You are 100% . It is the same: #1196.

The problem that I was facing was with the default tests scaffold for the the controller . It was missing declare the resource properly. See; https://github.com/kubernetes-sigs/kubebuilder/actions/runs/8844368662/job/24286141139?pr=3875

I could fix this one, but the tests for the controller still failing
I will raise I new issue with a better description
We need to implement the tests for the controller to ensure that the reconciliation of the sample is accurate.

from kubebuilder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.