From f28095d8a0ade0987013e2ad5c2c8e9b23ef76eb Mon Sep 17 00:00:00 2001 From: Thomas Stocker Date: Tue, 4 Nov 2025 13:54:38 +0100 Subject: [PATCH] fix: ingress port issue and cubic review Signed-off-by: Thomas Stocker --- contrib/helm/charts/probo/templates/NOTES.txt | 2 +- contrib/helm/charts/probo/templates/ingress.yaml | 3 ++- contrib/helm/charts/probo/templates/postgresql-demo-app.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/helm/charts/probo/templates/NOTES.txt b/contrib/helm/charts/probo/templates/NOTES.txt index 5928e1105..cf5097c4f 100644 --- a/contrib/helm/charts/probo/templates/NOTES.txt +++ b/contrib/helm/charts/probo/templates/NOTES.txt @@ -16,7 +16,7 @@ Watch the status: kubectl get svc --namespace {{ .Release.Namespace }} {{ include "probo.fullname" . }} -w - Once available, access the application at the EXTERNAL-IP shown + Once available, access the application at: http://:{{ .Values.service.port }} {{- else if contains "ClusterIP" .Values.service.type }} Application is available only within the cluster. diff --git a/contrib/helm/charts/probo/templates/ingress.yaml b/contrib/helm/charts/probo/templates/ingress.yaml index a98c0dbcc..3e47f2532 100644 --- a/contrib/helm/charts/probo/templates/ingress.yaml +++ b/contrib/helm/charts/probo/templates/ingress.yaml @@ -34,7 +34,8 @@ spec: backend: service: name: {{ default (include "probo.fullname" $) .backend.service.name }} - port: {{ default $.Values.service.port .backend.service.port.number }} + port: + number: {{ default $.Values.service.port .backend.service.port.number }} {{- end }} {{- end }} {{- end }} diff --git a/contrib/helm/charts/probo/templates/postgresql-demo-app.yml b/contrib/helm/charts/probo/templates/postgresql-demo-app.yml index b9aa6ecf4..19068ac0c 100644 --- a/contrib/helm/charts/probo/templates/postgresql-demo-app.yml +++ b/contrib/helm/charts/probo/templates/postgresql-demo-app.yml @@ -62,7 +62,7 @@ data: psql -v ON_ERROR_STOP=1 -U $POSTGRES_USER <<-EOF ALTER USER probod WITH SUPERUSER; - ALTER USER probod PASSWORD '{{ .Values.postgresql.auth.postgresPassword }}'; + ALTER USER probod PASSWORD '{{ .Values.postgresql.auth.postgresPassword | squote }}'; GRANT ALL PRIVILEGES ON DATABASE probod TO probod; CREATE DATABASE probod_test; GRANT ALL PRIVILEGES ON DATABASE probod_test TO probod;