From 190e14d6d3c226ce4d92db95f06b257c80e0cdc5 Mon Sep 17 00:00:00 2001 From: Bartosz Majsak Date: Tue, 13 Aug 2024 19:29:13 +0200 Subject: [PATCH] feat(make): adds generate to default targets (#1176) Current list of default targets include `manifests` which generates CRDs based on API code changes, but does not invoke `generate` which is responsible for generating additional code (namely `DeepCopy` funcs). This can result in incomplete implemetation where CRDs reflect latest changes in the API, but internally it might not be possible to use due to missing copy methods or even outdated implementations of those that already exist. This change adds it to the list of default targets so that each code change can be committed with complete set of changes for controller-runtime. (cherry picked from commit 4a51dfd079f24333217342377dda3debe3e522f8) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b05cb91766d..da8b69904e1 100644 --- a/Makefile +++ b/Makefile @@ -108,7 +108,7 @@ OPERATOR_MAKE_ENV_FILE = local.mk .PHONY: default -default: manifests lint unit-test build +default: manifests generate lint unit-test build ##@ General