The Webhook document is faulty #2334
-
https://book.kubebuilder.io/cronjob-tutorial/running-webhook.html The following error has occurred
What should I do ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @hejw123, See the error You can check the Makefile target scaffolded on the projects to download the controller-gen and fix your project, see: kubebuilder/testdata/project-v3/Makefile Lines 125 to 128 in 26d12ab Be aware of: From: https://book.kubebuilder.io/migration/v2vsv3.html#project-customizations I am marking this one as answered. however, please feel free to open new discussions or issues if you need. |
Beta Was this translation helpful? Give feedback.
-
Closing since it is answered. |
Beta Was this translation helpful? Give feedback.
Hi @hejw123,
See the error
bash: /Users/hejiawei/projects/demo/bindeploy/controller-gen: No such file or directory
. The tool does not add the controller-gen to this directory. So, the problems faced can be related to the customizations/changes in the default scaffold.You can check the Makefile target scaffolded on the projects to download the controller-gen and fix your project, see:
kubebuilder/testdata/project-v3/Makefile
Lines 125 to 128 in 26d12ab