From df2c55917be5f099c3f30dfbb04deefb2af7d295 Mon Sep 17 00:00:00 2001 From: justinsb Date: Wed, 13 Oct 2021 10:33:57 -0400 Subject: [PATCH] More logging from pruning --- channels/pkg/channels/prune.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/channels/pkg/channels/prune.go b/channels/pkg/channels/prune.go index 33c35bb4d6..4d076ae5e4 100644 --- a/channels/pkg/channels/prune.go +++ b/channels/pkg/channels/prune.go @@ -37,6 +37,8 @@ type Pruner struct { // Prune prunes objects not in the manifest, according to PruneSpec. func (p *Pruner) Prune(ctx context.Context, manifest []byte, spec *api.PruneSpec) error { + klog.Infof("Prune spec: %v", spec) + if spec == nil { return nil } @@ -74,6 +76,8 @@ func (p *Pruner) Prune(ctx context.Context, manifest []byte, spec *api.PruneSpec } func (p *Pruner) pruneObjectsOfKind(ctx context.Context, gk schema.GroupKind, spec *api.PruneKindSpec, keepObjects []*kubemanifest.Object) error { + klog.Infof("pruning objects of kind: %v", gk) + restMapping, err := p.RESTMapper.RESTMapping(gk) if err != nil { return fmt.Errorf("unable to find resource for %s: %w", gk, err)