@leverege/build-tools 2.23.4 → 2.23.6
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/package.json +3 -3
- package/src/helmup +5 -1
- package/src/pkgck +1 -1
- package/src/system-charts/cert-manager.hup +34 -2
- package/src/system-charts/traefik-canary-local.yaml +14 -0
- package/src/system-charts/traefik-canary.hup +16 -0
- package/src/system-charts/traefik-local.yaml +2 -1
- package/src/system-charts/traefik.hup +0 -1
- package/src/system-charts/velero-local.yaml +37 -4
- package/src/system-charts/velero.hup +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leverege/build-tools",
|
|
3
|
-
"version": "2.23.
|
|
3
|
+
"version": "2.23.6",
|
|
4
4
|
"description": "A collection of build / support tools for Leverege developers",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": {
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"parse-gitignore": "^2.0.0",
|
|
64
64
|
"readline-sync": "^1.4.10",
|
|
65
65
|
"semver": "^7.3.8",
|
|
66
|
-
"simple-git": "^3.
|
|
66
|
+
"simple-git": "^3.16.0",
|
|
67
67
|
"zx": "^7.1.1"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
@@ -71,6 +71,6 @@
|
|
|
71
71
|
"@babel/core": "^7.20.12",
|
|
72
72
|
"@leverege/babel-preset-leverege-node": "^2.0.0",
|
|
73
73
|
"@leverege/eslint-config-leverege": "^3.0.1",
|
|
74
|
-
"npm": "^9.3.
|
|
74
|
+
"npm": "^9.3.1"
|
|
75
75
|
}
|
|
76
76
|
}
|
package/src/helmup
CHANGED
|
@@ -669,7 +669,7 @@ function doInstall() {
|
|
|
669
669
|
;;
|
|
670
670
|
|
|
671
671
|
"cert-manager")
|
|
672
|
-
|
|
672
|
+
installCertManager
|
|
673
673
|
bootstrapLocalSetup cert-manager
|
|
674
674
|
;;
|
|
675
675
|
|
|
@@ -735,6 +735,10 @@ function doInstall() {
|
|
|
735
735
|
installTraefikEnvironment
|
|
736
736
|
bootstrapLocalSetup traefik
|
|
737
737
|
;;
|
|
738
|
+
"traefik-canary")
|
|
739
|
+
# only valid if traefik is already installed
|
|
740
|
+
bootstrapLocalSetup traefik-canary
|
|
741
|
+
;;
|
|
738
742
|
|
|
739
743
|
"velero")
|
|
740
744
|
installVeleroEnvironment
|
package/src/pkgck
CHANGED
|
@@ -134,7 +134,7 @@ check_repo() {
|
|
|
134
134
|
local license=$(check_license)
|
|
135
135
|
local scoped=$(check_scope)
|
|
136
136
|
[ $(( $repos % 15)) -eq 0 ] && printf "\n%35s pkg git cln scop cir lic ESM bl7\n"
|
|
137
|
-
printf "%32s: %-8s %-16s %s %8s %s %s %s %s %s\n" $dir $pkgver $(check_git_version $gitver $pkgver) $localmods $scoped $circle $license $esmlib $babel7 "$needspush"
|
|
137
|
+
printf "%32s: %-8s %-16s %s %8s %s %s %s %s %s\n" ${dir:0:32} $pkgver $(check_git_version $gitver $pkgver) $localmods $scoped $circle $license $esmlib $babel7 "$needspush"
|
|
138
138
|
let "repos++"
|
|
139
139
|
cd - &> /dev/null
|
|
140
140
|
}
|
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
#
|
|
3
|
-
# cert-manager
|
|
3
|
+
# cert-manager may be skipped for now?
|
|
4
4
|
#
|
|
5
|
-
skipInstalling cert-manager
|
|
5
|
+
skipInstalling cert-manager && exit 0
|
|
6
|
+
#
|
|
7
|
+
addHelmRepo jetstack https://charts.jetstack.io
|
|
8
|
+
[ -z "$CERT_MANAGER_HELM_CHART" ] && CERT_MANAGER_HELM_CHART="v1.10"
|
|
9
|
+
helm upgrade --install cert-manager jetstack/cert-manager \
|
|
10
|
+
--namespace cert-manager --set installCRDs=true \
|
|
11
|
+
--version $CERT_MANAGER_HELM_CHART
|
|
12
|
+
|
|
13
|
+
cat<<DELAY
|
|
14
|
+
|
|
15
|
+
`color y "20 second delay to allow cert-manager to stabilize before proceeding...\n"`
|
|
16
|
+
|
|
17
|
+
DELAY
|
|
18
|
+
|
|
19
|
+
sleep 20
|
|
20
|
+
kubectl -n cert-manager apply -f cert-manager
|
|
21
|
+
|
|
22
|
+
if [[ $? -eq 1 ]];
|
|
23
|
+
then
|
|
24
|
+
|
|
25
|
+
`color y "***WARNING: cert-manager components still coming up"`
|
|
26
|
+
|
|
27
|
+
Try rerunning this apply again in 30 seconds:
|
|
28
|
+
`color g "kubectl -n cert-manager apply -f cert-manager"`
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
cat<<HINTS
|
|
32
|
+
|
|
33
|
+
fetch certs: `color g "kubectl -n cert-manager get certificate"`
|
|
34
|
+
check certs: `color g "kubectl -n cert-manager describe certificate"`
|
|
35
|
+
|
|
36
|
+
HINTS
|
|
37
|
+
removeHelmRepo jetstack
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
additionalArguments:
|
|
2
|
+
- "--accesslog=true"
|
|
3
|
+
- "--accesslog.format=json"
|
|
4
|
+
- "--api.debug=true"
|
|
5
|
+
- "--log.level=WARN"
|
|
6
|
+
- "--metrics.prometheus=true"
|
|
7
|
+
- "--api.dashboard=true"
|
|
8
|
+
|
|
9
|
+
deployment:
|
|
10
|
+
replicas: 1
|
|
11
|
+
|
|
12
|
+
#service:
|
|
13
|
+
# spec:
|
|
14
|
+
# loadBalancerIP: xx.xx.xx.xx
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
showInstalling "Traefik Canary Load Balancer / Router"
|
|
4
|
+
|
|
5
|
+
TRAEFIK_CANARY="traefik-canary"
|
|
6
|
+
|
|
7
|
+
createNamespaceIfNeeded $TRAEFIK_CANARY
|
|
8
|
+
|
|
9
|
+
addHelmRepo traefik https://helm.traefik.io/traefik
|
|
10
|
+
|
|
11
|
+
[ -z "$TRAEFIK_HELM_CHART" ] && TRAEFIK_HELM_CHART="16"
|
|
12
|
+
helm upgrade --install $TRAEFIK_CANARY traefik/traefik --namespace $TRAEFIK_CANARY \
|
|
13
|
+
--values $TRAEFIK_CANARY/traefik-canary-local.yaml \
|
|
14
|
+
--version $TRAEFIK_HELM_CHART $HELM_WHAT
|
|
15
|
+
|
|
16
|
+
removeHelmRepo traefik
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
additionalArguments:
|
|
2
2
|
- "--accesslog=true"
|
|
3
3
|
- "--accesslog.format=json"
|
|
4
|
+
- "--api.debug=true"
|
|
4
5
|
- "--log.level=WARN"
|
|
5
6
|
- "--metrics.prometheus=true"
|
|
6
7
|
- "--api.dashboard=true"
|
|
@@ -10,4 +11,4 @@ deployment:
|
|
|
10
11
|
|
|
11
12
|
#service:
|
|
12
13
|
# spec:
|
|
13
|
-
#
|
|
14
|
+
# loadBalancerIP: xx.xx.xx.xx
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
#
|
|
1
2
|
# Backup schedules to create.
|
|
2
3
|
#
|
|
3
4
|
schedules:
|
|
@@ -23,6 +24,17 @@ schedules:
|
|
|
23
24
|
release: "timescale-db"
|
|
24
25
|
app: "postgresql"
|
|
25
26
|
|
|
27
|
+
mysql:
|
|
28
|
+
disabled: true
|
|
29
|
+
schedule: "0 4 * * *"
|
|
30
|
+
template:
|
|
31
|
+
ttl: "720h"
|
|
32
|
+
snapshotVolumes: true
|
|
33
|
+
labelSelector:
|
|
34
|
+
matchLabels:
|
|
35
|
+
release: "mysql"
|
|
36
|
+
app: "mysql"
|
|
37
|
+
|
|
26
38
|
redis:
|
|
27
39
|
disabled: true
|
|
28
40
|
schedule: "*/30 * * * *"
|
|
@@ -98,8 +110,29 @@ serviceAccount:
|
|
|
98
110
|
create: false
|
|
99
111
|
name: velero
|
|
100
112
|
|
|
101
|
-
#
|
|
102
|
-
#
|
|
103
|
-
#
|
|
113
|
+
# Workload Identity Federation (WIF) uses service accounts and IAM roles to
|
|
114
|
+
# define a service's permissions - the useSecret setting will be set to false
|
|
115
|
+
# for WIF enabled clusters.
|
|
116
|
+
#
|
|
117
|
+
# In order to use velero in a non WIF legacy cluster, ensure the k8s context
|
|
118
|
+
# by running from the root of the git repository:
|
|
119
|
+
# $ overwhelm
|
|
120
|
+
#
|
|
121
|
+
# Create and download a key file for the existing velero SA:
|
|
122
|
+
# $ gcloud iam service-accounts keys create velero-credentials \
|
|
123
|
+
# --iam-account velero@<project id>.iam.gserviceaccount.com
|
|
124
|
+
#
|
|
125
|
+
# Create the velero namespace if it does not already exist:
|
|
126
|
+
# $ kubectl create ns velero
|
|
127
|
+
#
|
|
128
|
+
# Inject the secret into the cluster's velero namespace:
|
|
129
|
+
# $ kubectl create secret generic velero-credentials \
|
|
130
|
+
# --namespace velero --from-file cloud=velero-credentials
|
|
131
|
+
#
|
|
132
|
+
# Clean up the secret now that it is injected:
|
|
133
|
+
# $ rm velero-credentials
|
|
134
|
+
#
|
|
135
|
+
# Comment out the useSecret - uncomment existingSecret - helmup velero
|
|
104
136
|
credentials:
|
|
105
|
-
useSecret: false
|
|
137
|
+
useSecret: false # comment out for non WIF
|
|
138
|
+
# existingSecret: velero-credentials # uncomment for non WIF
|