fix: cubic issues

Signed-off-by: Thomas Stocker <thomas.stocker.pro@gmail.com>
This commit is contained in:
Thomas Stocker
2025-11-04 12:01:34 +01:00
committed by Bryan Frimin
parent fa19f3a17c
commit 47c4efb8c8
2 changed files with 4 additions and 5 deletions

View File

@@ -33,9 +33,8 @@ spec:
pathType: {{ .pathType }}
backend:
service:
name: {{ include "probo.fullname" $ }}
port:
number: {{ $.Values.service.port }}
name: {{ default (include "probo.fullname" $) .backend.service.name }}
port: {{ default $.Values.service.port .backend.service.port.number }}
{{- end }}
{{- end }}
{{- end }}

View File

@@ -20,7 +20,7 @@ spec:
- name: POSTGRES_USER
value: {{ .Values.postgresql.auth.postgresUser }}
- name: POSTGRES_PASSWORD
value: {{ .Values.postgresql.auth.postgresPassword }}
value: {{ .Values.postgresql.auth.postgresPassword | quote }}
- name: POSTGRES_DB
value: {{ .Values.postgresql.auth.database }}
ports:
@@ -62,7 +62,7 @@ data:
psql -v ON_ERROR_STOP=1 -U $POSTGRES_USER <<-EOF
ALTER USER probod WITH SUPERUSER;
ALTER USER probod PASSWORD 'probod';
ALTER USER probod PASSWORD '{{ .Values.postgresql.auth.postgresPassword }}';
GRANT ALL PRIVILEGES ON DATABASE probod TO probod;
CREATE DATABASE probod_test;
GRANT ALL PRIVILEGES ON DATABASE probod_test TO probod;