@leverege/build-tools 1.11.1 → 1.11.3

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/helmdn CHANGED
@@ -52,7 +52,6 @@ PLATFORM=(
52
52
  )
53
53
 
54
54
  SYSTEM=(
55
- descheduler
56
55
  elastic
57
56
  monitoring
58
57
  polaris
package/lib/server/helmup CHANGED
@@ -23,7 +23,6 @@ PLATFORM=(
23
23
 
24
24
  SYSTEM=(
25
25
  coredns
26
- descheduler
27
26
  disks
28
27
  elastic
29
28
  monitoring
@@ -82,7 +81,7 @@ KEELNEEDS
82
81
  }
83
82
 
84
83
  function createSSDYAML(){
85
- cat<<EOSSD > k8-utils/ssd-storageclass.yaml
84
+ cat<<EOSSD > ${K8S_UTILS}/ssd-storageclass.yaml
86
85
  apiVersion: storage.k8s.io/v1
87
86
  kind: StorageClass
88
87
  metadata:
@@ -97,10 +96,10 @@ function checkSSDStorageClass(){
97
96
  kubectl get storageclass ssd
98
97
  if [[ $? -eq 1 ]]; then
99
98
  printf "\n*** SSD Storage Class not defined ***\n\n"
100
- if [ ! -f k8-utils/ssd-storageclass.yaml ]; then
99
+ if [ ! -f ${K8S_UTILS}/ssd-storageclass.yaml ]; then
101
100
  createSSDYAML
102
101
  fi
103
- kubectl apply -f k8-utils/ssd-storageclass.yaml
102
+ kubectl apply -f ${K8S_UTILS}/ssd-storageclass.yaml
104
103
  fi
105
104
 
106
105
  printf "\n*** Attaching PVC to SSD Class ***\n\n"
@@ -224,8 +223,22 @@ NOMUSEUM
224
223
  exit 1
225
224
  fi
226
225
 
227
- GITTOP=`git rev-parse --show-toplevel`
228
- cd $GITTOP
226
+ GITTOP=`git rev-parse --show-toplevel` && cd $GITTOP
227
+ K8S_UTILS="${GITTOP}/k8s-utils"
228
+ if [ ! -d "$K8S_UTILS" ];
229
+ then
230
+ cat<<EOK8S
231
+
232
+ $RED_ERROR Missing the k8s utils dir => `color y $K8S_UTILS`
233
+
234
+ This is a relatively new directory setup that should be copied over from one
235
+ of the other configuration branches. The new-baseline branch should have this
236
+ setup in place, so check there.
237
+
238
+ EOK8S
239
+
240
+ exit 1
241
+ fi
229
242
 
230
243
  npm run ahoy
231
244
  [ $? -ne 0 ] && printf "\n\n***Aborting helmup...\n\n" && exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "1.11.1",
3
+ "version": "1.11.3",
4
4
  "description": "A package for development build tools.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/src/helmdn CHANGED
@@ -52,7 +52,6 @@ PLATFORM=(
52
52
  )
53
53
 
54
54
  SYSTEM=(
55
- descheduler
56
55
  elastic
57
56
  monitoring
58
57
  polaris
package/src/helmup CHANGED
@@ -23,7 +23,6 @@ PLATFORM=(
23
23
 
24
24
  SYSTEM=(
25
25
  coredns
26
- descheduler
27
26
  disks
28
27
  elastic
29
28
  monitoring
@@ -82,7 +81,7 @@ KEELNEEDS
82
81
  }
83
82
 
84
83
  function createSSDYAML(){
85
- cat<<EOSSD > k8-utils/ssd-storageclass.yaml
84
+ cat<<EOSSD > ${K8S_UTILS}/ssd-storageclass.yaml
86
85
  apiVersion: storage.k8s.io/v1
87
86
  kind: StorageClass
88
87
  metadata:
@@ -97,10 +96,10 @@ function checkSSDStorageClass(){
97
96
  kubectl get storageclass ssd
98
97
  if [[ $? -eq 1 ]]; then
99
98
  printf "\n*** SSD Storage Class not defined ***\n\n"
100
- if [ ! -f k8-utils/ssd-storageclass.yaml ]; then
99
+ if [ ! -f ${K8S_UTILS}/ssd-storageclass.yaml ]; then
101
100
  createSSDYAML
102
101
  fi
103
- kubectl apply -f k8-utils/ssd-storageclass.yaml
102
+ kubectl apply -f ${K8S_UTILS}/ssd-storageclass.yaml
104
103
  fi
105
104
 
106
105
  printf "\n*** Attaching PVC to SSD Class ***\n\n"
@@ -224,8 +223,22 @@ NOMUSEUM
224
223
  exit 1
225
224
  fi
226
225
 
227
- GITTOP=`git rev-parse --show-toplevel`
228
- cd $GITTOP
226
+ GITTOP=`git rev-parse --show-toplevel` && cd $GITTOP
227
+ K8S_UTILS="${GITTOP}/k8s-utils"
228
+ if [ ! -d "$K8S_UTILS" ];
229
+ then
230
+ cat<<EOK8S
231
+
232
+ $RED_ERROR Missing the k8s utils dir => `color y $K8S_UTILS`
233
+
234
+ This is a relatively new directory setup that should be copied over from one
235
+ of the other configuration branches. The new-baseline branch should have this
236
+ setup in place, so check there.
237
+
238
+ EOK8S
239
+
240
+ exit 1
241
+ fi
229
242
 
230
243
  npm run ahoy
231
244
  [ $? -ne 0 ] && printf "\n\n***Aborting helmup...\n\n" && exit 1