@leverege/build-tools 2.0.6 → 2.0.8

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/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [2.0.0] - 2020-02-12
5
+ ### Added
6
+ - (encrypt/decrypt) Allow for external KMS (BREAKING!!!)
7
+
4
8
  ## [1.6.3] - 2019-07-02
5
9
  ### Added
6
10
  - (pkglint) Added pkglint check for valid files
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "A package for development build tools.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,7 +33,7 @@
33
33
  "author": "Leverege Devs",
34
34
  "license": "SEE LICENSE IN LICENSE.md",
35
35
  "dependencies": {
36
- "@google-cloud/kms": "^1.6.2",
36
+ "@google-cloud/kms": "^1.6.3",
37
37
  "async": "^3.1.1",
38
38
  "chalk": "^3.0.0",
39
39
  "cloudflare": "^2.7.0",
@@ -53,13 +53,13 @@
53
53
  "tar": "^5.0.5"
54
54
  },
55
55
  "devDependencies": {
56
- "@babel/cli": "^7.8.3",
57
- "@babel/core": "^7.8.3",
56
+ "@babel/cli": "^7.8.4",
57
+ "@babel/core": "^7.8.4",
58
58
  "@babel/plugin-proposal-class-properties": "^7.8.3",
59
59
  "@babel/plugin-proposal-optional-chaining": "^7.8.3",
60
- "@babel/preset-env": "^7.8.3",
60
+ "@babel/preset-env": "^7.8.4",
61
61
  "@babel/register": "^7.8.3",
62
- "@leverege/eslint-config-leverege": "^2.0.7",
62
+ "@leverege/eslint-config-leverege": "^2.0.8",
63
63
  "core-js": "^3.6.4"
64
64
  }
65
65
  }
package/src/helmify CHANGED
@@ -7,23 +7,6 @@ if ! [ -x "$(command -v helm)" ]; then
7
7
  exit 1
8
8
  fi
9
9
 
10
- # Check if Chart Museum is installed
11
- if ! [ -x "$(command -v chartmuseum)" ]; then
12
- echo 'Error: chartmuseum is not installed.'
13
- echo 'To install: see instructions at https://leverege.atlassian.net/wiki/spaces/PLAT/pages/679542800/Helm+Charts+via+ChartMuseum'
14
- exit 1
15
- fi
16
-
17
- # Check if Chart Museum is running
18
- url='http://localhost:8080/'
19
- status_code=$(curl --write-out %{http_code} --silent --output /dev/null ${url})
20
-
21
- if [[ "$status_code" -ne 200 ]] ; then
22
- echo 'Error: Chart Museum is not running'
23
- echo 'To run: chartmuseum --debug --port=8080 --storage="google" --storage-google-bucket="leverege-helm-charts" --storage-google-prefix=""'
24
- exit 1
25
- fi
26
-
27
10
  # Bootstrap Helm charts
28
11
  chartname=${PWD##*/}
29
12
  chartname_go=${chartname//-/_}
package/src/helmup CHANGED
@@ -157,19 +157,6 @@ function installVelero() {
157
157
  }
158
158
 
159
159
  # ---------- helmup MAIN ----------
160
- command -v chartmuseum &> /dev/null
161
- if [ $? -ne 0 ];
162
- then
163
- cat<<NOMUSEUM
164
-
165
- $RED_ERROR Missing chartmuseum. Head over to the wiki site and follow the
166
- instructions in the section entitled Installing ChartMuseum down
167
- in the How-to articles -> Helm Charts via ChartMuseum.
168
-
169
- NOMUSEUM
170
- exit 1
171
- fi
172
-
173
160
  GITTOP=`git rev-parse --show-toplevel` && cd $GITTOP
174
161
  if [ -d "${GITTOP}/k8-utils" ];
175
162
  then
@@ -207,7 +194,7 @@ fi
207
194
  npm run ahoy
208
195
  [ $? -ne 0 ] && printf "\n\n***Aborting helmup...\n\n" && exit 1
209
196
 
210
- helm repo update &> /dev/null && helm search chartmuseum
197
+ helm repo update &> /dev/null && helm search leverege
211
198
 
212
199
  function doInstall() {
213
200
 
@@ -315,7 +302,7 @@ function doInstall() {
315
302
  MUSEUM=$(<${OVERRIDE})
316
303
  printf "\n$YELO_WARN Local chartmuseum name override from ${SERVICE} to ${MUSEUM}\n"
317
304
  fi
318
- HELMUP="helm upgrade --install $SERVICE chartmuseum/$MUSEUM -f $SERVICE/values.yaml $CHARTVER"
305
+ HELMUP="helm upgrade --install $SERVICE leverege/$MUSEUM -f $SERVICE/values.yaml $CHARTVER"
319
306
  printf "Helming => `color g \"$HELMUP\"`\n" && $HELMUP
320
307
  SAVERR=$?
321
308
  if [ $SAVERR -ne 0 ];
@@ -325,14 +312,9 @@ function doInstall() {
325
312
  $RED_ERROR helm exited with error status: $SAVERR
326
313
 
327
314
  $RED_ERROR The $SERVICE chart failed to upgrade or install. There may be an
328
- issue with the service's helm charts, or chartmuseum may not be
329
- up and running? If the latter, try firing it up with:
330
-
331
- chartmuseum \\
332
- --port="8080" \\
333
- --storage-google-bucket="leverege-helm-charts" \\
334
- --storage-google-prefix="" \\
335
- --storage="google" &> /dev/null &
315
+ issue with the service's helm charts, or you may have to follow
316
+ the instructions on the wiki under `color g "Helm Charts via Chartmuseum"`
317
+ in the `color y "Using the Public Endpoint"` section.
336
318
 
337
319
  NOTRUNNING
338
320
  exit 1
package/src/overwhelm CHANGED
@@ -300,7 +300,7 @@ ahoy.forEach( ( dir ) => {
300
300
 
301
301
  ` )
302
302
  }
303
- const ans = ask.question( `Enter "${chalk.bold.green( 'yes' )}" if you wish to proceed => ` )
303
+ const ans = ask.question( `Enter "${chalk.bold.green( 'yes' )}" if you wish to fetch the credentials => ` )
304
304
  if ( ans !== 'yes' ) {
305
305
  if ( matchedCtx ) {
306
306
  console.log( chalk.bold.yellow( `\n\nSkipping a refetch of your GCP context and credentials\n\n` ) )