@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.
@@ -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( /[":\n\r]/g, '' )
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
@@ -106,4 +106,5 @@ NOGRESS
106
106
  }
107
107
 
108
108
  doNuking $@
109
+ printf "\nDoing => helm ls\n\n" && helm ls
109
110
  cd - &> /dev/null
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 $@
@@ -285,7 +285,8 @@ ahoy.forEach( ( dir ) => {
285
285
  if ( matchedCtx ) {
286
286
  console.log( `
287
287
 
288
- Your current context matches. Do you want to update credentials anyway?
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "1.10.5",
3
+ "version": "1.10.7",
4
4
  "description": "A package for development build tools.",
5
5
  "main": "index.js",
6
6
  "scripts": {
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( /[":\n\r]/g, '' )
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
@@ -106,4 +106,5 @@ NOGRESS
106
106
  }
107
107
 
108
108
  doNuking $@
109
+ printf "\nDoing => helm ls\n\n" && helm ls
109
110
  cd - &> /dev/null
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
- Your current context matches. Do you want to update credentials anyway?
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
  }