@leverege/build-tools 2.14.0 → 2.14.1

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
@@ -44,16 +44,6 @@ const npmRunner = async script => {
44
44
  await npmRunner(script[i]);
45
45
  }
46
46
  } else {
47
- try {
48
- await execa('npm-check-updates', ['--color', '--packageFile', './package.json'], {
49
- stdio: 'inherit'
50
- });
51
- process.exit(0);
52
- } catch (err) {
53
- console.log({
54
- err
55
- }, 'npm-check-update failed');
56
- process.exit(err.exitCode);
57
- }
47
+ process.exit(0);
58
48
  }
59
49
  })();
@@ -44,16 +44,6 @@ const npmRunner = async script => {
44
44
  await npmRunner(script[i]);
45
45
  }
46
46
  } else {
47
- try {
48
- await execa('npm-check-updates', ['--color', '--packageFile', './package.json'], {
49
- stdio: 'inherit'
50
- });
51
- process.exit(0);
52
- } catch (err) {
53
- console.log({
54
- err
55
- }, 'npm-check-update failed');
56
- process.exit(err.exitCode);
57
- }
47
+ process.exit(0);
58
48
  }
59
49
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -61,7 +61,7 @@
61
61
  "inquirer": "^8.2.4",
62
62
  "js-yaml": "^4.1.0",
63
63
  "ncp": "^2.0.0",
64
- "npm-check-updates": "^13.0.3",
64
+ "npm-check-updates": "^13.1.1",
65
65
  "npm-registry-fetch": "^11.0.0",
66
66
  "open": "^8.4.0",
67
67
  "ora": "^5.4.1",
@@ -76,6 +76,6 @@
76
76
  "@babel/node": "^7.17.10",
77
77
  "@leverege/babel-preset-leverege-node": "^2.0.0",
78
78
  "@leverege/eslint-config-leverege": "^3.0.1",
79
- "npm": "^8.11.0"
79
+ "npm": "^8.12.1"
80
80
  }
81
81
  }
package/src/helmup CHANGED
@@ -8,6 +8,8 @@
8
8
  # Load the standard helper functions
9
9
  . `build-tools --bashfun`
10
10
 
11
+ HELMUP_ARGS=("$*")
12
+
11
13
  # removed geotile-server from standard platform 3/20/22 - low usage
12
14
  PLATFORM=(
13
15
  authz-server
@@ -39,6 +41,24 @@ SYSTEM=(
39
41
  monitoring # do monitoring last to show password
40
42
  )
41
43
 
44
+ # support for legacy bitnami charts
45
+ function addBitnamiRepo() {
46
+ if [ ! -z "$BITNAMI_LATEST" ];
47
+ then
48
+ BITNAMI_URL="https://charts.bitnami.com/bitnami"
49
+ else
50
+ cat<<CATNAMI
51
+ Using the pre 2022 legacy charts from bitnami. To use latest run:
52
+
53
+ `color y "BITNAMI_LATEST=1 $HELMUP_ARGS"`
54
+
55
+ CATNAMI
56
+ BITNAMI_URL="https://raw.githubusercontent.com/bitnami/charts/eb5f9a9513d987b519f0ecd732e7031241c50328/bitnami"
57
+ fi
58
+
59
+ addHelmRepo bitnami $BITNAMI_URL
60
+ }
61
+
42
62
  function checkTimescalePassword(){
43
63
  kubectl get secret postgresql-password
44
64
  if [[ $? -eq 1 ]]; then
@@ -680,7 +700,7 @@ CHARTVER=
680
700
  FROM_VERSIONS=
681
701
  function doInstall() {
682
702
 
683
- helm repo update # XXX &> /dev/null
703
+ helm repo update &> /dev/null
684
704
 
685
705
  for PARAM in "$@";
686
706
  do
@@ -745,14 +765,14 @@ function doInstall() {
745
765
 
746
766
  "postgres"|"postgresql")
747
767
  showInstalling "PostgreSQL Database"
748
- addHelmRepo bitnami https://charts.bitnami.com/bitnami
768
+ addBitnamiRepo
749
769
  helm upgrade --install postgres bitnami/postgresql -f postgres/postgres-values.yaml --version 8.9.6
750
770
  removeHelmRepo bitnami
751
771
  ;;
752
772
 
753
773
  "redis")
754
774
  showInstalling "Redis Network Cache"
755
- addHelmRepo bitnami https://charts.bitnami.com/bitnami
775
+ addBitnamiRepo
756
776
  [ -z "$REDIS_HELM_CHART" ] && REDIS_HELM_CHART="13.0.1" # latest breaks us => "v14+"
757
777
  helm upgrade --install redis bitnami/redis \
758
778
  -f redis/redis-values.yaml \
package/src/unleash.js CHANGED
@@ -39,14 +39,6 @@ const npmRunner = async ( script ) => {
39
39
  await npmRunner( script[i] )
40
40
  }
41
41
  } else {
42
- try {
43
- await execa( 'npm-check-updates', [
44
- '--color', '--packageFile', './package.json',
45
- ], { stdio : 'inherit' } )
46
- process.exit( 0 )
47
- } catch ( err ) {
48
- console.log( { err }, 'npm-check-update failed' )
49
- process.exit( err.exitCode )
50
- }
42
+ process.exit( 0 )
51
43
  }
52
44
  } )()