Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ bundle: check-operator-version operator-sdk manifests update-skip-range kustomiz
git restore config/manifests/kustomization.yaml
$(SDK_BIN) bundle validate ./bundle

.PHONY: verify-bundle
verify-bundle: bundle ## Verify the bundle doesn't alter the state of the tree
hack/tree-status

.PHONY: bundle-image
bundle-image: bundle ## Build the bundle image.
$(RUNTIME) $(RUNTIME_BUILD_CMD) -f bundle.Dockerfile -t $(BUNDLE_IMG) .
Expand Down
12 changes: 12 additions & 0 deletions hack/tree-status
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -euo pipefail

STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]; then
echo tree is clean
else
echo tree is dirty, please commit all changes
echo "$STATUS"
git diff
exit 1
fi