@leverege/build-tools 2.50.14 → 2.50.15
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.50.
|
|
3
|
+
"version": "2.50.15",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"command-line-usage": "^7.0.1",
|
|
62
62
|
"deepmerge": "^4.3.1",
|
|
63
63
|
"enquirer": "^2.4.1",
|
|
64
|
-
"execa": "^9.
|
|
64
|
+
"execa": "^9.2.0",
|
|
65
65
|
"glob": "^10.4.1",
|
|
66
66
|
"handlebars": "^4.7.8",
|
|
67
67
|
"inquirer": "^9.2.23",
|
|
68
68
|
"js-yaml": "^4.1.0",
|
|
69
69
|
"ms": "^2.1.3",
|
|
70
|
-
"npm-registry-fetch": "^17.0
|
|
70
|
+
"npm-registry-fetch": "^17.1.0",
|
|
71
71
|
"package-up": "^5.0.0",
|
|
72
72
|
"parse-gitignore": "^2.0.0",
|
|
73
73
|
"read-pkg": "^9.0.1",
|
|
74
74
|
"readline-sync": "^1.4.10",
|
|
75
75
|
"semver": "^7.6.2",
|
|
76
|
-
"simple-git": "^3.
|
|
76
|
+
"simple-git": "^3.25.0",
|
|
77
77
|
"zx": "^8.1.2"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
@@ -4,7 +4,7 @@ showInstalling "Grafana"
|
|
|
4
4
|
|
|
5
5
|
addHelmRepo grafana https://grafana.github.io/helm-charts
|
|
6
6
|
|
|
7
|
-
[ -z "$GRAFANA_CHART_VERSION" ] && GRAFANA_CHART_VERSION="
|
|
7
|
+
[ -z "$GRAFANA_CHART_VERSION" ] && GRAFANA_CHART_VERSION="8"
|
|
8
8
|
helm upgrade --install grafana grafana/grafana \
|
|
9
9
|
--namespace monitoring --create-namespace \
|
|
10
10
|
--values grafana/grafana-local.yaml \
|
|
@@ -4,7 +4,7 @@ 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="19.5.
|
|
7
|
+
[ -z "$REDIS_CHART_VERSION" ] && REDIS_CHART_VERSION="19.5.4"
|
|
8
8
|
|
|
9
9
|
helm upgrade --install redis $OCI_CHART \
|
|
10
10
|
--values redis/redis-local.yaml \
|
package/src/overwhelm.mjs
CHANGED
|
@@ -74,6 +74,13 @@ if ( fs.existsSync( 'values-default.yaml' ) ) {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
// Avoid race condition when running overwhelm for the first time on a new
|
|
78
|
+
// cluster and the default-configs.yaml file has yet to be created.
|
|
79
|
+
const defaultConfigs = 'default-configs.yaml'
|
|
80
|
+
if ( !fs.existsSync( defaultConfigs ) ) {
|
|
81
|
+
fs.closeSync( fs.openSync( defaultConfigs, 'w' ) ) // same as unix touch
|
|
82
|
+
}
|
|
83
|
+
|
|
77
84
|
// Load the default values and then overlay with the project specific yaml
|
|
78
85
|
// values. This supports the notion of this type of approach in the
|
|
79
86
|
// overwhelm yaml settings:
|
|
@@ -201,7 +208,7 @@ const doReplacements = ( yamls, replacements ) => {
|
|
|
201
208
|
|
|
202
209
|
// Collect all of the yaml from the yams...
|
|
203
210
|
const buildYaml = ( yamls, replacements ) => {
|
|
204
|
-
const always = [
|
|
211
|
+
const always = [ defaultConfigs ]
|
|
205
212
|
const values = [ ...always, ...yamls ]
|
|
206
213
|
const loaded = []
|
|
207
214
|
let allYamls = ''
|