The current CRD was generated using controller-gen version 0.9.0, assuming that the developer has already installed it in the shell's PATH directory. This creates two problems:
If it is not installed, it needs to be installed first.
If a different version is already installed locally, the issue of version inconsistency needs to be considered.
The purpose of this PR is to address the above two problems.
The solution is as follows:
Add the download-controller-gen command to the Makefile, which will download controller-gen version 0.9.0 to the bin directory of the project. The make manifests command will use the controller-gen from the bin directory.
The current CRD was generated using
controller-gen
version 0.9.0, assuming that the developer has already installed it in the shell's PATH directory. This creates two problems:The purpose of this PR is to address the above two problems.
The solution is as follows: Add the
download-controller-gen
command to the Makefile, which will downloadcontroller-gen
version 0.9.0 to the bin directory of the project. Themake manifests
command will use thecontroller-gen
from thebin
directory.