Skip to content

Commit 2aa0808

Browse files
committed
Update cluster info pod categorization
1 parent 974411d commit 2aa0808

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/operator/endpoints/info.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,10 @@ func getNodeInfos() ([]schema.NodeInfo, int, error) {
119119
}
120120

121121
if isAPIPod {
122-
if !isAsyncPod || asyncDeploymentType == "api" {
123-
node.NumReplicas++
124-
}
125-
if !isAsyncPod || asyncDeploymentType == "gateway" {
122+
if isAsyncPod && asyncDeploymentType == "gateway" {
126123
node.NumAsyncGatewayReplicas++
124+
} else {
125+
node.NumReplicas++
127126
}
128127
}
129128

0 commit comments

Comments
 (0)