From b159359042e970e55470dce4f58d23cb84684ea1 Mon Sep 17 00:00:00 2001 From: Stepan Stipl Date: Thu, 13 Oct 2022 16:35:06 +0200 Subject: [PATCH] chore: Add debug-level logging to Helm collectors --- pkg/collector/helm.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/collector/helm.go b/pkg/collector/helm.go index beaab214..85e7ad03 100644 --- a/pkg/collector/helm.go +++ b/pkg/collector/helm.go @@ -24,7 +24,10 @@ func parseManifests(manifest string, defaultNamespace string, discoveryClient di return nil, err } - fixNamespace(&unstructured.Unstructured{Object: manifest}, defaultNamespace, discoveryClient) + umanifest := &unstructured.Unstructured{Object: manifest} + log.Debug().Msgf("retrieved: %s/%s (%s)", umanifest.GetNamespace(), umanifest.GetName(), umanifest.GroupVersionKind()) + + fixNamespace(umanifest, defaultNamespace, discoveryClient) results = append(results, manifest) }