Skip to content

Commit 65a75e0

Browse files
author
jmccormick2001
committed
fix pgpool label detection in pgo show cluster command
1 parent cefbdc6 commit 65a75e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apiserver/clusterservice/clusterimpl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ func getType(pod *v1.Pod, clusterName string) string {
11341134
return msgs.PodTypePgbackrest
11351135
} else if pod.ObjectMeta.Labels[config.LABEL_PGBOUNCER] != "" {
11361136
return msgs.PodTypePgbouncer
1137-
} else if pod.ObjectMeta.Labels[config.LABEL_PGPOOL] != "" {
1137+
} else if pod.ObjectMeta.Labels[config.LABEL_PGPOOL_POD] != "" {
11381138
return msgs.PodTypePgpool
11391139
} else if pod.ObjectMeta.Labels[config.LABEL_PGBACKUP] == "true" {
11401140
return msgs.PodTypeBackup

0 commit comments

Comments
 (0)