From 6c3f176ccfe97cc75eb116c7292c2858be9906d3 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Thu, 31 Oct 2024 02:41:34 +0900 Subject: [PATCH 1/2] Apply VPNinfo interface --- src/core/model/common.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/model/common.go b/src/core/model/common.go index dc9c5d4b..32d15f18 100644 --- a/src/core/model/common.go +++ b/src/core/model/common.go @@ -145,6 +145,7 @@ var ResourceTypeRegistry = map[string]func() interface{}{ StrMCI: func() interface{} { return &TbMciInfo{} }, StrK8s: func() interface{} { return &TbK8sClusterInfo{} }, StrNamespace: func() interface{} { return &NsInfo{} }, + StrVPN: func() interface{} { return &VPNInfo{} }, } // ResourceIds is struct for containing id and name of each Resource type From 591b46e44023a24f59262c6ffdc0bc5a99e52316 Mon Sep 17 00:00:00 2001 From: Seokho Son Date: Thu, 31 Oct 2024 04:12:14 +0900 Subject: [PATCH 2/2] Disable debug logs --- src/core/common/label/label.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/common/label/label.go b/src/core/common/label/label.go index ade1fca2..d54bcb86 100644 --- a/src/core/common/label/label.go +++ b/src/core/common/label/label.go @@ -259,7 +259,7 @@ func GetResourcesByLabelSelector(labelType, labelSelector string) ([]interface{} labelData := kv.Value log.Info().Str("labelKey", labelKey).Msg("Processing label entry") - log.Debug().Str("labelKey", labelKey).Str("labelData", string(labelData)).Msg("Fetched label data") + //log.Debug().Str("labelKey", labelKey).Str("labelData", string(labelData)).Msg("Fetched label data") var labelInfo model.LabelInfo err = json.Unmarshal([]byte(labelData), &labelInfo) @@ -283,7 +283,7 @@ func GetResourcesByLabelSelector(labelType, labelSelector string) ([]interface{} continue // Skip this entry and continue with the next } - log.Debug().Str("resourceKey", labelInfo.ResourceKey).Str("resourceData", string(resourceData)).Msg("Fetched resource data") + //log.Debug().Str("resourceKey", labelInfo.ResourceKey).Str("resourceData", string(resourceData)).Msg("Fetched resource data") err = json.Unmarshal([]byte(resourceData), resource) if err != nil {