From f3b8f521acfb8e4db5cb38366b5902944c7fda85 Mon Sep 17 00:00:00 2001 From: Abhipsa20 Date: Tue, 24 Sep 2024 11:40:56 +0530 Subject: [PATCH] debug --- pkg/cache/v3/simple.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cache/v3/simple.go b/pkg/cache/v3/simple.go index 04314207b5..310c666364 100644 --- a/pkg/cache/v3/simple.go +++ b/pkg/cache/v3/simple.go @@ -391,14 +391,14 @@ func (cache *snapshotCache) UpdateVirtualHosts(ctx context.Context, _ string, ty currentVersion := cache.ParseSystemVersionInfo(prevResources.Version) for k, v := range prevResources.Items { - _, ok := r[k] + _, ok := resourcesUpserted[k] if newResources && !ok { prevResources.Items[k] = v } else if !newResources && !ok { delete(prevResources.Items, k) } } - for k, v := range r { + for k, v := range resourcesUpserted { _, ok := prevResources.Items[k] if !ok { prevResources.Items[k] = *v