forked from shipwright-io/build
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Verify CI job to check CRD generation
We have a Verify CI job that runs the basic static analysis, like code linting. This step should also ensure that CRD definitions for the Build APIs are aligned with what is in the golang code. Fixes shipwright-io#943 Add hack/verify-controller-gen.sh to check CRD generation Update hack/verify-generate.sh to check for deep copy generation Update deep copy generation file not in sync
- Loading branch information
Shahul
authored and
Shahul
committed
Nov 22, 2021
1 parent
b959360
commit 7f159f7
Showing
5 changed files
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# Copyright The Shipwright Contributors | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Verifies if a developer has forgot to run the | ||
# `make generate-crds` so that all the changes in the | ||
# CRD (deploy/crds) should also be pushed | ||
|
||
if [[ -n "$(git status --porcelain -- deploy/crds)" ]]; then | ||
echo "The deploy/crds contains changes:" | ||
git --no-pager diff --name-only -- deploy/crds | ||
echo | ||
echo "Run make generate-crds to those commit changes!" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters