diff --git a/agent/proxycfg/snapshot.go b/agent/proxycfg/snapshot.go index 6720e5b97d..96341840a5 100644 --- a/agent/proxycfg/snapshot.go +++ b/agent/proxycfg/snapshot.go @@ -104,7 +104,8 @@ func (c *configSnapshotTerminatingGateway) IsEmpty() bool { len(c.WatchedIntentions) == 0 && len(c.ServiceGroups) == 0 && len(c.WatchedServices) == 0 && - len(c.ServiceResolvers) == 0 + len(c.ServiceResolvers) == 0 && + len(c.WatchedResolvers) == 0 } type configSnapshotMeshGateway struct { diff --git a/agent/proxycfg/state_test.go b/agent/proxycfg/state_test.go index 5a918db0f4..3440b86468 100644 --- a/agent/proxycfg/state_test.go +++ b/agent/proxycfg/state_test.go @@ -841,14 +841,8 @@ func TestState_WatchesAndUpdates(t *testing.T) { require.True(t, snap.ConnectProxy.IsEmpty()) require.True(t, snap.MeshGateway.IsEmpty()) require.True(t, snap.IngressGateway.IsEmpty()) + require.True(t, snap.TerminatingGateway.IsEmpty()) require.Equal(t, indexedRoots, snap.Roots) - require.Empty(t, snap.TerminatingGateway.WatchedServices) - require.Empty(t, snap.TerminatingGateway.ServiceGroups) - require.Empty(t, snap.TerminatingGateway.WatchedLeaves) - require.Empty(t, snap.TerminatingGateway.ServiceLeaves) - require.Empty(t, snap.TerminatingGateway.WatchedResolvers) - require.Empty(t, snap.TerminatingGateway.ServiceResolvers) - require.Empty(t, snap.TerminatingGateway.WatchedIntentions) }, }, },