@leverege/build-tools 2.5.38 → 2.5.40
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/helmify/index.js +0 -0
- package/lib/server/overwhelm.js +18 -1
- package/lib/server/repo-init/config.tgz +0 -0
- package/lib/server/repo-init/gitter/RepoHosting.js +1 -1
- package/lib/server/repo-init/index.js +0 -0
- package/lib/web/overwhelm.js +18 -1
- package/package.json +9 -9
- package/src/helminit-dp +0 -0
- package/src/helminit-scaler +0 -0
- package/src/helminit-svc +0 -0
- package/src/helmup +1 -1
- package/src/overwhelm.js +12 -0
|
File without changes
|
package/lib/server/overwhelm.js
CHANGED
|
@@ -8,6 +8,8 @@ const chalk = require('chalk');
|
|
|
8
8
|
const cliArgs = require('command-line-args'); // const cliHelp = require( 'command-line-usage' )
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
const deepmerge = require('deepmerge');
|
|
12
|
+
|
|
11
13
|
const exec = require('child_process').execSync;
|
|
12
14
|
|
|
13
15
|
const fs = require('fs');
|
|
@@ -270,7 +272,22 @@ ahoy.forEach(dir => {
|
|
|
270
272
|
}
|
|
271
273
|
|
|
272
274
|
valuesOut += `\n${values}`;
|
|
273
|
-
valuesOut = doReplacements(valuesOut, over);
|
|
275
|
+
valuesOut = doReplacements(valuesOut, over); // If we are going to override then we need to convert it to YAML and
|
|
276
|
+
// do a deepmerge to combine the values.
|
|
277
|
+
|
|
278
|
+
const valuesOverride = `${dir}/values-override.yaml`;
|
|
279
|
+
|
|
280
|
+
if (fs.existsSync(valuesOverride)) {
|
|
281
|
+
console.log(`===>Applying Overrides=> ${valuesOverride}`);
|
|
282
|
+
const overrides = YAML.load(fs.readFileSync(valuesOverride, {
|
|
283
|
+
encofind: 'utf-8'
|
|
284
|
+
}));
|
|
285
|
+
const allValues = YAML.load(valuesOut);
|
|
286
|
+
valuesOut = YAML.dump(deepmerge(allValues, overrides), {
|
|
287
|
+
quotingType: '"'
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
274
291
|
fs.writeFileSync(`${dir}/values.yaml`, valuesOut);
|
|
275
292
|
}
|
|
276
293
|
}); // we can also apply replaceables to any top level .ovh files to support top level config maps
|
|
Binary file
|
|
@@ -60,7 +60,7 @@ const build = async buildSpec => {
|
|
|
60
60
|
console.log(`${chalk.keyword('orange').bold(`
|
|
61
61
|
Before proceeding you will want to verify that your browser has access to the
|
|
62
62
|
git hosting service you are about to use. The easiest way to do this is to
|
|
63
|
-
simply open a browser window on
|
|
63
|
+
simply open a browser window on bitbucket or github with the desired account.
|
|
64
64
|
|
|
65
65
|
Once you proceed from this step a browser window will be opened and you will
|
|
66
66
|
enter the relevant information into the repository creation page. Click the
|
|
File without changes
|
package/lib/web/overwhelm.js
CHANGED
|
@@ -8,6 +8,8 @@ const chalk = require('chalk');
|
|
|
8
8
|
const cliArgs = require('command-line-args'); // const cliHelp = require( 'command-line-usage' )
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
const deepmerge = require('deepmerge');
|
|
12
|
+
|
|
11
13
|
const exec = require('child_process').execSync;
|
|
12
14
|
|
|
13
15
|
const fs = require('fs');
|
|
@@ -270,7 +272,22 @@ ahoy.forEach(dir => {
|
|
|
270
272
|
}
|
|
271
273
|
|
|
272
274
|
valuesOut += `\n${values}`;
|
|
273
|
-
valuesOut = doReplacements(valuesOut, over);
|
|
275
|
+
valuesOut = doReplacements(valuesOut, over); // If we are going to override then we need to convert it to YAML and
|
|
276
|
+
// do a deepmerge to combine the values.
|
|
277
|
+
|
|
278
|
+
const valuesOverride = `${dir}/values-override.yaml`;
|
|
279
|
+
|
|
280
|
+
if (fs.existsSync(valuesOverride)) {
|
|
281
|
+
console.log(`===>Applying Overrides=> ${valuesOverride}`);
|
|
282
|
+
const overrides = YAML.load(fs.readFileSync(valuesOverride, {
|
|
283
|
+
encofind: 'utf-8'
|
|
284
|
+
}));
|
|
285
|
+
const allValues = YAML.load(valuesOut);
|
|
286
|
+
valuesOut = YAML.dump(deepmerge(allValues, overrides), {
|
|
287
|
+
quotingType: '"'
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
274
291
|
fs.writeFileSync(`${dir}/values.yaml`, valuesOut);
|
|
275
292
|
}
|
|
276
293
|
}); // we can also apply replaceables to any top level .ovh files to support top level config maps
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.40",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -55,30 +55,30 @@
|
|
|
55
55
|
"clipboardy": "^2.3.0",
|
|
56
56
|
"command-line-args": "^5.1.1",
|
|
57
57
|
"command-line-usage": "^6.1.1",
|
|
58
|
-
"dotenv": "^
|
|
58
|
+
"dotenv": "^9.0.2",
|
|
59
59
|
"execa": "^5.0.0",
|
|
60
60
|
"figlet": "^1.5.0",
|
|
61
61
|
"git-branch": "^2.0.1",
|
|
62
|
-
"glob": "^7.1.
|
|
62
|
+
"glob": "^7.1.7",
|
|
63
63
|
"inquirer": "^7.3.3",
|
|
64
64
|
"js-yaml": "^4.1.0",
|
|
65
65
|
"kubernetes-client": "^9.0.0",
|
|
66
66
|
"ncp": "^2.0.0",
|
|
67
|
-
"npm-check-updates": "^11.5.
|
|
67
|
+
"npm-check-updates": "^11.5.12",
|
|
68
68
|
"npm-registry-fetch": "^9.0.0",
|
|
69
|
-
"open": "^8.0.
|
|
69
|
+
"open": "^8.0.8",
|
|
70
70
|
"ora": "^5.4.0",
|
|
71
71
|
"parse-gitignore": "^1.0.1",
|
|
72
72
|
"readline-sync": "^1.4.10",
|
|
73
73
|
"semver": "^7.3.5",
|
|
74
|
-
"simple-git": "^2.
|
|
74
|
+
"simple-git": "^2.39.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@babel/cli": "^7.13.16",
|
|
78
|
-
"@babel/core": "^7.
|
|
79
|
-
"@babel/node": "^7.
|
|
78
|
+
"@babel/core": "^7.14.2",
|
|
79
|
+
"@babel/node": "^7.14.2",
|
|
80
80
|
"@leverege/babel-preset-leverege-node": "^1.1.1",
|
|
81
81
|
"@leverege/eslint-config-leverege": "^2.2.0",
|
|
82
|
-
"npm": "^7.
|
|
82
|
+
"npm": "^7.13.0"
|
|
83
83
|
}
|
|
84
84
|
}
|
package/src/helminit-dp
CHANGED
|
File without changes
|
package/src/helminit-scaler
CHANGED
|
File without changes
|
package/src/helminit-svc
CHANGED
|
File without changes
|
package/src/helmup
CHANGED
|
@@ -398,7 +398,7 @@ function ifPluggedIn() {
|
|
|
398
398
|
if [ ! -x $PLUGIN ];
|
|
399
399
|
then
|
|
400
400
|
cat<<PLUGIN_NOEXEC
|
|
401
|
-
$RED_ERROR The plugin file is
|
|
401
|
+
$RED_ERROR The plugin file is present but is not executable.
|
|
402
402
|
Try running => `color y "chmod +x $PLUGIN"`
|
|
403
403
|
|
|
404
404
|
PLUGIN_NOEXEC
|
package/src/overwhelm.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
const chalk = require( 'chalk' )
|
|
6
6
|
const cliArgs = require( 'command-line-args' )
|
|
7
7
|
// const cliHelp = require( 'command-line-usage' )
|
|
8
|
+
const deepmerge = require( 'deepmerge' )
|
|
8
9
|
const exec = require( 'child_process' ).execSync
|
|
9
10
|
const fs = require( 'fs' )
|
|
10
11
|
const glob = require( 'glob' )
|
|
@@ -225,6 +226,17 @@ ahoy.forEach( ( dir ) => {
|
|
|
225
226
|
valuesOut += `\n${values}`
|
|
226
227
|
valuesOut = doReplacements( valuesOut, over )
|
|
227
228
|
|
|
229
|
+
// If we are going to override then we need to convert it to YAML and
|
|
230
|
+
// do a deepmerge to combine the values.
|
|
231
|
+
const valuesOverride = `${dir}/values-override.yaml`
|
|
232
|
+
|
|
233
|
+
if( fs.existsSync( valuesOverride ) ) {
|
|
234
|
+
console.log( `===>Applying Overrides=> ${valuesOverride}` )
|
|
235
|
+
const overrides = YAML.load( fs.readFileSync( valuesOverride, { encofind : 'utf-8' } ))
|
|
236
|
+
const allValues = YAML.load( valuesOut )
|
|
237
|
+
valuesOut = YAML.dump( deepmerge( allValues, overrides ), { quotingType : '"' } )
|
|
238
|
+
}
|
|
239
|
+
|
|
228
240
|
fs.writeFileSync( `${dir}/values.yaml`, valuesOut )
|
|
229
241
|
}
|
|
230
242
|
} )
|