diff --git a/.gitignore b/.gitignore index 8b6f4440..62980a49 100644 --- a/.gitignore +++ b/.gitignore @@ -41,4 +41,5 @@ node_modules artifacts/ # IDE extras -.vscode/ \ No newline at end of file +.vscode/ +build/.build_venv diff --git a/Makefile b/Makefile index c5a7df5e..f94c9ac7 100644 --- a/Makefile +++ b/Makefile @@ -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. diff --git a/build/template_check.sh b/build/template_check.sh index fb1013b5..fb6454f0 100755 --- a/build/template_check.sh +++ b/build/template_check.sh @@ -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