Skip to content

Commit

Permalink
Add checks for gen code for CRDs
Browse files Browse the repository at this point in the history
  • Loading branch information
LorcanMcVeigh authored Jul 26, 2019
1 parent abd6591 commit 3d12d6a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) .

Expand Down
2 changes: 1 addition & 1 deletion hack/verify-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3d12d6a

Please sign in to comment.