@leverege/build-tools 2.18.3-beta.1 → 2.19.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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.18.3-beta.1",
3
+ "version": "2.19.1",
4
4
  "description": "A collection of build / support tools for Leverege developers",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -74,11 +74,11 @@
74
74
  "zx": "^7.0.7"
75
75
  },
76
76
  "devDependencies": {
77
- "@babel/cli": "^7.18.6",
78
- "@babel/core": "^7.18.6",
79
- "@babel/node": "^7.18.6",
77
+ "@babel/cli": "^7.18.9",
78
+ "@babel/core": "^7.18.9",
79
+ "@babel/node": "^7.18.9",
80
80
  "@leverege/babel-preset-leverege-node": "^2.0.0",
81
81
  "@leverege/eslint-config-leverege": "^3.0.1",
82
- "npm": "^8.13.2"
82
+ "npm": "^8.14.0"
83
83
  }
84
84
  }
package/src/dockreate CHANGED
@@ -156,6 +156,11 @@ alias inf='wget -q -O- localhost:5111/logLevel/info'
156
156
  alias dbg='wget -q -O- localhost:5111/logLevel/debug'
157
157
  alias trc='wget -q -O- localhost:5111/logLevel/trace'
158
158
 
159
+ socks()
160
+ {
161
+ netstat -ant | awk '{print $6}' | sort | uniq -c | sort -n
162
+ }
163
+
159
164
  cmetrics()
160
165
  {
161
166
  wget -qO- localhost:5111/metrics
package/src/helmup CHANGED
@@ -140,15 +140,24 @@ function createNamespaceIfNeeded(){
140
140
  function installPrometheus() {
141
141
  # Add the community helm repositories
142
142
  addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
143
- [ -z "$PROMETHEUS_HELM_CHART" ] && PROMETHEUS_HELM_CHART="13"
143
+ [ -z "$PROMETHEUS_HELM_CHART" ] && PROMETHEUS_HELM_CHART="15"
144
144
  helm upgrade --install prometheus prometheus-community/prometheus \
145
145
  --namespace monitoring \
146
146
  --values prometheus/values.yaml \
147
147
  --version $PROMETHEUS_HELM_CHART
148
-
149
148
  removeHelmRepo prometheus-community
150
149
  }
151
150
 
151
+ function installGrafana() {
152
+ ## Install Grafana
153
+ addHelmRepo grafana https://grafana.github.io/helm-charts
154
+ helm upgrade --install grafana grafana/grafana \
155
+ --namespace monitoring \
156
+ --values grafana/values-grafana.yaml \
157
+ --version 6 # latest v8 grafana
158
+ removeHelmRepo grafana
159
+ }
160
+
152
161
  function installRedis() {
153
162
  showInstalling "Redis Network Cache"
154
163
  addBitnamiRepo latest
@@ -314,15 +323,10 @@ SA_EXISTS
314
323
  --version 4.13
315
324
 
316
325
  ## Install Grafana
317
- addHelmRepo grafana https://grafana.github.io/helm-charts
318
- helm upgrade --install grafana grafana/grafana \
319
- --namespace monitoring \
320
- --values grafana/values-grafana.yaml \
321
- --version 6 # latest v8 grafana
326
+ installGrafana
322
327
 
323
328
  ## Clean up
324
329
  removeHelmRepo prometheus-community
325
- removeHelmRepo grafana
326
330
  }
327
331
 
328
332
  function monitoringHelp(){
@@ -472,7 +476,7 @@ metadata:
472
476
  name: cron-zombie-killer
473
477
  spec:
474
478
  schedule: "*/4 * * * *"
475
- successfulJobsHistoryLimit: 1
479
+ successfulJobsHistoryLimit: 0
476
480
  jobTemplate:
477
481
  spec:
478
482
  template:
@@ -891,6 +895,10 @@ function doInstall() {
891
895
  installPreemptibleKiller # the gke preemptible node spreader outer
892
896
  ;;
893
897
 
898
+ "grafana")
899
+ installGrafana
900
+ ;;
901
+
894
902
  "monitoring")
895
903
  installMonitoringCharts
896
904
  monitoringHelp