@leverege/build-tools 2.23.4 → 2.23.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leverege/build-tools",
3
- "version": "2.23.4",
3
+ "version": "2.23.5",
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.15.1",
66
+ "simple-git": "^3.16.0",
67
67
  "zx": "^7.1.1"
68
68
  },
69
69
  "devDependencies": {
@@ -1,5 +1,37 @@
1
1
  #!/bin/bash
2
2
  #
3
- # cert-manager is skipped for now - we may not really need it
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
@@ -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
- # Info about the secret to be used by the Velero deployment, which
102
- # should contain credentials for the cloud provider IAM account you've
103
- # set up for Velero.
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