@leverege/build-tools 2.48.6 → 2.49.0

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 (46) hide show
  1. package/package.json +3 -4
  2. package/registry-compass.yaml +20 -0
  3. package/src/chart-compass.mjs +96 -0
  4. package/src/cnpg-snapshot.mjs +4 -29
  5. package/src/helm-charts/cnpg-db-pgbench/cnpg-db-pgbench.yaml.ovh +100 -0
  6. package/src/helm-charts/cnpg-db-pgbench/gitignore +2 -0
  7. package/src/helm-charts/cnpg-db-pgbench/helmdn.plugin +12 -0
  8. package/src/helm-charts/cnpg-db-pgbench/helmup.plugin +3 -0
  9. package/src/helm-charts/cnpg-db-pgbench/pooler.yaml +16 -0
  10. package/src/helm-charts/{db-postgres-stack/db-postgres-stack.yaml.ovh → cnpg-db-psql-stack/cnpg-db-psql-stack.yaml.ovh} +6 -24
  11. package/src/helm-charts/cnpg-db-psql-stack/gitignore +2 -0
  12. package/src/helm-charts/cnpg-db-psql-stack/helmdn.plugin +12 -0
  13. package/src/helm-charts/cnpg-db-psql-stack/helmup.plugin +3 -0
  14. package/src/helm-charts/cnpg-db-psql-stack/pooler.yaml +16 -0
  15. package/src/helm-charts/{db-timescale-plain/db-timescale-plain.yaml.ovh → cnpg-db-tsdb-basic/cnpg-db-tsdb-basic.yaml.ovh} +8 -28
  16. package/src/helm-charts/cnpg-db-tsdb-basic/gitignore +2 -0
  17. package/src/helm-charts/cnpg-db-tsdb-basic/helmdn.plugin +12 -0
  18. package/src/helm-charts/cnpg-db-tsdb-basic/helmup.plugin +3 -0
  19. package/src/helm-charts/cnpg-db-tsdb-basic/pooler.yaml +16 -0
  20. package/src/helm-charts/cnpg-db-tsdb-dense/.nohelm +0 -0
  21. package/src/helm-charts/cnpg-db-tsdb-dense/.nohelmdn +0 -0
  22. package/src/helm-charts/{db-timescale-dense/db-timescale-dense.yaml.ovh → cnpg-db-tsdb-dense/cnpg-db-tsdb-dense.yaml.ovh} +7 -27
  23. package/src/helm-charts/cnpg-db-tsdb-dense/gitignore +2 -0
  24. package/src/helm-charts/cnpg-db-tsdb-dense/helmdn.plugin +12 -0
  25. package/src/helm-charts/cnpg-db-tsdb-dense/helmup.plugin +5 -0
  26. package/src/helm-charts/cnpg-db-tsdb-dense/pooler.yaml +16 -0
  27. package/src/helm-charts/elasticsearch8/helmup.plugin +4 -5
  28. package/src/helm-charts/kube-prometheus-stack/helmup.plugin +13 -0
  29. package/src/helm-charts/kube-prometheus-stack/old-values-local.yaml +764 -0
  30. package/src/helm-charts/pusher/values-local.yaml +2 -2
  31. package/src/helmup.sh +14 -25
  32. package/src/helm-charts/db-postgres-stack/gitignore +0 -1
  33. package/src/helm-charts/db-postgres-stack/helmdn.plugin +0 -3
  34. package/src/helm-charts/db-postgres-stack/helmup.plugin +0 -3
  35. package/src/helm-charts/db-timescale-dense/gitignore +0 -1
  36. package/src/helm-charts/db-timescale-dense/helmdn.plugin +0 -9
  37. package/src/helm-charts/db-timescale-dense/helmup.plugin +0 -5
  38. package/src/helm-charts/db-timescale-plain/gitignore +0 -1
  39. package/src/helm-charts/db-timescale-plain/helmdn.plugin +0 -3
  40. package/src/helm-charts/db-timescale-plain/helmup.plugin +0 -3
  41. /package/src/helm-charts/{db-postgres-stack → cnpg-db-pgbench}/.nohelm +0 -0
  42. /package/src/helm-charts/{db-postgres-stack → cnpg-db-pgbench}/.nohelmdn +0 -0
  43. /package/src/helm-charts/{db-timescale-dense → cnpg-db-psql-stack}/.nohelm +0 -0
  44. /package/src/helm-charts/{db-timescale-dense → cnpg-db-psql-stack}/.nohelmdn +0 -0
  45. /package/src/helm-charts/{db-timescale-plain → cnpg-db-tsdb-basic}/.nohelm +0 -0
  46. /package/src/helm-charts/{db-timescale-plain → cnpg-db-tsdb-basic}/.nohelmdn +0 -0
@@ -5,7 +5,7 @@ config:
5
5
  # server configs
6
6
  LOG_CONFIG: '{"type":"pino","level":"info"}'
7
7
 
8
- # message rates = stopId/(frequency/1000) Hz
8
+ # message rates = (stopId-startId)/(frequency/1000) Hz
9
9
  # default-test RX is 1K objects at 33Hz
10
10
  INITIAL_RX : |
11
11
  {
@@ -18,7 +18,7 @@ config:
18
18
  "startId" : 0,
19
19
  "stopId" : 1000,
20
20
  "bucketSize" : 100,
21
- "frequency" : 30000, # default RX is 1K objects at 33Hz
21
+ "frequency" : 30000,
22
22
  "messageSizeLimit" : 100
23
23
  }
24
24
  }
package/src/helmup.sh CHANGED
@@ -297,21 +297,6 @@ function installMonitoringEnvironment() {
297
297
  # Add necessary helm repositories - note that stable is deprecated
298
298
  addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
299
299
 
300
- ## Installing ES exporter
301
- helm upgrade --install elasticsearch-exporter prometheus-community/prometheus-elasticsearch-exporter \
302
- --namespace monitoring \
303
- --version 5 \
304
- -f - <<ELASTIC_EXPORTER_CHART_MOD
305
- fullnameOverride: elasticsearch8-exporter
306
-
307
- service:
308
- annotations:
309
- prometheus.io/port: "9108"
310
- prometheus.io/scrape: "true"
311
- es:
312
- uri: http://elasticsearch-master.default.svc.cluster.local:9200
313
- ELASTIC_EXPORTER_CHART_MOD
314
-
315
300
  ## Install Prometheus
316
301
  bootstrapLocalSetup prometheus
317
302
 
@@ -845,6 +830,16 @@ CATBACKUP
845
830
  bootstrapLocalSetup $SERVICE
846
831
  ;;
847
832
 
833
+ cnpg-db-*)
834
+ if [ ! -d $SERVICE ];
835
+ then
836
+ # this code only executes on the first deployment
837
+ initializeCnpgOperand $SERVICE
838
+ bootstrapLocalSetup $SERVICE
839
+ kubectl apply -f $SERVICE/$SERVICE.yaml $K8S_WHAT
840
+ fi
841
+ ;;
842
+
848
843
  "cnpg-operator")
849
844
  installCnpgOperatorEnvironment
850
845
  bootstrapLocalSetup $SERVICE
@@ -862,16 +857,6 @@ CATBACKUP
862
857
  installDefaultConfigs
863
858
  ;;
864
859
 
865
- db-postgres-*|db-timescale-*)
866
- if [ ! -d $SERVICE ];
867
- then
868
- # this code only executes on the first deployment
869
- initializeCnpgOperand $SERVICE
870
- bootstrapLocalSetup $SERVICE
871
- kubectl apply -f $SERVICE/$SERVICE.yaml $K8S_WHAT
872
- fi
873
- ;;
874
-
875
860
  db-curator-dh)
876
861
  # db-curator-dh is a variant of db-curator with diff controlled in values-local.yaml
877
862
  HELMUP="helm upgrade --install $SERVICE leverege/db-curator --values $SERVICE/values.yaml $CHARTVER $HELM_WHAT"
@@ -903,6 +888,10 @@ CATBACKUP
903
888
  bootstrapLocalSetup $SERVICE
904
889
  ;;
905
890
 
891
+ "kube-prometheus-stack")
892
+ bootstrapLocalSetup $SERVICE
893
+ ;;
894
+
906
895
  "monitoring")
907
896
  installMonitoringEnvironment
908
897
  monitoringHelp
@@ -1 +0,0 @@
1
- db-postgres-stack.yaml
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- kubectl delete -f db-postgres-stack/db-postgres-stack.yaml $K8S_WHAT
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- kubectl apply -f db-postgres-stack/db-postgres-stack.yaml $K8S_WHAT
@@ -1 +0,0 @@
1
- db-timescale-dense.yaml
@@ -1,9 +0,0 @@
1
- #!/bin/bash
2
-
3
- printf "\nHibernating the db-timescale-dense cluster...\n"
4
- kubectl cnpg hibernate on -n cnpg-operands db-timescale-dense
5
-
6
- # *** DANGER ***
7
- # kubectl delete will destroy the cluster
8
- # *** DANGER ***
9
- # kubectl delete -f db-timescale-dense/db-timescale-dense.yaml $K8S_WHAT
@@ -1,5 +0,0 @@
1
- #!/bin/bash
2
- #
3
- #bindWorkloadIdentity cnpg-operands-sa cnpg-operands db-timescale-dense
4
-
5
- kubectl apply -f db-timescale-dense/db-timescale-dense.yaml $K8S_WHAT
@@ -1 +0,0 @@
1
- db-timescale-plain.yaml
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
-
3
- kubectl delete -f db-timescale-plain/db-timescale-plain.yaml $K8S_WHAT
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- #
3
- kubectl apply -f db-timescale-plain/db-timescale-plain.yaml $K8S_WHAT