diff --git a/src/core/common/label/label.go b/src/core/common/label/label.go index ade1fca2a..d54bcb861 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 { diff --git a/src/core/model/common.go b/src/core/model/common.go index dc9c5d4be..32d15f18a 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