Skip to content

Commit

Permalink
Version debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Aug 13, 2024
1 parent ba819e5 commit 790a586
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ node_modules
artifacts/

# IDE extras
.vscode/
.vscode/
build/.build_venv
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ release: manifests kustomize controller-gen
pre-push: manifests generate fmt vet build-template api-docs

build-template: manifests kustomize controller-gen
echo "Foobar"
$(KUSTOMIZE) version
$(KUSTOMIZE) build config/deployment-template | ./manifest2template.py > deploy.yml

manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
Expand Down
5 changes: 5 additions & 0 deletions build/template_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ CURRENT_DEPLOY=$(md5sum deploy.yml)

make build-template

echo "Checking if deployment template is up to date"
echo "Current deployment template: $CURRENT_DEPLOY"
echo "New deployment template: $(md5sum deploy.yml)"
echo $(md5sum --version)

if [[ $CURRENT_DEPLOY != $(md5sum deploy.yml) ]]; then
echo "Deployment template not updated. Please run make build-template and recommit"
exit 1
Expand Down

0 comments on commit 790a586

Please sign in to comment.