Add deepcopy generate gate enforcement

Reject commits to the airshipctl repo that contain a
manually edited zz_generated.deepcopy.go file (i.e. one that does not
match the auto-generated version).

This will also prevent code from merging which fails to generate a
deepcopy file.

Change-Id: I4f06cd852237f7b3d8643d859775c16c3cd47530
This commit is contained in:
Anderson, Craig (ca846m) 2020-11-24 22:10:14 -08:00
parent c18db07043
commit 2cf38f248d

View File

@ -166,7 +166,7 @@ print-docker-image-tag:
@echo "$(DOCKER_IMAGE)" @echo "$(DOCKER_IMAGE)"
.PHONY: docker-image-test-suite .PHONY: docker-image-test-suite
docker-image-test-suite: DOCKER_MAKE_TARGET = "cover update-golden check-git-diff" docker-image-test-suite: DOCKER_MAKE_TARGET = "cover update-golden generate check-git-diff"
docker-image-test-suite: DOCKER_TARGET_STAGE = builder docker-image-test-suite: DOCKER_TARGET_STAGE = builder
docker-image-test-suite: docker-image docker-image-test-suite: docker-image