@leverege/build-tools 2.93.8 → 2.93.9
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 +2 -1
- package/src/chart-compass.mjs +22 -9
- package/src/chart-compass.yaml +23 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.93.
|
|
3
|
+
"version": "2.93.9",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"build-cnpg-image": "src/build-cnpg-image.mjs",
|
|
21
21
|
"build-tools": "src/build-tools.mjs",
|
|
22
22
|
"change-up": "src/change-up.sh",
|
|
23
|
+
"chart-compass": "src/chart-compass.mjs",
|
|
23
24
|
"chart-to-museum": "src/chart-to-museum.mjs",
|
|
24
25
|
"chart-to-registry": "src/chart-to-registry.mjs",
|
|
25
26
|
"circleate": "src/circleate.sh",
|
package/src/chart-compass.mjs
CHANGED
|
@@ -79,7 +79,7 @@ if ( args._unknown ) {
|
|
|
79
79
|
|
|
80
80
|
const minNodejsVersion = '22.13.0'
|
|
81
81
|
if ( semverLt( process.version, minNodejsVersion ) ) {
|
|
82
|
-
warning( `suggest upgrading to at least node ${minNodejsVersion}
|
|
82
|
+
warning( `suggest upgrading to at least node ${minNodejsVersion}\n` )
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
// First of all, fail if we are not in a git repository
|
|
@@ -116,20 +116,33 @@ const buildCompassMap = ( yamlFile ) => {
|
|
|
116
116
|
return chartCompass
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
const findChartUrl = ( config,
|
|
120
|
-
if ( !
|
|
121
|
-
errorExit( 'no chart name speficied' )
|
|
122
|
-
}
|
|
119
|
+
const findChartUrl = ( config, serviceName ) => {
|
|
120
|
+
if ( !serviceName ) errorExit( 'no chart name specified' )
|
|
123
121
|
|
|
124
122
|
for ( const entry of config ) {
|
|
125
123
|
const chartsPath = entry.charts_path || 'charts'
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
const repositories = entry.repositories || {}
|
|
125
|
+
|
|
126
|
+
for ( const [ repo, chartMap ] of Object.entries( repositories ) ) {
|
|
127
|
+
debug( { repo, chartMap }, `<== findChartUrl in repo ${repo}` )
|
|
128
|
+
|
|
129
|
+
for ( const [ chartKey, cfg ] of Object.entries( chartMap ) ) {
|
|
130
|
+
const chartCfg = cfg || {}
|
|
131
|
+
const chartArtifact = chartCfg.chart || chartKey
|
|
132
|
+
const aliases = chartCfg.aliases || []
|
|
133
|
+
|
|
134
|
+
const matches =
|
|
135
|
+
serviceName === chartKey ||
|
|
136
|
+
serviceName === chartArtifact ||
|
|
137
|
+
aliases.includes( serviceName )
|
|
138
|
+
|
|
139
|
+
if ( matches ) {
|
|
140
|
+
return `${entry.registry}/${repo}/${chartsPath}/${chartArtifact}`
|
|
141
|
+
}
|
|
130
142
|
}
|
|
131
143
|
}
|
|
132
144
|
}
|
|
145
|
+
|
|
133
146
|
return undefined
|
|
134
147
|
}
|
|
135
148
|
|
package/src/chart-compass.yaml
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
1
|
- registry: us-docker.pkg.dev/leverege-registry
|
|
2
|
+
charts_path: charts
|
|
2
3
|
repositories:
|
|
3
4
|
stack:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
5
|
+
api-server: {}
|
|
6
|
+
authz-server: {}
|
|
7
|
+
db-curator: {}
|
|
8
|
+
emailer: {}
|
|
9
|
+
imagine: {}
|
|
10
|
+
message-processor: {}
|
|
11
|
+
messenger: {}
|
|
12
|
+
reason: {}
|
|
13
|
+
resource-server: {}
|
|
14
|
+
rule-enginer: {}
|
|
15
|
+
scheduler: {}
|
|
16
|
+
|
|
17
|
+
transponder:
|
|
18
|
+
aliases:
|
|
19
|
+
- transponder-bq
|
|
20
|
+
- transponder-dh
|
|
21
|
+
- transponder-rt
|
|
22
|
+
- transponder-tsdb
|
|
23
|
+
|
|
19
24
|
leverege:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
pubsub-pulse: {}
|
|
26
|
+
pusher: {}
|
|
27
|
+
overdose: {}
|