Skip to content

Commit 2270ed6

Browse files
author
jmccormick2001
committed
fix df command to now process pgpool or pgbouncer services
1 parent c937a26 commit 2270ed6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apiserver/dfservice/dfimpl.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import (
2828
"k8s.io/api/core/v1"
2929
"k8s.io/apimachinery/pkg/api/resource"
3030
"k8s.io/client-go/kubernetes"
31+
"strings"
3132
)
3233

3334
func DfCluster(name, selector string) msgs.DfResponse {
@@ -72,6 +73,10 @@ func DfCluster(name, selector string) msgs.DfResponse {
7273
//for each service get the database size and append to results
7374

7475
for svcName, svcIP := range services {
76+
if strings.Contains(svcName, "-pgbouncer") ||
77+
strings.Contains(svcName, "-pgpool") {
78+
continue
79+
}
7580
result := msgs.DfDetail{}
7681
//result.Name = c.Name
7782
result.Name = svcName

0 commit comments

Comments
 (0)