From ebe22866a179a22ff642ba818020089504fc3f3d Mon Sep 17 00:00:00 2001 From: Caitlin Strong Date: Tue, 4 Mar 2025 10:20:38 -0500 Subject: [PATCH] Changed the pgAdmin readinessProbe to check /misc/ping instead of /login --- internal/controller/standalone_pgadmin/pod.go | 4 ++-- internal/controller/standalone_pgadmin/pod_test.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/controller/standalone_pgadmin/pod.go b/internal/controller/standalone_pgadmin/pod.go index 7590a3a3cc..acc610abb9 100644 --- a/internal/controller/standalone_pgadmin/pod.go +++ b/internal/controller/standalone_pgadmin/pod.go @@ -147,13 +147,13 @@ func pod( }, } - // Creating a readiness probe that will check that the pgAdmin `/login` + // Creating a readiness probe that will check that the pgAdmin `/misc/ping` // endpoint is reachable at the specified port readinessProbe := &corev1.Probe{ ProbeHandler: corev1.ProbeHandler{ HTTPGet: &corev1.HTTPGetAction{ Port: intstr.FromInt32(pgAdminPort), - Path: "/login", + Path: "/misc/ping", Scheme: corev1.URISchemeHTTP, }, }, diff --git a/internal/controller/standalone_pgadmin/pod_test.go b/internal/controller/standalone_pgadmin/pod_test.go index ce3ad076d2..790187e620 100644 --- a/internal/controller/standalone_pgadmin/pod_test.go +++ b/internal/controller/standalone_pgadmin/pod_test.go @@ -107,7 +107,7 @@ containers: protocol: TCP readinessProbe: httpGet: - path: /login + path: /misc/ping port: 5050 scheme: HTTP resources: {} @@ -324,7 +324,7 @@ containers: protocol: TCP readinessProbe: httpGet: - path: /login + path: /misc/ping port: 5050 scheme: HTTP resources: