@leverege/build-tools 2.42.0-beta.2 → 2.42.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.42.0-beta.2",
3
+ "version": "2.42.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
  "glob": "^10.3.10",
62
62
  "js-yaml": "^4.1.0",
63
63
  "ms": "^2.1.3",
64
- "npm-registry-fetch": "^16.0.0",
64
+ "npm-registry-fetch": "^16.1.0",
65
65
  "parse-gitignore": "^2.0.0",
66
66
  "read-pkg": "^8.1.0",
67
67
  "readline-sync": "^1.4.10",
@@ -221,7 +221,7 @@ function getNthObjectFromDelimitedString() {
221
221
  IFS=$delimeter
222
222
  read -ra ADDR <<< "$inputStr"
223
223
 
224
- echo ${ADDR[$2]}
224
+ echo ${ADDR[$index]}
225
225
  }
226
226
 
227
227
  # ---------- MAIN PROCESSING STARTS HERE ----------
@@ -597,8 +597,6 @@ then
597
597
  printf "\n$(color g "Tagging and Pushing $version")\n"
598
598
  git tag -af $1 -m "Docker version $1"
599
599
  git push --follow-tags
600
- # gcloud container images add-tag --quiet $gcimage:$version $gcimage:latest
601
- # [ ! -z "$artifact" ] && gcloud container images add-tag --quiet $registry:$version $registry:latest
602
600
  else
603
601
  printf "\n$(color y '*** Skipped git tagging - beta release')\n\n"
604
602
  fi
@@ -1,15 +1,13 @@
1
1
  # Foundation Chart: https://artifacthub.io/packages/helm/elastic/elasticsearch
2
2
  #
3
- # esJavaOpts: "" # example: "-Xmx1g -Xms1g"
4
- #
5
- # resources:
6
- # requests:
7
- # cpu: "1000m"
8
- # memory: "2Gi"
9
- # limits:
10
- # cpu: "1000m"
11
- # memory: "2Gi"
12
-
3
+ # These settings are for a vanilla initial system setup. For an example of a
4
+ # much beefier ES8 deployment take a look at prd-recovr-auto, which also uses
5
+ # much bigger nodes in the elastic node pool - n2-standard-16.
6
+ #
7
+ # On a production deployment there will most likely be resource definitions
8
+ # for each of the 4 ES node types in the cluster. See prd-recovr-auto for an
9
+ # example of a big beefy system.
10
+ #
13
11
  global:
14
12
  storageClass: "ssd"
15
13
 
@@ -18,6 +16,11 @@ namespaceOverride: "elastic"
18
16
 
19
17
  coordinating:
20
18
  replicaCount: 3
19
+ # resources: # default from bitnami chart
20
+ # limits: {}
21
+ # requests:
22
+ # cpu: 25m
23
+ # memory: 256Mi
21
24
  affinity:
22
25
  nodeAffinity:
23
26
  requiredDuringSchedulingIgnoredDuringExecution:
@@ -35,10 +38,11 @@ coordinating:
35
38
 
36
39
  data:
37
40
  replicaCount: 3
38
- resources:
39
- requests:
40
- cpu: 2
41
- memory: 4Gi
41
+ # resources: # defaults from bitnami chart
42
+ # limits: {}
43
+ # requests:
44
+ # cpu: 25m
45
+ # memory: 2048Mi
42
46
  persistence:
43
47
  enabled: true
44
48
  size: 64Gi
@@ -59,6 +63,7 @@ data:
59
63
 
60
64
  ingest:
61
65
  replicaCount: 3
66
+ # no default resources specified
62
67
  affinity:
63
68
  nodeAffinity:
64
69
  requiredDuringSchedulingIgnoredDuringExecution:
@@ -76,6 +81,17 @@ ingest:
76
81
 
77
82
  master:
78
83
  replicaCount: 3
84
+ # resources: # example from the bitnami chart
85
+ # ## Example:
86
+ # ## limits:
87
+ # ## cpu: 500m
88
+ # ## memory: 1Gi
89
+ # limits: {}
90
+ # ## Examples:
91
+ # ## requests:
92
+ # ## cpu: 250m
93
+ # ## memory: 256Mi
94
+ # requests: {}
79
95
  affinity:
80
96
  nodeAffinity:
81
97
  requiredDuringSchedulingIgnoredDuringExecution:
@@ -90,15 +106,3 @@ master:
90
106
  operator: "Equal"
91
107
  value: "true"
92
108
  effect: "NoSchedule"
93
-
94
- # RecovR Prd Settings - very beefy on an n2-standard-8
95
- #
96
- # esJavaOpts: "-Xmx8g -Xms8g"
97
- #
98
- # resources:
99
- # requests:
100
- # cpu: "6250m"
101
- # memory: "16Gi"
102
- # limits:
103
- # cpu: "6750m"
104
- # memory: "20Gi"
@@ -3,8 +3,8 @@
3
3
  showInstalling "Prometheus"
4
4
 
5
5
  # the following two lines may be removed after reaching prom chart 25
6
- kubectl delete deploy -n monitoring -l app=prometheus,component=server &> $DEVNULL
7
- kubectl delete deploy -n monitoring -l app.kubernetes.io/name=prometheus &> $DEVNULL
6
+ [ -z "$HELM_WHAT" ] && kubectl delete deploy -n monitoring -l app=prometheus,component=server &> $DEVNULL
7
+ [ -z "$HELM_WHAT" ] && kubectl delete deploy -n monitoring -l app.kubernetes.io/name=prometheus &> $DEVNULL
8
8
 
9
9
  addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
10
10
 
@@ -0,0 +1,9 @@
1
+ image:
2
+ tag: # v1.3.5
3
+ # registry: gcr.io/leverege-docker-images # deprecated
4
+ # registry: us-docker.pkg.dev/leverege-registry/leverege/images
5
+
6
+ config:
7
+ pulseDelay: "1000"
8
+ LOG_CONFIG: '{"type":"pino","level":"warn"}'
9
+ IMAGINE_API_URL: "https://OVH:<PROJECT_ID>-imagine-api.OVH:<HOST>.com"
@@ -1,5 +1,5 @@
1
1
  image:
2
- tag: # v2.2.0
2
+ tag: # v2.2.1
3
3
 
4
4
  config:
5
5
  CF_TRANSPORT_CONFIG: '{
package/src/helmup.sh CHANGED
@@ -29,6 +29,13 @@ PLATFORM=(
29
29
  transponder-tsdb
30
30
  )
31
31
 
32
+ AUXILIARY=(
33
+ geotile-server
34
+ pubsub-pulse
35
+ push-notifier
36
+ vin-decoder-server
37
+ )
38
+
32
39
  SYSTEM=(
33
40
  elasticsearch8
34
41
  redis
@@ -42,6 +49,12 @@ SYSTEM=(
42
49
  monitoring # do monitoring last to show password
43
50
  )
44
51
 
52
+ function isLeveregeService() {
53
+ local answer=0
54
+ [[ ${PLATFORM[@]} =~ $1 || ${AUXILIARY[@]} =~ $1 ]] && answer=1
55
+ echo $answer
56
+ }
57
+
45
58
  # audit trail via slack
46
59
  # support for legacy bitnami charts
47
60
  function addBitnamiRepo() {
@@ -771,7 +784,7 @@ CATBACKUP
771
784
  *)
772
785
  # if the service dir is missing then check to see if it's a platform
773
786
  # service and if it is then try to bootstrap from charts in build-tools
774
- [[ ! -d $SERVICE && ${PLATFORM[@]} =~ $SERVICE ]] && bootstrapLocalSetup $SERVICE
787
+ [ ! -d $SERVICE ] && [[ $(isLeveregeService $SERVICE) -eq 1 ]] && bootstrapLocalSetup $SERVICE
775
788
 
776
789
  if [ ! -d $SERVICE ] || [ ! -f $SERVICE/values-local.yaml ];
777
790
  then