From 3d12d6a7ba61a21bdd30fc0f49f03a5c9ada5200 Mon Sep 17 00:00:00 2001 From: Lorcan McVeigh Date: Fri, 26 Jul 2019 15:29:55 +0100 Subject: [PATCH] Add checks for gen code for CRDs --- Makefile | 8 +++++++- hack/verify-codegen.sh | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 599c992575..7b22e80b7c 100644 --- a/Makefile +++ b/Makefile @@ -34,12 +34,18 @@ else go test ./... endif +verify-codegen: + ./hack/verify-codegen.sh + +update-codegen: + ./hack/update-codegen.sh + certificate-and-key: ifeq ($(GENERATE_DEFAULT_CERT_AND_KEY),1) ./build/generate_default_cert_and_key.sh endif -container: test nginx-ingress certificate-and-key +container: test verify-codegen nginx-ingress certificate-and-key cp $(DOCKERFILEPATH)/$(DOCKERFILE) ./Dockerfile docker build $(DOCKER_BUILD_OPTIONS) --build-arg IC_VERSION=$(VERSION)-$(GIT_COMMIT) -f Dockerfile -t $(PREFIX):$(TAG) . diff --git a/hack/verify-codegen.sh b/hack/verify-codegen.sh index d02a6fa395..894c9cbab4 100755 --- a/hack/verify-codegen.sh +++ b/hack/verify-codegen.sh @@ -43,6 +43,6 @@ if [[ $ret -eq 0 ]] then echo "${DIFFROOT} up to date." else - echo "${DIFFROOT} is out of date. Please run hack/update-codegen.sh" + echo "${DIFFROOT} is out of date. Please regenerate code" exit 1 fi