@leverege/build-tools 2.21.14 → 2.22.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/lib/server/build-tools.js +9 -0
- package/lib/server/overwhelm.js +10 -0
- package/lib/web/build-tools.js +9 -0
- package/lib/web/overwhelm.js +10 -0
- package/package.json +5 -5
- package/src/bash-funcs +1 -1
- package/src/build-tools.js +10 -0
- package/src/helmup +246 -174
- package/src/overwhelm.js +3 -0
- package/src/system-charts/elasticsearch-local.yaml +14 -0
- package/src/system-charts/elasticsearch.hup +18 -0
- package/src/system-charts/grafana-local.yaml +29 -0
- package/src/system-charts/grafana.hup +17 -0
- package/src/system-charts/postgres-local.yaml +39 -0
- package/src/system-charts/postgres.hup +11 -0
- package/src/system-charts/prometheus-local.yaml +792 -0
- package/src/system-charts/prometheus.hup +15 -0
- package/src/system-charts/redis-local.yaml +62 -0
- package/src/system-charts/redis.hup +12 -0
- package/src/system-charts/timescale-db-local.yaml +44 -0
- package/src/system-charts/timescale-db.hup +10 -0
- package/src/system-charts/traefik-local.yaml +13 -0
- package/src/system-charts/traefik.hup +13 -0
- package/leverege-build-tools-2.21.13.tgz +0 -0
|
@@ -28,6 +28,11 @@ const optionList = [
|
|
|
28
28
|
type: Boolean,
|
|
29
29
|
default: false,
|
|
30
30
|
description: 'source the output to define common bash helper functions'
|
|
31
|
+
}, {
|
|
32
|
+
name: 'reporoot',
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false,
|
|
35
|
+
description: 'the root of the build-tools repo - for finding other config files'
|
|
31
36
|
}, {
|
|
32
37
|
name: 'help',
|
|
33
38
|
type: Boolean,
|
|
@@ -68,6 +73,10 @@ if (args.bashfun) {
|
|
|
68
73
|
console.log(`${repoRoot}/src/bash-funcs`);
|
|
69
74
|
process.exit(0);
|
|
70
75
|
}
|
|
76
|
+
if (args.reporoot) {
|
|
77
|
+
console.log(`${repoRoot}`);
|
|
78
|
+
process.exit(0);
|
|
79
|
+
}
|
|
71
80
|
const checkForLatest = async (pkg = '@leverege/build-tools') => {
|
|
72
81
|
const getToken = () => {
|
|
73
82
|
const tokenFile = `${process.env.HOME}/.npmrc`;
|
package/lib/server/overwhelm.js
CHANGED
|
@@ -54,6 +54,13 @@ const optionsDefinitions = [/* eslint-disable no-multi-spaces */
|
|
|
54
54
|
default: false
|
|
55
55
|
},
|
|
56
56
|
// fetch and set k8s context
|
|
57
|
+
{
|
|
58
|
+
name: 'genvals',
|
|
59
|
+
alias: 'g',
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
// only generates values.yaml
|
|
57
64
|
{
|
|
58
65
|
name: 'matchk8s',
|
|
59
66
|
alias: 'm',
|
|
@@ -347,6 +354,9 @@ glob.sync('**/*.ovh').forEach(cfgmap => {
|
|
|
347
354
|
valuesOut = doReplacements(valuesOut, over);
|
|
348
355
|
fs.writeFileSync(target, valuesOut);
|
|
349
356
|
});
|
|
357
|
+
if (args.genvals) {
|
|
358
|
+
process.exit(0);
|
|
359
|
+
}
|
|
350
360
|
|
|
351
361
|
// Set the GCP context for safety!
|
|
352
362
|
const clusterName = over.CLUSTER_NAME;
|
package/lib/web/build-tools.js
CHANGED
|
@@ -28,6 +28,11 @@ const optionList = [
|
|
|
28
28
|
type: Boolean,
|
|
29
29
|
default: false,
|
|
30
30
|
description: 'source the output to define common bash helper functions'
|
|
31
|
+
}, {
|
|
32
|
+
name: 'reporoot',
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: false,
|
|
35
|
+
description: 'the root of the build-tools repo - for finding other config files'
|
|
31
36
|
}, {
|
|
32
37
|
name: 'help',
|
|
33
38
|
type: Boolean,
|
|
@@ -68,6 +73,10 @@ if (args.bashfun) {
|
|
|
68
73
|
console.log(`${repoRoot}/src/bash-funcs`);
|
|
69
74
|
process.exit(0);
|
|
70
75
|
}
|
|
76
|
+
if (args.reporoot) {
|
|
77
|
+
console.log(`${repoRoot}`);
|
|
78
|
+
process.exit(0);
|
|
79
|
+
}
|
|
71
80
|
const checkForLatest = async (pkg = '@leverege/build-tools') => {
|
|
72
81
|
const getToken = () => {
|
|
73
82
|
const tokenFile = `${process.env.HOME}/.npmrc`;
|
package/lib/web/overwhelm.js
CHANGED
|
@@ -54,6 +54,13 @@ const optionsDefinitions = [/* eslint-disable no-multi-spaces */
|
|
|
54
54
|
default: false
|
|
55
55
|
},
|
|
56
56
|
// fetch and set k8s context
|
|
57
|
+
{
|
|
58
|
+
name: 'genvals',
|
|
59
|
+
alias: 'g',
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: false
|
|
62
|
+
},
|
|
63
|
+
// only generates values.yaml
|
|
57
64
|
{
|
|
58
65
|
name: 'matchk8s',
|
|
59
66
|
alias: 'm',
|
|
@@ -347,6 +354,9 @@ glob.sync('**/*.ovh').forEach(cfgmap => {
|
|
|
347
354
|
valuesOut = doReplacements(valuesOut, over);
|
|
348
355
|
fs.writeFileSync(target, valuesOut);
|
|
349
356
|
});
|
|
357
|
+
if (args.genvals) {
|
|
358
|
+
process.exit(0);
|
|
359
|
+
}
|
|
350
360
|
|
|
351
361
|
// Set the GCP context for safety!
|
|
352
362
|
const clusterName = over.CLUSTER_NAME;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.22.1",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"parse-gitignore": "^2.0.0",
|
|
64
64
|
"readline-sync": "^1.4.10",
|
|
65
65
|
"semver": "^7.3.8",
|
|
66
|
-
"simple-git": "^3.
|
|
66
|
+
"simple-git": "^3.15.1",
|
|
67
67
|
"zx": "^7.1.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@babel/cli": "^7.
|
|
71
|
-
"@babel/core": "^7.20.
|
|
70
|
+
"@babel/cli": "^7.20.7",
|
|
71
|
+
"@babel/core": "^7.20.12",
|
|
72
72
|
"@leverege/babel-preset-leverege-node": "^2.0.0",
|
|
73
73
|
"@leverege/eslint-config-leverege": "^3.0.1",
|
|
74
|
-
"npm": "^
|
|
74
|
+
"npm": "^9.2.0"
|
|
75
75
|
}
|
|
76
76
|
}
|
package/src/bash-funcs
CHANGED
|
@@ -102,7 +102,7 @@ function addHelmRepo() {
|
|
|
102
102
|
Adding helm repo => $(color g "$chart") from $(color g "$url")
|
|
103
103
|
|
|
104
104
|
REPOADD
|
|
105
|
-
helm repo add $chart $url &> /dev/null
|
|
105
|
+
helm repo add --force-update $chart $url &> /dev/null
|
|
106
106
|
helm repo update &> /dev/null
|
|
107
107
|
}
|
|
108
108
|
|
package/src/build-tools.js
CHANGED
|
@@ -26,6 +26,11 @@ const optionList = [ // Use optionList to tie into the Usage statements
|
|
|
26
26
|
default : false,
|
|
27
27
|
description : 'source the output to define common bash helper functions',
|
|
28
28
|
},
|
|
29
|
+
{ name : 'reporoot',
|
|
30
|
+
type : Boolean,
|
|
31
|
+
default : false,
|
|
32
|
+
description : 'the root of the build-tools repo - for finding other config files',
|
|
33
|
+
},
|
|
29
34
|
{
|
|
30
35
|
name : 'help',
|
|
31
36
|
type : Boolean,
|
|
@@ -73,6 +78,11 @@ if ( args.bashfun ) {
|
|
|
73
78
|
process.exit( 0 )
|
|
74
79
|
}
|
|
75
80
|
|
|
81
|
+
if ( args.reporoot ) {
|
|
82
|
+
console.log( `${repoRoot}` )
|
|
83
|
+
process.exit( 0 )
|
|
84
|
+
}
|
|
85
|
+
|
|
76
86
|
const checkForLatest = async ( pkg = '@leverege/build-tools' ) => {
|
|
77
87
|
const getToken = () => {
|
|
78
88
|
const tokenFile = `${process.env.HOME}/.npmrc`
|