diff --git a/admiral/pkg/clusters/handler.go b/admiral/pkg/clusters/handler.go index 36e37f23..91a09d1b 100644 --- a/admiral/pkg/clusters/handler.go +++ b/admiral/pkg/clusters/handler.go @@ -370,6 +370,7 @@ func handleDestinationRuleEvent(ctx context.Context, obj *v1alpha3.DestinationRu func handleVirtualServiceEvent(ctx context.Context, obj *v1alpha3.VirtualService, vh *VirtualServiceHandler, event common.Event, resourceType common.ResourceType) error { var ( + //nolint virtualService = obj.Spec clusterId = vh.ClusterID r = vh.RemoteRegistry diff --git a/admiral/pkg/clusters/handler_test.go b/admiral/pkg/clusters/handler_test.go index 60999a8e..31044d1d 100644 --- a/admiral/pkg/clusters/handler_test.go +++ b/admiral/pkg/clusters/handler_test.go @@ -29,7 +29,6 @@ import ( ) func TestGetDependentClusters(t *testing.T) { - identityClusterCache := common.NewMapOfMaps() identityClusterCache.Put("id1", "dep1", "cl1") identityClusterCache.Put("id2", "dep2", "cl2") @@ -102,7 +101,6 @@ func TestGetDependentClusters(t *testing.T) { } func TestIgnoreIstioResource(t *testing.T) { - //Struct of test case info. Name is required. testCases := []struct { name string