@leverege/build-tools 2.5.30 → 2.5.31
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/repo-init/config.tgz +0 -0
- package/package.json +3 -3
- package/src/helmup +14 -5
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.31",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"inquirer": "^7.3.3",
|
|
64
64
|
"js-yaml": "^4.0.0",
|
|
65
65
|
"ncp": "^2.0.0",
|
|
66
|
-
"npm-check-updates": "^11.1.
|
|
66
|
+
"npm-check-updates": "^11.1.8",
|
|
67
67
|
"npm-registry-fetch": "^9.0.0",
|
|
68
68
|
"open": "^7.4.2",
|
|
69
69
|
"ora": "^5.3.0",
|
|
@@ -78,6 +78,6 @@
|
|
|
78
78
|
"@babel/node": "^7.12.17",
|
|
79
79
|
"@leverege/babel-preset-leverege-node": "^1.1.1",
|
|
80
80
|
"@leverege/eslint-config-leverege": "^2.2.0",
|
|
81
|
-
"npm": "^7.5.
|
|
81
|
+
"npm": "^7.5.6"
|
|
82
82
|
}
|
|
83
83
|
}
|
package/src/helmup
CHANGED
|
@@ -221,7 +221,13 @@ function checkSSDStorageClass(){
|
|
|
221
221
|
function getManagedSecret() {
|
|
222
222
|
local SECNAME=$1
|
|
223
223
|
local PROJECT="${2:-leverege-docker-images}"
|
|
224
|
-
SECRET=$(gcloud secrets versions access latest --secret
|
|
224
|
+
SECRET=$(gcloud secrets versions access latest --secret="$SECNAME" --project=$PROJECT)
|
|
225
|
+
if [ $? -ne 0 ];
|
|
226
|
+
then
|
|
227
|
+
printf "This failed=>[gcloud secrets versions access latest --secret="$SECNAME" --project=$PROJECT]\n"
|
|
228
|
+
printf "Returned =>[$SECRET]\n\n"
|
|
229
|
+
exit 1
|
|
230
|
+
fi
|
|
225
231
|
echo $SECRET
|
|
226
232
|
}
|
|
227
233
|
|
|
@@ -231,14 +237,18 @@ function installTraefik() {
|
|
|
231
237
|
kubectl get secret cloudflare --namespace traefik &>/dev/null
|
|
232
238
|
if [[ $? -eq 1 ]]; then
|
|
233
239
|
cat<<NEED_TRAEFIK_SECRET
|
|
234
|
-
|
|
240
|
+
$RED_ERROR missing secret: `color y cloudflare` namespace: `color y traefik`
|
|
235
241
|
|
|
236
242
|
This secret may be fetched from the leverege-docker-images cluster and
|
|
237
243
|
properly injected into this cluster.
|
|
238
244
|
NEED_TRAEFIK_SECRET
|
|
239
245
|
yesToContinue "to copy and inject the cloudflare secret"
|
|
240
246
|
TOKEN=$(getManagedSecret "CLOUDFLARE_API_TOKEN")
|
|
241
|
-
|
|
247
|
+
if [ $? -ne 0 ];
|
|
248
|
+
then
|
|
249
|
+
printf "$RED_ERROR getManagedSecret reponse=>[$TOKEN]"
|
|
250
|
+
exitOnError 1 "Failed to fetch the secret from leverege-docker-images"
|
|
251
|
+
fi
|
|
242
252
|
printf "\nInjecting=[$TOKEN] into cloudflare secret\n"
|
|
243
253
|
kubectl create secret generic cloudflare \
|
|
244
254
|
--namespace traefik \
|
|
@@ -331,8 +341,7 @@ function installVelero() {
|
|
|
331
341
|
--set schedules.mysql.template.snapshotVolumes="true"
|
|
332
342
|
|
|
333
343
|
## Instruct users to move velero keys
|
|
334
|
-
printf "\n$YELO_WARN
|
|
335
|
-
printf "\n$YELO_WARN NO REALLY...MOVE credentials-velero file NOW"
|
|
344
|
+
printf "\n$YELO_WARN Use the velero-credentials secret for accessing velero\n"
|
|
336
345
|
}
|
|
337
346
|
|
|
338
347
|
# ---------- helmup MAIN ----------
|