mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
Merge pull request #109782 from danwinship/no-local-endpoints-metric
Don't increment "no local endpoints" metric when there are no remote endpoints
This commit is contained in:
@@ -7743,6 +7743,14 @@ func TestNoEndpointsMetric(t *testing.T) {
|
||||
expectedSyncProxyRulesNoLocalEndpointsTotalInternal: 1,
|
||||
expectedSyncProxyRulesNoLocalEndpointsTotalExternal: 1,
|
||||
},
|
||||
{
|
||||
name: "both policies are set and there are no endpoints at all",
|
||||
internalTrafficPolicy: &internalTrafficPolicyLocal,
|
||||
externalTrafficPolicy: externalTrafficPolicyLocal,
|
||||
endpoints: []endpoint{},
|
||||
expectedSyncProxyRulesNoLocalEndpointsTotalInternal: 0,
|
||||
expectedSyncProxyRulesNoLocalEndpointsTotalExternal: 0,
|
||||
},
|
||||
}
|
||||
|
||||
for _, tc := range testCases {
|
||||
|
||||
Reference in New Issue
Block a user