Skip to content

Commit

Permalink
Merge pull request #4072 from hongkailiu/more_debug_logs
Browse files Browse the repository at this point in the history
import_release: add more debug logs
  • Loading branch information
openshift-merge-bot[bot] authored Apr 9, 2024
2 parents 875e1f8 + e2e33b5 commit 9543639
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pkg/steps/release/import_release.go
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,17 @@ func (s *importReleaseStep) getCLIImage(ctx context.Context, target, streamName
}
return false, err
}
return streamTag.Tag != nil && streamTag.Tag.Generation != nil && *streamTag.Tag.Generation == streamTag.Generation, nil
populated := streamTag.Tag != nil && streamTag.Tag.Generation != nil && *streamTag.Tag.Generation == streamTag.Generation
if streamTag.Tag == nil {
logrus.Debug("The 'cli' image in the stable stream is not populated: streamTag.Tag is nil")
return false, nil
}
if !populated {
logrus.WithField("streamTag.Tag.Generation", streamTag.Tag.Generation).
WithField("streamTag.Generation", streamTag.Generation).
Debug("The 'cli' image in the stable stream is not populated")
}
return populated, nil
}); err != nil {
duration := time.Since(startedWaiting)
return nil, fmt.Errorf("unable to wait for the 'cli' image in the stable stream to populate (waited for %s): %w", duration, err)
Expand Down

0 comments on commit 9543639

Please sign in to comment.