Use controller-gen to generate the deep copy methods for objects

As we are refactoring controllers with kubebuilder, use the controller-gen rather than code-generator to generate the deep copy methods for objects

Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
Wenkai Yin(尹文开)
2022-04-18 21:18:00 +08:00
parent 65db2585fb
commit 28bc8b7eef
6 changed files with 30 additions and 103 deletions
+1 -1
View File
@@ -16,7 +16,7 @@
HACK_DIR=$(dirname "${BASH_SOURCE}")
${HACK_DIR}/update-generated-crd-code.sh --verify-only
${HACK_DIR}/update-generated-crd-code.sh
# ensure no changes to generated CRDs
if ! git diff --exit-code config/crd/v1/crds/crds.go >/dev/null; then