@leverege/build-tools 1.10.4 → 1.10.6
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/getfbcfg +2 -2
- package/lib/server/helmup +5 -3
- package/lib/server/overwhelm +2 -1
- package/package.json +1 -1
- package/src/getfbcfg +2 -2
- package/src/helmup +5 -3
- package/src/overwhelm +2 -1
package/lib/server/getfbcfg
CHANGED
|
@@ -8,14 +8,14 @@ let stdbuf = []
|
|
|
8
8
|
process.stdin
|
|
9
9
|
.on( 'data', ( d ) => { stdbuf.push( d ) } )
|
|
10
10
|
.on( 'end', () => {
|
|
11
|
-
const rawCfg = stdbuf.join( '' ).replace( /["
|
|
11
|
+
const rawCfg = stdbuf.join( '' ).replace( /["\n\r]/g, '' )
|
|
12
12
|
const keyVals = rawCfg.match(/\{(.*)\}/)[1].split(',')
|
|
13
13
|
|
|
14
14
|
const lastLine = keyVals.length - 1
|
|
15
15
|
console.log( "{" )
|
|
16
16
|
for( let i = 0; i <= lastLine; i++ ) {
|
|
17
17
|
const kv = keyVals[i].trim().split( ' ' )
|
|
18
|
-
console.log( ` "${kv[0]}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
18
|
+
console.log( ` "${kv[0].replace( /:/, '')}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
19
19
|
}
|
|
20
20
|
console.log( "}" )
|
|
21
21
|
|
package/lib/server/helmup
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
# to be turned into a cronjob to avoid having it run as soon as it gets
|
|
8
8
|
# deployed.
|
|
9
9
|
#
|
|
10
|
+
# printf "\nRUNNING LOCALLY\n" && sleep 2
|
|
10
11
|
PLATFORM=(
|
|
11
12
|
api-server
|
|
12
13
|
emailer
|
|
@@ -236,13 +237,14 @@ function doInstall() {
|
|
|
236
237
|
MUSEUM=$(<${OVERRIDE})
|
|
237
238
|
printf "\n$YELO_WARN Local chartmuseum name override from ${SERVICE} to ${MUSEUM}\n"
|
|
238
239
|
fi
|
|
239
|
-
helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml
|
|
240
|
+
helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml
|
|
240
241
|
if [ $? -ne 0 ];
|
|
241
242
|
then
|
|
242
243
|
cat<<NOTRUNNING
|
|
243
244
|
|
|
244
|
-
$RED_ERROR The $SERVICE chart failed to upgrade or install.
|
|
245
|
-
|
|
245
|
+
$RED_ERROR The $SERVICE chart failed to upgrade or install. There may be an
|
|
246
|
+
issue with the service's helm charts, or chartmuseum may not be
|
|
247
|
+
up and running? If the latter, try firing it up with:
|
|
246
248
|
|
|
247
249
|
chartmuseum \\
|
|
248
250
|
--port="8080" \\
|
package/lib/server/overwhelm
CHANGED
|
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
|
|
|
285
285
|
if ( matchedCtx ) {
|
|
286
286
|
console.log( `
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
Current context ${chalk.bold.green(currentCtx)} matches the desired
|
|
289
|
+
context. Do you want to update credentials anyway?
|
|
289
290
|
|
|
290
291
|
` )
|
|
291
292
|
}
|
package/package.json
CHANGED
package/src/getfbcfg
CHANGED
|
@@ -8,14 +8,14 @@ let stdbuf = []
|
|
|
8
8
|
process.stdin
|
|
9
9
|
.on( 'data', ( d ) => { stdbuf.push( d ) } )
|
|
10
10
|
.on( 'end', () => {
|
|
11
|
-
const rawCfg = stdbuf.join( '' ).replace( /["
|
|
11
|
+
const rawCfg = stdbuf.join( '' ).replace( /["\n\r]/g, '' )
|
|
12
12
|
const keyVals = rawCfg.match(/\{(.*)\}/)[1].split(',')
|
|
13
13
|
|
|
14
14
|
const lastLine = keyVals.length - 1
|
|
15
15
|
console.log( "{" )
|
|
16
16
|
for( let i = 0; i <= lastLine; i++ ) {
|
|
17
17
|
const kv = keyVals[i].trim().split( ' ' )
|
|
18
|
-
console.log( ` "${kv[0]}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
18
|
+
console.log( ` "${kv[0].replace( /:/, '')}": "${kv[1]}"${(i < lastLine ? ',' : '')}` )
|
|
19
19
|
}
|
|
20
20
|
console.log( "}" )
|
|
21
21
|
|
package/src/helmup
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
# to be turned into a cronjob to avoid having it run as soon as it gets
|
|
8
8
|
# deployed.
|
|
9
9
|
#
|
|
10
|
+
# printf "\nRUNNING LOCALLY\n" && sleep 2
|
|
10
11
|
PLATFORM=(
|
|
11
12
|
api-server
|
|
12
13
|
emailer
|
|
@@ -236,13 +237,14 @@ function doInstall() {
|
|
|
236
237
|
MUSEUM=$(<${OVERRIDE})
|
|
237
238
|
printf "\n$YELO_WARN Local chartmuseum name override from ${SERVICE} to ${MUSEUM}\n"
|
|
238
239
|
fi
|
|
239
|
-
helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml
|
|
240
|
+
helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml
|
|
240
241
|
if [ $? -ne 0 ];
|
|
241
242
|
then
|
|
242
243
|
cat<<NOTRUNNING
|
|
243
244
|
|
|
244
|
-
$RED_ERROR The $SERVICE chart failed to upgrade or install.
|
|
245
|
-
|
|
245
|
+
$RED_ERROR The $SERVICE chart failed to upgrade or install. There may be an
|
|
246
|
+
issue with the service's helm charts, or chartmuseum may not be
|
|
247
|
+
up and running? If the latter, try firing it up with:
|
|
246
248
|
|
|
247
249
|
chartmuseum \\
|
|
248
250
|
--port="8080" \\
|
package/src/overwhelm
CHANGED
|
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
|
|
|
285
285
|
if ( matchedCtx ) {
|
|
286
286
|
console.log( `
|
|
287
287
|
|
|
288
|
-
|
|
288
|
+
Current context ${chalk.bold.green(currentCtx)} matches the desired
|
|
289
|
+
context. Do you want to update credentials anyway?
|
|
289
290
|
|
|
290
291
|
` )
|
|
291
292
|
}
|