@leverege/build-tools 1.10.5 → 1.10.7
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/helmdn +1 -0
- package/lib/server/helmup +10 -0
- package/lib/server/overwhelm +2 -1
- package/package.json +1 -1
- package/src/getfbcfg +2 -2
- package/src/helmdn +1 -0
- package/src/helmup +10 -0
- 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/helmdn
CHANGED
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
|
|
@@ -21,6 +22,7 @@ PLATFORM=(
|
|
|
21
22
|
)
|
|
22
23
|
|
|
23
24
|
SYSTEM=(
|
|
25
|
+
coredns
|
|
24
26
|
descheduler
|
|
25
27
|
disks
|
|
26
28
|
elastic
|
|
@@ -171,6 +173,11 @@ function doInstall() {
|
|
|
171
173
|
doInstall "${SYSTEM[@]}"
|
|
172
174
|
;;
|
|
173
175
|
|
|
176
|
+
"coredns")
|
|
177
|
+
helm install --name coredns --namespace=kube-system stable/coredns
|
|
178
|
+
printf "\nGithub repo is here => https://github.com/helm/charts/tree/master/stable/coredns\n\n"
|
|
179
|
+
;;
|
|
180
|
+
|
|
174
181
|
"descheduler")
|
|
175
182
|
helm repo add akomljen-charts https://raw.githubusercontent.com/komljen/helm-charts/master/charts/
|
|
176
183
|
helm upgrade --install descheduler akomljen-charts/descheduler --set schedule="*/15 * * * *",deschedulerPolicy.strategies.RemovePodsViolatingNodeAffinity.params.nodeAffinityType={preferredDuringSchedulingIgnoredDuringExecution}
|
|
@@ -257,6 +264,9 @@ NOTRUNNING
|
|
|
257
264
|
;;
|
|
258
265
|
esac
|
|
259
266
|
done
|
|
267
|
+
|
|
268
|
+
printf "\nRunning => helm ls\n\n"
|
|
269
|
+
helm ls
|
|
260
270
|
}
|
|
261
271
|
|
|
262
272
|
doInstall $@
|
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/helmdn
CHANGED
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
|
|
@@ -21,6 +22,7 @@ PLATFORM=(
|
|
|
21
22
|
)
|
|
22
23
|
|
|
23
24
|
SYSTEM=(
|
|
25
|
+
coredns
|
|
24
26
|
descheduler
|
|
25
27
|
disks
|
|
26
28
|
elastic
|
|
@@ -171,6 +173,11 @@ function doInstall() {
|
|
|
171
173
|
doInstall "${SYSTEM[@]}"
|
|
172
174
|
;;
|
|
173
175
|
|
|
176
|
+
"coredns")
|
|
177
|
+
helm install --name coredns --namespace=kube-system stable/coredns
|
|
178
|
+
printf "\nGithub repo is here => https://github.com/helm/charts/tree/master/stable/coredns\n\n"
|
|
179
|
+
;;
|
|
180
|
+
|
|
174
181
|
"descheduler")
|
|
175
182
|
helm repo add akomljen-charts https://raw.githubusercontent.com/komljen/helm-charts/master/charts/
|
|
176
183
|
helm upgrade --install descheduler akomljen-charts/descheduler --set schedule="*/15 * * * *",deschedulerPolicy.strategies.RemovePodsViolatingNodeAffinity.params.nodeAffinityType={preferredDuringSchedulingIgnoredDuringExecution}
|
|
@@ -257,6 +264,9 @@ NOTRUNNING
|
|
|
257
264
|
;;
|
|
258
265
|
esac
|
|
259
266
|
done
|
|
267
|
+
|
|
268
|
+
printf "\nRunning => helm ls\n\n"
|
|
269
|
+
helm ls
|
|
260
270
|
}
|
|
261
271
|
|
|
262
272
|
doInstall $@
|
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
|
}
|