@leverege/build-tools 2.93.3 → 2.93.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.93.3",
3
+ "version": "2.93.4",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -18,6 +18,7 @@
18
18
  "build-and-push": "src/build-and-push.sh",
19
19
  "build-cnpg-image": "src/build-cnpg-image.mjs",
20
20
  "build-tools": "src/build-tools.mjs",
21
+ "change-up": "src/change-up.sh",
21
22
  "chart-to-museum": "src/chart-to-museum.mjs",
22
23
  "chart-to-registry": "src/chart-to-registry.mjs",
23
24
  "circleate": "src/circleate.sh",
@@ -76,8 +77,8 @@
76
77
  "commander": "^14.0.2",
77
78
  "deepmerge": "^4.3.1",
78
79
  "enquirer": "^2.4.1",
79
- "execa": "^9.6.0",
80
- "glob": "^11.0.3",
80
+ "execa": "^9.6.1",
81
+ "glob": "^13.0.0",
81
82
  "handlebars": "^4.7.8",
82
83
  "ignore": "^7.0.5",
83
84
  "inquirer": "^12.11.1",
@@ -101,6 +102,6 @@
101
102
  "@leverege/eslint-config-leverege": "^5.1.1",
102
103
  "chai": "^6.2.1",
103
104
  "mocha": "^11.7.5",
104
- "npm": "^11.6.2"
105
+ "npm": "^11.7.0"
105
106
  }
106
107
  }
package/src/bash-funcs CHANGED
@@ -9,7 +9,11 @@
9
9
  # see exactly what certain commands are complaining about. Running any of the
10
10
  # build-tools with BUILD_TOOLS_DEBUG=1 will redirect the noise to stdout.
11
11
  DEVNULL="/dev/null"
12
- [ ! -z "$BUILD_TOOLS_DEBUG" ] && DEVNULL="/dev/stdout" && printf "\n***BUILD_TOOLS_DEBUG DEVNULL=>$DEVNULL\n"
12
+ if [[ -n "${BUILD_TOOLS_DEBUG:-}" ]];
13
+ then
14
+ DEVNULL="/dev/stdout"
15
+ printf "\n***BUILD_TOOLS_DEBUG DEVNULL=>$DEVNULL\n"
16
+ fi
13
17
 
14
18
  GITTOP=`git rev-parse --show-toplevel`
15
19
  DTS="`date +\"%Y%m%d-%H%M%S\"`"
@@ -306,8 +310,8 @@ PLUGIN_NOEXEC
306
310
  }
307
311
 
308
312
  # simple check to allow us to avoid double settings the k8s context
309
- function ifNotFromHelmup() {
310
- [ "$_FROM_HELMUP_" != "true" ]
313
+ function fromHelmup() {
314
+ [[ "${_FROM_HELMUP_-false}" == "true" ]]
311
315
  }
312
316
 
313
317
  # simple enforcement of necessary tools that need to be installed
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ version="${1:-X.Y.Z}"
5
+ date_str=$(date +%F) # e.g., 2025-12-11
6
+
7
+ cat <<EOF
8
+ ## [$version] - $date_str
9
+
10
+ ### Added
11
+ -
12
+
13
+ ### Changed
14
+ -
15
+
16
+ ### Deprecated
17
+ -
18
+
19
+ ### Removed
20
+ -
21
+
22
+ ### Fixed
23
+ -
24
+
25
+ ### Migration Notes
26
+ -
27
+ EOF
@@ -1,30 +1,30 @@
1
1
  #!/bin/bash
2
2
  #
3
3
  showInstalling "The Prometheus Operator and Components"
4
- addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
5
4
 
6
5
  NS="--namespace prometheus"
7
6
 
8
7
  showInstalling "The Prometheus Operator (kube-prometheus-stack)"
9
- [ -z "$PROMETHEUS_STACK_CHART_VERSION" ] && PROMETHEUS_STACK_CHART_VERSION="79"
10
8
 
11
9
  # https://artifacthub.io/packages/helm/prometheus-community/kube-prometheus-stack
12
- helm upgrade $NS --install prometheus-stack prometheus-community/kube-prometheus-stack \
10
+ OCI_CHART="oci://ghcr.io/prometheus-community/charts/kube-prometheus-stack"
11
+ [ -z "$PROMETHEUS_STACK_CHART_VERSION" ] && PROMETHEUS_STACK_CHART_VERSION="80.2.0"
12
+ helm upgrade $NS --install prometheus-stack $OCI_CHART \
13
13
  --values prom-operator/prometheus-stack.yaml \
14
14
  --version $PROMETHEUS_STACK_CHART_VERSION $HELM_WHAT
15
15
 
16
16
  # https://artifacthub.io/packages/helm/prometheus-community/prometheus-elasticsearch-exporter
17
17
  showInstalling "The Elasticsearch Exporter (prom-operator ES metrics exports)"
18
- [ -z "$ELASTICSEARCH_EXPORTER_CHART_VERSION" ] && ELASTICSEARCH_EXPORTER_CHART_VERSION="6"
19
- helm upgrade $NS --install elasticsearch8-exporter prometheus-community/prometheus-elasticsearch-exporter \
18
+ [ -z "$ELASTICSEARCH_EXPORTER_CHART_VERSION" ] && ELASTICSEARCH_EXPORTER_CHART_VERSION="7.2.0"
19
+ OCI_CHART="oci://ghcr.io/prometheus-community/charts/prometheus-elasticsearch-exporter"
20
+ helm upgrade $NS --install elasticsearch8-exporter $OCI_CHART \
20
21
  --values prom-operator/elasticsearch-exporter.yaml \
21
22
  --version $ELASTICSEARCH_EXPORTER_CHART_VERSION $HELM_WHAT
22
23
 
23
24
  # https://artifacthub.io/packages/helm/prometheus-community/prometheus-stackdriver-exporter
24
25
  showInstalling "The Stackdriver Exporter (prom-operator GKE metrics exports)"
25
- [ -z "$STACKDRIVER_EXPORTER_CHART_VERSION" ] && STACKDRIVER_EXPORTER_CHART_VERSION="4"
26
- helm upgrade $NS --install stackdriver-exporter prometheus-community/prometheus-stackdriver-exporter \
26
+ [ -z "$STACKDRIVER_EXPORTER_CHART_VERSION" ] && STACKDRIVER_EXPORTER_CHART_VERSION="4.12.2"
27
+ OCI_CHART="oci://ghcr.io/prometheus-community/charts/prometheus-stackdriver-exporter"
28
+ helm upgrade $NS --install stackdriver-exporter $OCI_CHART \
27
29
  --values prom-operator/stackdriver-exporter.yaml \
28
30
  --version $STACKDRIVER_EXPORTER_CHART_VERSION $HELM_WHAT
29
-
30
- removeHelmRepo prometheus-community
package/src/k8scale.sh CHANGED
@@ -29,9 +29,12 @@ K8SCALE_HELP
29
29
  exit 1
30
30
  esac
31
31
 
32
- [ ifNotFromHelmup ] && overwhelm
33
-
34
- [ $? -ne 0 ] && printf "\n\n***Aborting helmup...\n\n" && exit 1
32
+ if fromHelmup;
33
+ then
34
+ printf "Skipping overwhelm because invoked from helmup\n"
35
+ else
36
+ overwhelm || { printf "\n\n***Aborting helmup...\n\n"; exit 1; }
37
+ fi
35
38
 
36
39
  printf " scaled => `color g $DIRECTION`\n\n"
37
40
  for DEPLOYMENT in "$@";