kudobuilder / kuttl

KUbernetes Test TooL (kuttl)
https://kuttl.dev
Apache License 2.0
634 stars 83 forks source link

CRD generation isn't working #541

Open kumar-mallikarjuna opened 2 days ago

kumar-mallikarjuna commented 2 days ago

What happened: CRD generation isn't working. On running make generate, the CRDs aren't being generated the target directory.

What you expected to happen: CRDs should be regenerated.

How to reproduce it (as minimally and precisely as possible):

  1. Run
    ➜  kuttl git:(main) ✗ make generate
    /bin/bash: ./bin/golangci-lint: No such file or directory
    controller-gen crd paths=./pkg/apis/... output:crd:dir=config/crds output:stdout
    ./hack/update_codegen.sh
    Using cached code generator version: v0.30.2
    Generating deepcopy code for 1 targets
  2. Observe if CRDs are regenerated under crds/ or config/crds.

Anything else we need to know?:

We should also verify in CI if the CRDs are in sync, to prevent them from getting stale again.

Environment:

kumar-mallikarjuna commented 2 days ago

Noticed the bug label isn't being auto-assigned to Bugs. Raised a fix: https://github.com/kudobuilder/kuttl/pull/542.