@leverege/build-tools 2.19.0 → 2.19.2
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/lib/server/overwhelm.js +2 -1
- package/lib/server/repo-init/config.tgz +0 -0
- package/lib/web/overwhelm.js +2 -1
- package/package.json +7 -7
- package/src/helmup +15 -7
- package/src/overwhelm.js +2 -1
package/lib/server/overwhelm.js
CHANGED
|
@@ -276,8 +276,9 @@ if (args.key) {
|
|
|
276
276
|
} // Find all of the potential target dirs. Utilize .gitignore to ignore files
|
|
277
277
|
|
|
278
278
|
|
|
279
|
+
const gitignore = parse(fs.readFileSync('.gitignore'));
|
|
279
280
|
const opt = {
|
|
280
|
-
ignore:
|
|
281
|
+
ignore: gitignore.patterns
|
|
281
282
|
};
|
|
282
283
|
const ahoy = glob.sync('*/', opt); // .noahoy = skips generation of values.yaml but allows helmup to run
|
|
283
284
|
// .nohelm = overwhelm and helmup will skip the deployment entirely
|
|
Binary file
|
package/lib/web/overwhelm.js
CHANGED
|
@@ -276,8 +276,9 @@ if (args.key) {
|
|
|
276
276
|
} // Find all of the potential target dirs. Utilize .gitignore to ignore files
|
|
277
277
|
|
|
278
278
|
|
|
279
|
+
const gitignore = parse(fs.readFileSync('.gitignore'));
|
|
279
280
|
const opt = {
|
|
280
|
-
ignore:
|
|
281
|
+
ignore: gitignore.patterns
|
|
281
282
|
};
|
|
282
283
|
const ahoy = glob.sync('*/', opt); // .noahoy = skips generation of values.yaml but allows helmup to run
|
|
283
284
|
// .nohelm = overwhelm and helmup will skip the deployment entirely
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.19.
|
|
3
|
+
"version": "2.19.2",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"enquirer": "^2.3.6",
|
|
61
61
|
"execa": "^5.1.1",
|
|
62
62
|
"figlet": "^1.5.2",
|
|
63
|
-
"glob": "^
|
|
63
|
+
"glob": "^8.0.3",
|
|
64
64
|
"inquirer": "^8.2.4",
|
|
65
65
|
"js-yaml": "^4.1.0",
|
|
66
66
|
"ncp": "^2.0.0",
|
|
67
|
-
"npm-registry-fetch": "^
|
|
67
|
+
"npm-registry-fetch": "^13.3.0",
|
|
68
68
|
"open": "^8.4.0",
|
|
69
69
|
"ora": "^5.4.1",
|
|
70
|
-
"parse-gitignore": "^
|
|
70
|
+
"parse-gitignore": "^2.0.0",
|
|
71
71
|
"readline-sync": "^1.4.10",
|
|
72
72
|
"semver": "^7.3.7",
|
|
73
73
|
"simple-git": "^3.10.0",
|
|
74
74
|
"zx": "^7.0.7"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/cli": "^7.18.
|
|
78
|
-
"@babel/core": "^7.18.
|
|
79
|
-
"@babel/node": "^7.18.
|
|
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
82
|
"npm": "^8.14.0"
|
package/src/helmup
CHANGED
|
@@ -145,10 +145,19 @@ function installPrometheus() {
|
|
|
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
|
-
|
|
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(){
|
|
@@ -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
|
package/src/overwhelm.js
CHANGED
|
@@ -221,8 +221,9 @@ if ( args.key ) {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
// Find all of the potential target dirs. Utilize .gitignore to ignore files
|
|
224
|
+
const gitignore = parse( fs.readFileSync( '.gitignore' ) )
|
|
224
225
|
const opt = {
|
|
225
|
-
ignore :
|
|
226
|
+
ignore : gitignore.patterns,
|
|
226
227
|
}
|
|
227
228
|
|
|
228
229
|
const ahoy = glob.sync( '*/', opt )
|