kubebuilder: Option provided in the create API cannot work

If we run kubebuilder create api --group webapp --version v1 --kind Guestbook

resource=false controller=true

NOTE: It will not work since the controller requires the resource in the scaffold. (it is a bug in the master which should not allow this option)

/kind bug

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

--resource false --controller true this is useful in the following 2 scenarios:

  • Resources are already scaffolded before
  • No need to scaffold resources for core types

IMO allowing --resource false --controller true is NOT a bug.