From 0bfb05b00243aea7cdcabed066c9fba28c5873f8 Mon Sep 17 00:00:00 2001 From: dominik003 Date: Tue, 16 Jan 2024 17:28:42 +0100 Subject: [PATCH] fix: Correctly call `psql` in probes The `-W` flag in psql is used to provide a password prompt to the user. However, this lead to a problem that the probes were no longer successful due to that. Chaning this to `-w' ensures that no prompt is given and additionally, we don't need the password here. Co-authored-by: Arjan Molenaar --- helm/templates/guacamole/postgres.deployment.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm/templates/guacamole/postgres.deployment.yaml b/helm/templates/guacamole/postgres.deployment.yaml index 83e2bcd3b2..ec75a990c6 100644 --- a/helm/templates/guacamole/postgres.deployment.yaml +++ b/helm/templates/guacamole/postgres.deployment.yaml @@ -54,12 +54,12 @@ spec: protocol: TCP readinessProbe: exec: - command: ["psql", "-W", "{{ .Values.database.guacamole.internal.password }}", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"] + command: ["psql", "-w", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"] initialDelaySeconds: 15 timeoutSeconds: 2 livenessProbe: exec: - command: ["psql", "-W", "{{ .Values.database.guacamole.internal.password }}", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"] + command: ["psql", "-w", "-U", "guacamole", "-d", "guacamole", "-c", "SELECT 1"] initialDelaySeconds: 45 timeoutSeconds: 2 resources: