Skip to content

Commit

Permalink
Changed the pgAdmin readinessProbe to check /misc/ping instead of /lo…
Browse files Browse the repository at this point in the history
…gin (#4118)
  • Loading branch information
caitlinstrong authored Mar 5, 2025
1 parent 1d8457a commit d7f4913
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/controller/standalone_pgadmin/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand Down
4 changes: 2 additions & 2 deletions internal/controller/standalone_pgadmin/pod_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ containers:
protocol: TCP
readinessProbe:
httpGet:
path: /login
path: /misc/ping
port: 5050
scheme: HTTP
resources: {}
Expand Down Expand Up @@ -324,7 +324,7 @@ containers:
protocol: TCP
readinessProbe:
httpGet:
path: /login
path: /misc/ping
port: 5050
scheme: HTTP
resources:
Expand Down

0 comments on commit d7f4913

Please sign in to comment.