Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/chartreuse/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: chartreuse
appVersion: 6.2.0
version: 6.2.0
version: 6.2.1
description: Automate Alembic SQL schema migrations.
maintainers:
- name: Wiremind
Expand Down
3 changes: 1 addition & 2 deletions charts/chartreuse/templates/job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ spec:
- sh
{{- end }}
args:
{{- $passwordVar := printf "${%s}" $waitDbConfig.passwordRemoteRefKey }}
{{- if eq $waitDbConfig.databaseType "postgresql" }}
- -c
- |
echo "Waiting for {{ $waitDbName }} database to be ready..."
{{- $passwordVar := printf "${%s}" $waitDbConfig.passwordRemoteRefKey }}
DB_URL="{{ $waitDbConfig.dialect }}://{{ $waitDbConfig.user }}:{{ $passwordVar }}@{{ $waitDbConfig.host }}:{{ $waitDbConfig.port }}/{{ $waitDbConfig.database }}"
echo "Checking {{ $waitDbName }} database connectivity..."
until psql "$DB_URL" -c "SELECT 1;" >/dev/null 2>&1; do
Expand All @@ -62,7 +62,6 @@ spec:
- |
set -euo pipefail
echo "Waiting for {{ $waitDbName }} (clickhouse-client) to be ready..."
{{- $passwordVar := printf "${%s}" $waitDbConfig.passwordRemoteRefKey }}
HOST="{{ $waitDbConfig.host }}"
# Use native_port if defined, otherwise default to 9000
PORT="{{ default 9000 $waitDbConfig.native_port }}"
Expand Down