File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed
production/kflux-prd-rh03 Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 20
20
- set -o errexit;
21
21
git clone https://github.com/kubearchive/kubearchive --depth=1 --branch=${KUBEARCHIVE_VERSION} /tmp/kubearchive;
22
22
cd /tmp/kubearchive;
23
+ export QUOTED_PASSWORD=$(python3 -c "import urllib.parse; print(urllib.parse.quote('${DATABASE_PASSWORD}', ''))");
23
24
curl --silent -L https://github.com/golang-migrate/migrate/releases/download/${MIGRATE_VERSION}/migrate.linux-amd64.tar.gz | tar xvz migrate;
24
- ./migrate -verbose -path integrations/database/postgresql/migrations/ -database postgresql://${DATABASE_USER}:${DATABASE_PASSWORD }@${DATABASE_URL}:${DATABASE_PORT}/${DATABASE_DB} up
25
+ ./migrate -verbose -path integrations/database/postgresql/migrations/ -database postgresql://${DATABASE_USER}:${QUOTED_PASSWORD }@${DATABASE_URL}:${DATABASE_PORT}/${DATABASE_DB} up
25
26
resources :
26
27
limits :
27
28
cpu : 10m
Original file line number Diff line number Diff line change @@ -19,13 +19,6 @@ 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
29
22
env:
30
23
- name: KUBEARCHIVE_VERSION
31
24
value: v1.2.0
You can’t perform that action at this time.
0 commit comments