Skip to content

Commit

Permalink
Fixed incompatible with external postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
mason committed Dec 16, 2024
1 parent cefb9db commit 4e6794a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ data:
STARHUB_SERVER_S3_REGION: {{ .region }}
{{- end }}
{{- end }}

{{- end }}
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,21 @@ spec:
- name: wait-for-postgresql
image: opencsg-registry.cn-beijing.cr.aliyuncs.com/opencsg_public/postgres:15.7
imagePullPolicy: {{ $conf.image.pullPolicy }}
command: [ "/bin/sh", "-c", "until pg_isready -h {{ include "postgresql.internal.domain" . }} -p {{ include "postgresql.internal.port" . }} -U postgres; do echo 'Waiting for PostgreSQL can be connected'; sleep 3; done" ]
command: [ "/bin/sh", "-c", "until pg_isready -h $(POSTGRES_SEEDS) -p $(DB_PORT) -U $(POSTGRES_USER); do echo 'Waiting for PostgreSQL can be connected'; sleep 3; done" ]
envFrom:
- configMapRef:
name: {{ include "common.names.custom" . }}
env:
{{- if .Values.global.postgresql.enabled }}
- name: PGPASSWORD
valueFrom:
secretKeyRef:
name: {{ include "common.names.custom" (list . "postgresql") }}
key: postgres
{{- else }}
- name: PGPASSWORD
value: "$(POSTGRES_PWD)"
{{- end }}
containers:
- name: temporal
image: {{ $conf.image.repository }}:{{ .Values.global.temporal.image.tag | default .Chart.AppVersion }}
Expand Down

0 comments on commit 4e6794a

Please sign in to comment.