Skip to content

Commit d739c64

Browse files
author
Per Goncalves da Silva
committed
Surface revision retrying condition to ClusterExtension
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent 9be3edf commit d739c64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/operator-controller/applier/boxcutter.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,9 @@ func (bc *Boxcutter) apply(ctx context.Context, contentFS fs.FS, ext *ocv1.Clust
363363
if progressingCondition == nil && availableCondition == nil && succeededCondition == nil {
364364
return false, "New revision created", nil
365365
} else if progressingCondition != nil && progressingCondition.Status == metav1.ConditionTrue {
366+
if progressingCondition.Reason == ocv1.ClusterExtensionRevisionReasonRetrying {
367+
return false, "", errors.New(progressingCondition.Message)
368+
}
366369
return false, progressingCondition.Message, nil
367370
} else if availableCondition != nil && availableCondition.Status != metav1.ConditionTrue {
368371
return false, "", errors.New(availableCondition.Message)

0 commit comments

Comments
 (0)