File tree Expand file tree Collapse file tree 2 files changed +19
-29
lines changed
components/kubearchive/production/kflux-prd-rh03 Expand file tree Collapse file tree 2 files changed +19
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
3
3
kind : Kustomization
4
4
resources :
5
5
- ../../base
6
- - database-secret.yaml
6
+ - ../base
7
7
- https://github.com/kubearchive/kubearchive/releases/download/v1.2.0/kubearchive.yaml?timeout=90
8
8
9
9
namespace : product-kubearchive
@@ -19,6 +19,13 @@ patches:
19
19
spec:
20
20
containers:
21
21
- name: migration
22
+ args:
23
+ - set -o errexit;
24
+ git clone https://github.com/kubearchive/kubearchive --depth=1 --branch=${KUBEARCHIVE_VERSION} /tmp/kubearchive;
25
+ cd /tmp/kubearchive;
26
+ export QUOTED_PASSWORD=$(python3 -c "import urllib.parse; print(urllib.parse.quote('${DATABASE_PASSWORD}', ''))");
27
+ curl --silent -L https://github.com/golang-migrate/migrate/releases/download/${MIGRATE_VERSION}/migrate.linux-amd64.tar.gz | tar xvz migrate;
28
+ ./migrate -verbose -path integrations/database/postgresql/migrations/ -database postgresql://${DATABASE_USER}:${QUOTED_PASSWORD}@${DATABASE_URL}:${DATABASE_PORT}/${DATABASE_DB} up
22
29
env:
23
30
- name: KUBEARCHIVE_VERSION
24
31
value: v1.2.0
@@ -30,6 +37,17 @@ patches:
30
37
metadata:
31
38
name: kubearchive-database-credentials
32
39
namespace: kubearchive
40
+ - patch : |-
41
+ apiVersion: external-secrets.io/v1beta1
42
+ kind: ExternalSecret
43
+ metadata:
44
+ name: database-secret
45
+ spec:
46
+ secretStoreRef:
47
+ name: appsre-stonesoup-vault
48
+ dataFrom:
49
+ - extract:
50
+ key: production/platform/terraform/generated/kflux-prd-rh03/kubearchive-database
33
51
# These patches add an annotation so an OpenShift service
34
52
# creates the TLS secrets instead of Cert Manager
35
53
- patch : |-
You can’t perform that action at this time.
0 commit comments