Skip to content

Commit

Permalink
More logging from pruning
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Oct 13, 2021
1 parent 749fde0 commit 67dbe3b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions channels/pkg/channels/prune.go
Expand Up @@ -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
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 67dbe3b

Please sign in to comment.