Skip to content

Commit

Permalink
return error directly
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo committed Mar 9, 2025
1 parent fb32f53 commit 3729641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controllers/provisioning/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func (p *Provisioner) injectVolumeTopologyRequirements(ctx context.Context, pods
if err := p.volumeTopology.Inject(ctx, pod); err != nil {
// return because we can't consider any other pod schedulable
if errors.Is(err, context.Canceled) {
return nil, fmt.Errorf("context canceled while injecting volume topology requirements, %w", err)
return nil, err
}
log.FromContext(ctx).WithValues("Pod", klog.KObj(pod)).Error(err, "failed getting volume topology requirements")
} else {
Expand Down

0 comments on commit 3729641

Please sign in to comment.