From 79e5e55d5bdf037643f11b4b1eeea22c77174848 Mon Sep 17 00:00:00 2001 From: Valerian Roche Date: Tue, 16 Jan 2024 17:35:49 -0500 Subject: [PATCH] Update pkg/cache/v3/resource.go Co-authored-by: Antoine Tollenaere Signed-off-by: Valerian Roche --- pkg/cache/v3/resource.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/cache/v3/resource.go b/pkg/cache/v3/resource.go index e1156c4af6..0079afb08e 100644 --- a/pkg/cache/v3/resource.go +++ b/pkg/cache/v3/resource.go @@ -102,8 +102,9 @@ func GetResourceName(res types.Resource) string { func ResourceRequiresFullStateInSotw(typeURL resource.Type) bool { // From https://www.envoyproxy.io/docs/envoy/v1.28.0/api-docs/xds_protocol#grouping-resources-into-responses, // when using sotw the control-plane MUST return all requested resources (or simply all if wildcard) - // for some types. This is relied on by xds-grpc which is explicitly requesting clusters but expect - // to receive all existing resources + // for some types. This is relied on by xds-grpc which is explicitly requesting clusters and listeners + // but expects to receive all existing resources for those types. Missing clusters or listeners are + // considered deleted. switch typeURL { case resource.ClusterType: return true