Skip to content

Commit

Permalink
Print git diff change
Browse files Browse the repository at this point in the history
Signed-off-by: lubronzhan <lubronzhan@gmail.com>
  • Loading branch information
lubronzhan committed Jan 17, 2024
1 parent 560236a commit 189131c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions hack/actions/check-uncommitted-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ if git status -s ${TARGETS[@]} 2>&1 | grep -E -q '^\s+[MADRCU]'
then
echo Uncommitted changes in generated sources:
git status -s ${TARGETS[@]}
git diff
exit 1
fi
4 changes: 4 additions & 0 deletions hack/generate-crd-yaml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ trap 'rm -rf "$TEMPDIR"; exit' 0 1 2 15

cd "${REPO}"

exec echo "controller-gen version"

exec go run sigs.k8s.io/controller-tools/cmd/controller-gen --version

# Controller-gen seems to use an unstable sort for the order of output of the CRDs
# so, output them to separate files, then concatenate those files.
# That should give a stable sort.
Expand Down
4 changes: 3 additions & 1 deletion hack/yamllint
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ if command -v ${PROGNAME} >/dev/null; then
fi

if command -v docker >/dev/null; then
exec docker run --rm -i \
echo "running yamllint as container"
exec docker run --rm -ti \
-v $(pwd):/workdir \
--platform linux/amd64 \
giantswarm/yamllint "$@"
fi

Expand Down

0 comments on commit 189131c

Please sign in to comment.