fix(helm): inject env vars

Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
Rajesh Rajendran 2021-12-12 21:02:16 +05:30
parent 8042cb2696
commit 81c7924a8d
No known key found for this signature in database
GPG key ID: F9F6FCAB8BACB638
2 changed files with 13 additions and 3 deletions

View file

@ -28,8 +28,8 @@ function migration() {
postgresql)
/bin/bash postgresql.sh migrate $migration_versions
;;
chalice)
/bin/bash chalice.sh migrate $migration_versions
clickhouse)
/bin/bash clickhouse.sh migrate $migration_versions
;;
kafka)
/bin/bash kafka.sh migrate $migration_versions
@ -61,7 +61,7 @@ function init(){
}
# dbops.sh true(upgrade) chalice
# dbops.sh true(upgrade) clickhouse
case "$1" in
"false")
init $2

View file

@ -75,6 +75,11 @@ spec:
# Enterprise migration
- name: clickhouse
image: yandex/clickhouse-client:20.9
env:
- name: PREVIOUS_APP_VERSION
value: "{{ .Values.fromVersion }}"
- name: CHART_APP_VERSION
value: "{{ .Chart.AppVersion }}"
command:
- /bin/bash
- /opt/migrations/dbops.sh
@ -87,6 +92,11 @@ spec:
mountPath: /opt/migrations/
- name: kafka
image: bitnami/kafka:2.6.0-debian-10-r30
env:
- name: PREVIOUS_APP_VERSION
value: "{{ .Values.fromVersion }}"
- name: CHART_APP_VERSION
value: "{{ .Chart.AppVersion }}"
command:
- /bin/bash
- /opt/migration.sh