@leverege/build-tools 2.66.2 → 2.66.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.
Files changed (61) hide show
  1. package/package.json +4 -4
  2. package/src/.swo +0 -0
  3. package/src/bash-funcs +10 -0
  4. package/src/helm-audit.mjs +116 -0
  5. package/src/helm-charts/api-server/values-local.yaml +5 -2
  6. package/src/helm-charts/authz-server/values-local.yaml +4 -1
  7. package/src/helm-charts/cnpg-db-tsdb-basic/cluster.yaml.ovh +1 -1
  8. package/src/helm-charts/db-curator/values-local.yaml +2 -2
  9. package/src/helm-charts/elasticsearch8/helmup.plugin +2 -1
  10. package/src/helm-charts/emailer/values-local.yaml +6 -3
  11. package/src/helm-charts/fota-server/values-local.yaml +1 -1
  12. package/src/helm-charts/geotile-server/values-local.yaml +6 -3
  13. package/src/helm-charts/imagine/values-local.yaml +3 -0
  14. package/src/helm-charts/message-processor/values-local.yaml +2 -2
  15. package/src/helm-charts/messenger/values-local.yaml +5 -2
  16. package/src/helm-charts/overdose/values-local.yaml +3 -0
  17. package/src/helm-charts/prom-operator/helmup.plugin +12 -5
  18. package/src/helm-charts/prom-operator/prometheus-adapter.yaml +18 -0
  19. package/src/helm-charts/prom-operator/prometheus-stack.yaml.ovh +51 -10
  20. package/src/helm-charts/prom-operator/rules/cadvisor-rules.yaml +21 -6
  21. package/src/helm-charts/prom-operator/rules/elasticsearch-rules.yaml +1 -1
  22. package/src/helm-charts/prom-operator/rules/kubestate-rules.yaml +5 -7
  23. package/src/helm-charts/prom-operator/rules/prometheus-rules.yaml +1 -1
  24. package/src/helm-charts/prom-operator/stackdriver-exporter-gpu-rules.yaml +44 -0
  25. package/src/helm-charts/prom-operator/stackdriver-exporter.yaml.ovh +15 -12
  26. package/src/helm-charts/pubsub-pulse/values-local.yaml +5 -3
  27. package/src/helm-charts/pusher/values-local.yaml +3 -0
  28. package/src/helm-charts/reason/values-local.yaml +4 -1
  29. package/src/helm-charts/redis/.nohelm +0 -0
  30. package/src/helm-charts/redis/helmup.plugin +2 -2
  31. package/src/helm-charts/resource-server/values-local.yaml +9 -4
  32. package/src/helm-charts/rule-engine/values-local.yaml +4 -1
  33. package/src/helm-charts/transponder-bq/values-local.yaml +5 -2
  34. package/src/helm-charts/transponder-dh/values-local.yaml +5 -2
  35. package/src/helm-charts/transponder-rt/values-local.yaml +5 -2
  36. package/src/helm-charts/transponder-tsdb/values-local.yaml +5 -2
  37. package/src/helm-charts/vin-decoder-server/values-local.yaml +3 -0
  38. package/src/helmup.sh +27 -4
  39. package/src/push-my-chart.mjs +17 -8
  40. package/src/helm-charts/prom-operator/grafana-dashboards/cloudnative-pg.json +0 -9190
  41. package/src/helm-charts/prom-operator/grafana-dashboards/redis.json +0 -1513
  42. package/src/helm-charts/prom-operator/grafana-dashboards/stackdriver.json +0 -624
  43. package/src/helm-charts/prom-operator/grafana-dashboards/traefik-op.json +0 -1386
  44. /package/src/helm-charts/{cert-manager → deprecated/cert-manager}/.nohelm +0 -0
  45. /package/src/helm-charts/{cert-manager → deprecated/cert-manager}/cert-manager-local.yaml.ovh +0 -0
  46. /package/src/helm-charts/{cert-manager → deprecated/cert-manager}/gitignore +0 -0
  47. /package/src/helm-charts/{cert-manager → deprecated/cert-manager}/helmup.plugin +0 -0
  48. /package/src/helm-charts/{grafana → deprecated/grafana}/.nohelm +0 -0
  49. /package/src/helm-charts/{grafana → deprecated/grafana}/gitignore +0 -0
  50. /package/src/helm-charts/{grafana → deprecated/grafana}/grafana-local.yaml.ovh +0 -0
  51. /package/src/helm-charts/{grafana → deprecated/grafana}/helmup.plugin +0 -0
  52. /package/src/helm-charts/{postgres → deprecated/postgres}/.nohelm +0 -0
  53. /package/src/helm-charts/{postgres → deprecated/postgres}/helmup.plugin +0 -0
  54. /package/src/helm-charts/{postgres → deprecated/postgres}/postgres-local.yaml +0 -0
  55. /package/src/helm-charts/{prometheus → deprecated/prometheus}/helmup.plugin +0 -0
  56. /package/src/helm-charts/{prometheus → deprecated/prometheus}/values-local.yaml +0 -0
  57. /package/src/helm-charts/{stackdriver-exporter → deprecated/stackdriver-exporter}/helmup.plugin +0 -0
  58. /package/src/helm-charts/{stackdriver-exporter → deprecated/stackdriver-exporter}/values-local.yaml +0 -0
  59. /package/src/helm-charts/{timescale-db → deprecated/timescale-db}/.nohelm +0 -0
  60. /package/src/helm-charts/{timescale-db → deprecated/timescale-db}/helmup.plugin +0 -0
  61. /package/src/helm-charts/{timescale-db → deprecated/timescale-db}/timescale-db-local.yaml +0 -0
@@ -23,3 +23,6 @@ config:
23
23
  }
24
24
  }
25
25
  }
26
+
27
+ serviceMonitor:
28
+ enabled: true
@@ -4,7 +4,7 @@ image:
4
4
  config:
5
5
  CF_TRANSPORT_CONFIG: '{
6
6
  "type": "pubsub",
7
- "projectId": "OVH:<PROJECT_NAME>" ,
7
+ "projectId": "${PROJECT_NAME}" ,
8
8
  "keyFilename": "/home/node/unused/key.json" ,
9
9
  "publisher": {
10
10
  "batching": {
@@ -12,3 +12,6 @@ config:
12
12
  }
13
13
  }
14
14
  }'
15
+
16
+ serviceMonitor:
17
+ enabled: true
File without changes
@@ -4,8 +4,8 @@ showInstalling "Redis"
4
4
 
5
5
  OCI_CHART="oci://registry-1.docker.io/bitnamicharts/redis"
6
6
 
7
- [ -z "$REDIS_CHART_VERSION" ] && REDIS_CHART_VERSION="20.12.1"
7
+ [ -z "$REDIS_CHART_VERSION" ] && REDIS_CHART_VERSION="20.13.4"
8
8
 
9
9
  helm upgrade --install redis $OCI_CHART \
10
- --values redis/values.yaml \
10
+ --values redis/values-local.yaml \
11
11
  --version $REDIS_CHART_VERSION $HELM_WHAT
@@ -4,14 +4,19 @@
4
4
  # - npm run sequelizeRunMigrations
5
5
  #
6
6
  image:
7
- tag: # v1.7.0
7
+ tag: # v1.14.1
8
8
 
9
9
  config:
10
10
  LOG_CONFIG: '{"type":"pino","level":"warn"}'
11
11
 
12
- UPLOADER_PROJECT_ID: "OVH:<PROJECT_ID>"
13
- UPLOADER_BUCKET: "OVH:<PROJECT_ID>-resource-server"
14
- UPLOADER_LOCATION: "OVH:<GCE_REGION>"
12
+ UPLOADER_PROJECT_ID: "${PROJECT_ID}"
13
+ UPLOADER_BUCKET: "${PROJECT_ID}-resource-server"
14
+ UPLOADER_LOCATION: "${GCE_REGION}"
15
15
 
16
16
  # CNPG override
17
17
  SQL_HOST: "cnpg-db-psql-stack-rw.cnpg-operands" # vs postgres-postgresql
18
+ # SQL_READ_REPLICATION_CONFIG: '[ { "host": "cnpg-db-psql-stack-r.cnpg-operands" } ]'
19
+ # TRANSACTION_MAX_RETRIES: "5"
20
+
21
+ serviceMonitor:
22
+ enabled: true
@@ -1,8 +1,11 @@
1
1
  image:
2
- tag: # v2.6.0
2
+ tag: # v3.6.0
3
3
 
4
4
  config:
5
5
  LOG_CONFIG: '{"type":"pino","level":"warn"}'
6
6
 
7
7
  # CNPG override
8
8
  MODELS_SEQUELIZE_HOST: "cnpg-db-psql-stack-rw.cnpg-operands" # vs postgres-postgresql
9
+
10
+ serviceMonitor:
11
+ enabled: true
@@ -1,7 +1,7 @@
1
1
  nameOverride: transponder-bq
2
2
 
3
3
  image:
4
- tag: # v5.3.4
4
+ tag: # v5.5.1
5
5
 
6
6
  config:
7
7
  TRANSPONDER_RUN_MODE: "bigQueryJson"
@@ -9,7 +9,7 @@ config:
9
9
 
10
10
  TRANSPORT_CONFIG: '{
11
11
  "type": "pubsub",
12
- "projectId": "OVH:<PROJECT_ID>",
12
+ "projectId": "${PROJECT_ID}",
13
13
  "publisher": {
14
14
  "batching": {
15
15
  "maxMilliseconds": 0,
@@ -27,3 +27,6 @@ config:
27
27
  },
28
28
  "channel": "writer-bq"
29
29
  }'
30
+
31
+ serviceMonitor:
32
+ enabled: true
@@ -1,7 +1,7 @@
1
1
  nameOverride: transponder-dh
2
2
 
3
3
  image:
4
- tag: # v5.3.4
4
+ tag: # v5.5.1
5
5
 
6
6
  config:
7
7
  TRANSPONDER_RUN_MODE: "denseHistoryCombined"
@@ -19,7 +19,7 @@ config:
19
19
 
20
20
  TRANSPORT_CONFIG: '{
21
21
  "type": "pubsub",
22
- "projectId": "OVH:<PROJECT_NAME>",
22
+ "projectId": "${PROJECT_NAME}",
23
23
  "publisher": {
24
24
  "batching": {
25
25
  "maxMilliseconds": 0,
@@ -60,3 +60,6 @@ resources:
60
60
  requests:
61
61
  cpu: 250m
62
62
  memory: 600Mi
63
+
64
+ serviceMonitor:
65
+ enabled: true
@@ -1,7 +1,7 @@
1
1
  nameOverride: transponder-rt
2
2
 
3
3
  image:
4
- tag: # v5.3.4
4
+ tag: # v5.5.1
5
5
 
6
6
  config:
7
7
  TRANSPONDER_RUN_MODE: "rt"
@@ -10,7 +10,7 @@ config:
10
10
  ELASTICSEARCH_DATA_METADATA_ENABLED: "false"
11
11
  TRANSPORT_CONFIG: '{
12
12
  "type": "pubsub",
13
- "projectId": "OVH:<PROJECT_ID>",
13
+ "projectId": "${PROJECT_ID}",
14
14
  "publisher": {
15
15
  "batching": {
16
16
  "maxMilliseconds": 0,
@@ -28,3 +28,6 @@ config:
28
28
  },
29
29
  "channel": "writer-rt"
30
30
  }'
31
+
32
+ serviceMonitor:
33
+ enabled: true
@@ -7,7 +7,7 @@
7
7
  nameOverride: transponder-tsdb
8
8
 
9
9
  image:
10
- tag: # v5.3.4
10
+ tag: # v5.5.1
11
11
 
12
12
  config:
13
13
  TRANSPONDER_RUN_MODE: "timescale"
@@ -21,7 +21,7 @@ config:
21
21
 
22
22
  TRANSPORT_CONFIG: '{
23
23
  "type": "pubsub",
24
- "projectId": "OVH:<PROJECT_ID>",
24
+ "projectId": "${PROJECT_ID}",
25
25
  "publisher": {
26
26
  "batching": {
27
27
  "maxMilliseconds": 0,
@@ -39,3 +39,6 @@ config:
39
39
  },
40
40
  "channel": "writer-tsdb"
41
41
  }'
42
+
43
+ serviceMonitor:
44
+ enabled: true
@@ -5,3 +5,6 @@ config:
5
5
  LOG_CONFIG: '{"type":"pino","level":"warn"}'
6
6
  PROJECT_ID: "set-in-values-local"
7
7
  SYSTEM_ID: "set-in-values-local"
8
+
9
+ serviceMonitor:
10
+ enabled: true
package/src/helmup.sh CHANGED
@@ -49,6 +49,7 @@ AUXILIARY=(
49
49
 
50
50
  # zombie-killer re-enabled 20240801
51
51
  SYSTEM=(
52
+ prom-operator
52
53
  elasticsearch8
53
54
  redis
54
55
  cnpg-operator
@@ -113,7 +114,7 @@ CATNAMI
113
114
  # bindWorkloadIdentity api-server
114
115
  #
115
116
  # but in the case of services like transponder which has various flavors but
116
- # only the single trandponder services account we woul do:
117
+ # only the single transponder service account we would do:
117
118
  # bindWorkloadIdentity transponder default tranponder-rt
118
119
  #
119
120
  function bindWorkloadIdentity() {
@@ -933,13 +934,32 @@ UPGRADES_DONE
933
934
  sleep 3
934
935
  }
935
936
 
937
+ # TODO: DRY this by coalescing with checkUpgradeNotes
938
+ function displayBanner() {
939
+ BANNER="helmup-banner.txt"
940
+
941
+ [ ! -f "$BANNER" ] && return
942
+ BANNER_TXT=`cat $BANNER`
943
+
944
+ cat<<HELMUP_BANNER
945
+
946
+ `color g "--- From $BANNER ----------------------------------------------------"`
947
+
948
+ $BANNER_TXT
949
+
950
+ `color g "-------------------------------------------------------------------------------"`
951
+ HELMUP_BANNER
952
+ }
953
+
936
954
  function doHelmup() {
955
+ local culprit="--set helmup.culprit=\"$(gcloud config get account)\""
956
+ local deployT="--set helmup.deployT=\"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\""
937
957
  local helmup="$@"
938
958
  local doing="Helming => `color g \"$helmup\"`"
939
959
  local from=
940
960
  [ ! -z "$FROM_VERSIONS" ] && from="`color y \"<= from Versions.json\"`"
941
961
  printf "$doing $from\n"
942
- eval $helmup
962
+ eval "$helmup $culprit $deployT"
943
963
  case "$INVOKED_AS" in
944
964
  "helmup"|"helmdn")
945
965
  sendToSlack "$helmup"
@@ -1030,7 +1050,7 @@ CATBACKUP
1030
1050
  "cnpg-operator")
1031
1051
  installCnpgOperatorEnvironment
1032
1052
  bootstrapLocalSetup $SERVICE
1033
- installCronCnpgCleanupSnapshot
1053
+ installCnpgCleanupCronjob
1034
1054
  ;;
1035
1055
 
1036
1056
  "cnpg-cronjob")
@@ -1049,7 +1069,7 @@ CATBACKUP
1049
1069
  installDefaultConfigs
1050
1070
  ;;
1051
1071
 
1052
- db-curator-dh)
1072
+ "db-curator-dh")
1053
1073
  # db-curator-dh is a variant of db-curator with diff controlled in values-local.yaml
1054
1074
  HELMUP="helm upgrade --install $SERVICE leverege/db-curator --values $SERVICE/values.yaml $CHARTVER $HELM_WHAT"
1055
1075
  doHelmup "$HELMUP"
@@ -1252,4 +1272,7 @@ GCP_PROJECT_ID="$(getProjectIdFromK8sContext)"
1252
1272
  GCE_REGION=`overwhelm -k GCE_REGION`
1253
1273
 
1254
1274
  doInstall $@
1275
+
1276
+ displayBanner
1277
+
1255
1278
  cd - &> $DEVNULL
@@ -46,20 +46,29 @@ const pushItGood = async () => {
46
46
  const version = await shellCmd( 'helm version --short' )
47
47
  const pusher = ( semverLt( version, '3.7.0' ) ? 'push' : 'cm-push' )
48
48
 
49
+ let museumStatus = 0
49
50
  try {
50
51
  log( chalk.green( 'Pushing chart to the Chartmuseum\n' ) )
51
52
  const museum = await shellCmd( `helm ${pusher} helm leverege` )
52
53
  debug( { museum }, '<==output from helm push' )
53
- if ( args.noRegistry ) {
54
- log( `${chalk.bold.yellow( '\nskipping the chart push to the artifact registry' )}` )
55
- } else {
56
- log( chalk.green( 'Pushing chart to the Artifact Registry\n' ) )
57
- const registry = await shellCmd( 'chart-to-registry' )
58
- debug( { registry }, '<==chart-to-registry' )
59
- }
60
54
  } catch ( ex ) {
61
55
  log( ex.stderr )
62
- process.exit( 1 )
56
+ museumStatus = 1
57
+ }
58
+
59
+ if ( args.noRegistry ) {
60
+ log( `${chalk.bold.yellow( '\nskipping the chart push to the artifact registry' )}` )
61
+ process.exit( museumStatus )
62
+ }
63
+
64
+ try {
65
+ log( chalk.green( 'Pushing chart to the Artifact Registry\n' ) )
66
+ const registry = await shellCmd( 'chart-to-registry' )
67
+ debug( { registry }, '<==chart-to-registry' )
68
+ process.exit( museumStatus )
69
+ } catch ( ex ) {
70
+ log( ex.stderr )
71
+ process.exit( museumStatus + 1 )
63
72
  }
64
73
  }
65
74