@leverege/build-tools 2.9.1 → 2.9.3

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.9.1",
3
+ "version": "2.9.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -76,11 +76,11 @@
76
76
  "simple-git": "^2.48.0"
77
77
  },
78
78
  "devDependencies": {
79
- "@babel/cli": "^7.16.8",
80
- "@babel/core": "^7.16.12",
79
+ "@babel/cli": "^7.17.0",
80
+ "@babel/core": "^7.17.2",
81
81
  "@babel/node": "^7.16.8",
82
82
  "@leverege/babel-preset-leverege-node": "^2.0.0",
83
83
  "@leverege/eslint-config-leverege": "^3.0.1",
84
- "npm": "^8.4.0"
84
+ "npm": "^8.5.0"
85
85
  }
86
86
  }
package/src/bash-funcs CHANGED
@@ -83,3 +83,25 @@ function getManagedSecret() {
83
83
  fi
84
84
  echo $SECRET
85
85
  }
86
+
87
+ function showInstalling() {
88
+ cat<<INSTALLING
89
+
90
+ $(color y '======================================================================')
91
+
92
+ Installing => $(color g "$1")
93
+
94
+ INSTALLING
95
+ }
96
+
97
+ function addHelmRepo() {
98
+ local chart=$1
99
+ local url=$2
100
+
101
+ cat<<REPOADD
102
+ Adding helm repo => $(color g "$chart") from $(color g "$url")
103
+
104
+ REPOADD
105
+ helm repo add $chart $url &> /dev/null
106
+ helm repo update &> /dev/null
107
+ }
package/src/helmdn CHANGED
@@ -124,7 +124,7 @@ function doNuking() {
124
124
  helm uninstall elasticsearch
125
125
  ;;
126
126
 
127
- "estafette"|"estafette-gke-preemptible-killer")
127
+ "estafette"|"preemptible-killer")
128
128
  helm uninstall -n estafette estafette-gke-preemptible-killer
129
129
  ;;
130
130
 
package/src/helmup CHANGED
@@ -69,28 +69,6 @@ function createNamespaceIfNeeded(){
69
69
  fi
70
70
  }
71
71
 
72
- function showInstalling() {
73
- cat<<INSTALLING
74
-
75
- $(color y '======================================================================')
76
-
77
- Installing => $(color g "$1")
78
-
79
- INSTALLING
80
- }
81
-
82
- function addHelmRepo() {
83
- local chart=$1
84
- local url=$2
85
-
86
- cat<<REPOADD
87
- Adding helm repo => $(color g "$chart") from $(color g "$url")
88
-
89
- REPOADD
90
- helm repo add $chart $url &> /dev/null
91
- helm repo update &> /dev/null
92
- }
93
-
94
72
  function installMonitoringCharts(){
95
73
  showInstalling "Grafana Monitoring"
96
74
  createNamespaceIfNeeded monitoring
@@ -561,6 +539,9 @@ function doInstall() {
561
539
  # slap additional helm syntax in there if the version is set
562
540
  [ ! -z "$CHARTVER" ] && CHARTVER="--version $CHARTVER"
563
541
 
542
+ # set the dry-run flag on what
543
+ [ "`basename $0`" == "helmwhat" ] && WHAT="--dry-run --debug"
544
+
564
545
  # If we're referencing a plugin then execute it and continue
565
546
  ifPluggedIn $SERVICE && continue
566
547
 
@@ -636,7 +617,7 @@ function doInstall() {
636
617
  transponder-*)
637
618
  # transponders use the same chart but different deployment name
638
619
  helm upgrade --install $SERVICE leverege/transponder \
639
- --values $SERVICE/values.yaml
620
+ --values $SERVICE/values.yaml $CHARTVER $WHAT
640
621
  ;;
641
622
 
642
623
  "traefik")
@@ -673,7 +654,6 @@ function doInstall() {
673
654
  MUSEUM=$(<${OVERRIDE})
674
655
  printf "\n$YELO_WARN Local chartmuseum name override from ${SERVICE} to ${MUSEUM}\n"
675
656
  fi
676
- [ "`basename $0`" == "helmwhat" ] && WHAT="--dry-run --debug"
677
657
  HELMUP="helm upgrade --install $SERVICE leverege/$MUSEUM -f $SERVICE/values.yaml $CHARTVER $WHAT"
678
658
  printf "Helming => `color g \"$HELMUP\"`\n" && $HELMUP
679
659
  SAVERR=$?