@leverege/build-tools 2.17.3 → 2.17.4
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 +7 -8
- package/src/bash-funcs +1 -3
- package/src/helmup +16 -5
- package/leverege-build-tools-2.17.2.tgz +0 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.17.
|
|
3
|
+
"version": "2.17.4",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -64,22 +64,21 @@
|
|
|
64
64
|
"inquirer": "^8.2.4",
|
|
65
65
|
"js-yaml": "^4.1.0",
|
|
66
66
|
"ncp": "^2.0.0",
|
|
67
|
-
"npm-check-updates": "^13.1.2",
|
|
68
67
|
"npm-registry-fetch": "^11.0.0",
|
|
69
68
|
"open": "^8.4.0",
|
|
70
69
|
"ora": "^5.4.1",
|
|
71
70
|
"parse-gitignore": "^1.0.1",
|
|
72
71
|
"readline-sync": "^1.4.10",
|
|
73
72
|
"semver": "^7.3.7",
|
|
74
|
-
"simple-git": "^3.
|
|
75
|
-
"zx": "^7.0.
|
|
73
|
+
"simple-git": "^3.10.0",
|
|
74
|
+
"zx": "^7.0.7"
|
|
76
75
|
},
|
|
77
76
|
"devDependencies": {
|
|
78
|
-
"@babel/cli": "^7.
|
|
79
|
-
"@babel/core": "^7.18.
|
|
80
|
-
"@babel/node": "^7.18.
|
|
77
|
+
"@babel/cli": "^7.18.6",
|
|
78
|
+
"@babel/core": "^7.18.6",
|
|
79
|
+
"@babel/node": "^7.18.6",
|
|
81
80
|
"@leverege/babel-preset-leverege-node": "^2.0.0",
|
|
82
81
|
"@leverege/eslint-config-leverege": "^3.0.1",
|
|
83
|
-
"npm": "^8.13.
|
|
82
|
+
"npm": "^8.13.2"
|
|
84
83
|
}
|
|
85
84
|
}
|
package/src/bash-funcs
CHANGED
|
@@ -95,8 +95,6 @@ INSTALLING
|
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
function addHelmRepo() {
|
|
98
|
-
[ ! -z "$HELM_REPO_SKIP" ] && return
|
|
99
|
-
|
|
100
98
|
local chart=$1
|
|
101
99
|
local url=$2
|
|
102
100
|
|
|
@@ -109,6 +107,6 @@ REPOADD
|
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
function removeHelmRepo(){
|
|
112
|
-
[ ! -z "$
|
|
110
|
+
[ ! -z "$SKIP_RM_HELM_REPO" ] && return
|
|
113
111
|
helm repo remove $1 &>/dev/null
|
|
114
112
|
}
|
package/src/helmup
CHANGED
|
@@ -140,13 +140,13 @@ function createNamespaceIfNeeded(){
|
|
|
140
140
|
function installPrometheus() {
|
|
141
141
|
# Add the community helm repositories
|
|
142
142
|
addHelmRepo prometheus-community https://prometheus-community.github.io/helm-charts
|
|
143
|
-
|
|
143
|
+
[ -z "$PROMETHEUS_HELM_CHART" ] && PROMETHEUS_HELM_CHART="13"
|
|
144
144
|
helm upgrade --install prometheus prometheus-community/prometheus \
|
|
145
145
|
--namespace monitoring \
|
|
146
146
|
--values prometheus/values.yaml \
|
|
147
|
-
--version
|
|
147
|
+
--version $PROMETHEUS_HELM_CHART
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
removeHelmRepo prometheus-community
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
function installRedis() {
|
|
@@ -208,6 +208,17 @@ replica:
|
|
|
208
208
|
values:
|
|
209
209
|
- database
|
|
210
210
|
REDIS_CHART_MODS
|
|
211
|
+
if [[ $? -ne 0 ]];
|
|
212
|
+
then
|
|
213
|
+
clearlyWarn noclear
|
|
214
|
+
cat<<OLDER_REDIS
|
|
215
|
+
The redis upgrade failed which may mean that the versions are different
|
|
216
|
+
enough that k8s cannot gracefully upgrade from one version to the next.
|
|
217
|
+
Try removing the existing deployment and redeploying redis:
|
|
218
|
+
|
|
219
|
+
$ `color r "helmdn redis && sleep 5 && helmup redis"`
|
|
220
|
+
OLDER_REDIS
|
|
221
|
+
fi
|
|
211
222
|
printf "\n\nTo start a specific version => `color g 'REDIS_HELM_CHART="13.0.1" helmup redis'`\n\n"
|
|
212
223
|
removeHelmRepo bitnami
|
|
213
224
|
}
|
|
@@ -378,7 +389,7 @@ function getManagedSecret() {
|
|
|
378
389
|
|
|
379
390
|
# https://github.com/estafette/estafette-gke-preemptible-killer
|
|
380
391
|
function installPreemptibleKiller() {
|
|
381
|
-
showInstalling "Preemptible Node Killing
|
|
392
|
+
showInstalling "Preemptible Node Killing Coordinator"
|
|
382
393
|
NAMESPACE="estafette"
|
|
383
394
|
PROJECT_ID="$(getProjectIdFromK8sContext)"
|
|
384
395
|
SVC_ACCT="preemptible-killer"
|
|
@@ -715,7 +726,7 @@ function installVelero() {
|
|
|
715
726
|
## Helpful debugging link => https://github.com/vmware-tanzu/helm-charts/issues/351
|
|
716
727
|
addHelmRepo vmware-tanzu https://vmware-tanzu.github.io/helm-charts
|
|
717
728
|
helm upgrade --install velero vmware-tanzu/velero \
|
|
718
|
-
--version 2
|
|
729
|
+
--version 2 \
|
|
719
730
|
--namespace velero \
|
|
720
731
|
--set credentials.useSecret="false" \
|
|
721
732
|
--set configuration.provider="gcp" \
|
|
Binary file
|