@leverege/build-tools 2.36.1 → 2.36.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/helmdn +11 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.36.1",
3
+ "version": "2.36.2",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/helmdn CHANGED
@@ -92,6 +92,17 @@ function annihilateVelero() {
92
92
  }
93
93
 
94
94
  function helmDown() {
95
+ if [ -f "$1/.nohelmdn" ];
96
+ then
97
+ cat<<NOHELMDN
98
+ `color r "***ERROR: $1/.nohelmdn blocker detect - helmdn blocked"`
99
+
100
+ Somebody really doesn't want you to helmdn $1
101
+
102
+ NOHELMDN
103
+ exit 1
104
+ fi
105
+
95
106
  local namespace=${2:-default}
96
107
  local helmdn="helm uninstall $1 -n $namespace"
97
108
  eval $helmdn