@leverege/build-tools 2.55.2 → 2.55.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.55.2",
3
+ "version": "2.55.3",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -76,7 +76,7 @@
76
76
  "readline-sync": "^1.4.10",
77
77
  "semver": "^7.6.3",
78
78
  "simple-git": "^3.27.0",
79
- "zx": "^8.1.9"
79
+ "zx": "^8.2.0"
80
80
  },
81
81
  "devDependencies": {
82
82
  "@leverege/eslint-config-leverege": "^5.0.1",
@@ -13,7 +13,7 @@ spec:
13
13
  enablePodMonitor: false # set true once monitoring is setup
14
14
 
15
15
  description: "Leverege Plain Timescale DB"
16
- imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.3-cnpg-tsdb2-beta.2
16
+ imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.4-cnpg-tsdb2-rel.1
17
17
  bootstrap:
18
18
  initdb:
19
19
  # database: imagine # let it default to cnpg app db
@@ -13,7 +13,7 @@ spec:
13
13
  enablePodMonitor: false # set true once monitoring is setup
14
14
 
15
15
  description: "Leverege Dense Timescale DB"
16
- imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.3-cnpg-tsdb2-beta.2
16
+ imageName: us-docker.pkg.dev/leverege-registry/system/images/leverege-pgsql:16.4-cnpg-tsdb2-rel.1
17
17
  bootstrap:
18
18
  initdb:
19
19
  postInitTemplateSQL:
@@ -1,8 +1,17 @@
1
1
  #!/bin/bash
2
2
  #
3
3
  # See => https://cloudnative-pg.io/documentation/current/installation_upgrade/
4
+ #
5
+ # Legacy terraformed clusters (like sandbox) may need a special firewall rule
6
+ # added to the network layer on k8s. It should look like this:
7
+ #
8
+ # Name : cnpg-operator
9
+ # Ports : 8000,9443 <= kubectl cnpg status and webhooks
10
+ # Filters: 172.16.0.0/28 <= k8s control plane
11
+ #
12
+ OPVER="1.24.1"
4
13
 
5
- OPVER="1.24.0"
14
+ createNamespaceIfNeeded cnpg-system
6
15
 
7
16
  kubectl apply --server-side -f \
8
17
  https://raw.githubusercontent.com/cloudnative-pg/cloudnative-pg/release-${OPVER%.*}/releases/cnpg-${OPVER}.yaml $K8S_WHAT
@@ -3,6 +3,8 @@
3
3
  # Load the standard helper functions
4
4
  . `build-tools --bashfun`
5
5
 
6
+ overwhelm
7
+
6
8
  RULES_DIR="prom-operator/rules"
7
9
 
8
10
  [ ! -d "$RULES_DIR" ] && errorExit "Missing rules directory [$RULES_DIR]"
@@ -5,23 +5,23 @@ addHelmRepo prometheus-community https://prometheus-community.github.io/helm-cha
5
5
 
6
6
  showInstalling "The Prometheus Operator (kube-prometheus-stack)"
7
7
  [ -z "$PROMETHEUS_STACK_CHART_VERSION" ] && PROMETHEUS_STACK_CHART_VERSION="65"
8
- helm upgrade --install prometheus-stack prometheus-community/kube-prometheus-stack \
9
- --namespace prometheus --create-namespace \
10
- --values prom-operator/prometheus-stack.yaml \
11
- --version $PROMETHEUS_STACK_CHART_VERSION $HELM_WHAT
8
+
9
+ NS="--namespace prometheus"
10
+
11
+ helm upgrade $NS --install prometheus-stack prometheus-community/kube-prometheus-stack \
12
+ --values prom-operator/prometheus-stack.yaml \
13
+ --version $PROMETHEUS_STACK_CHART_VERSION $HELM_WHAT
12
14
 
13
15
  showInstalling "The Elasticsearch Exporter (prom-operator)"
14
16
  [ -z "$ELASTICSEARCH_EXPORTER_CHART_VERSION" ] && ELASTICSEARCH_EXPORTER_CHART_VERSION="6"
15
- helm upgrade --install elasticsearch8-exporter prometheus-community/prometheus-elasticsearch-exporter \
16
- --namespace prometheus --create-namespace \
17
- --values prom-operator/elasticsearch-exporter.yaml \
18
- --version $ELASTICSEARCH_EXPORTER_CHART_VERSION $HELM_WHAT
17
+ helm upgrade $NS --install elasticsearch8-exporter prometheus-community/prometheus-elasticsearch-exporter \
18
+ --values prom-operator/elasticsearch-exporter.yaml \
19
+ --version $ELASTICSEARCH_EXPORTER_CHART_VERSION $HELM_WHAT
19
20
 
20
21
  showInstalling "The Stackdriver Exporter (prom-operator)"
21
22
  [ -z "$STACKDRIVER_EXPORTER_CHART_VERSION" ] && STACKDRIVER_EXPORTER_CHART_VERSION="4"
22
- helm upgrade --install stackdriver-exporter prometheus-community/prometheus-stackdriver-exporter \
23
- --namespace prometheus --create-namespace \
24
- --values prom-operator/stackdriver-exporter.yaml \
25
- --version $STACKDRIVER_EXPORTER_CHART_VERSION $HELM_WHAT
23
+ helm upgrade $NS --install stackdriver-exporter prometheus-community/prometheus-stackdriver-exporter \
24
+ --values prom-operator/stackdriver-exporter.yaml \
25
+ --version $STACKDRIVER_EXPORTER_CHART_VERSION $HELM_WHAT
26
26
 
27
27
  removeHelmRepo prometheus-community
@@ -1,3 +1,7 @@
1
+ #
2
+ # test with => kubectl apply -f prom-operator/test-alert.yaml
3
+ # delete it => kubectl delete -f prom-operator/test-alert.yaml
4
+ #
1
5
  apiVersion: monitoring.coreos.com/v1
2
6
  kind: PrometheusRule
3
7
  metadata:
@@ -17,7 +17,7 @@ TRAEFIK_NAMESPACE="traefik"
17
17
 
18
18
  addHelmRepo traefik https://helm.traefik.io/traefik
19
19
 
20
- [ -z "$TRAEFIK_CHART_VERSION" ] && TRAEFIK_CHART_VERSION="32"
20
+ [ -z "$TRAEFIK_CHART_VERSION" ] && TRAEFIK_CHART_VERSION="33"
21
21
  helm upgrade --install traefik traefik/traefik \
22
22
  --namespace $TRAEFIK_NAMESPACE --create-namespace \
23
23
  --values traefik/traefik-local.yaml \