Skip to content

Commit

Permalink
chore: Add debug-level logging to Helm collectors
Browse files Browse the repository at this point in the history
  • Loading branch information
stepanstipl committed Oct 13, 2022
1 parent 126e47b commit b159359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/collector/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b159359

Please sign in to comment.