fix(helm): inject env vars
Signed-off-by: Rajesh Rajendran <rjshrjndrn@gmail.com>
This commit is contained in:
parent
8042cb2696
commit
81c7924a8d
2 changed files with 13 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue