Skip to content

Commit

Permalink
Merge pull request #16389 from rifelpet/toolbox-dump-error
Browse files Browse the repository at this point in the history
Continue attemps to dump artifacts in `toolbox dump`
  • Loading branch information
k8s-ci-robot authored Feb 28, 2024
2 parents 7385490 + 045bd49 commit 2e72309
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/kops/toolbox_dump.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func RunToolboxDump(ctx context.Context, f commandutils.Factory, out io.Writer,
}

if err := dumper.DumpAllNodes(ctx, nodes, options.MaxNodes, additionalIPs, additionalPrivateIPs); err != nil {
return fmt.Errorf("error dumping nodes: %v", err)
klog.Warningf("error dumping nodes: %v", err)
}

if kubeConfig != nil && options.K8sResources {
Expand All @@ -241,15 +241,15 @@ func RunToolboxDump(ctx context.Context, f commandutils.Factory, out io.Writer,
return fmt.Errorf("error creating resource dumper: %w", err)
}
if err := dumper.DumpResources(ctx); err != nil {
return fmt.Errorf("error dumping resources: %w", err)
klog.Warningf("error dumping resources: %v", err)
}

logDumper, err := dump.NewPodLogDumper(kubeConfig, options.Dir)
if err != nil {
return fmt.Errorf("error creating pod log dumper: %w", err)
}
if err := logDumper.DumpLogs(ctx); err != nil {
return fmt.Errorf("error dumping pod logs: %w", err)
klog.Warningf("error dumping pod logs: %v", err)
}
}
}
Expand Down

0 comments on commit 2e72309

Please sign in to comment.