Skip to content

Commit e8b4b69

Browse files
committed
fix(csv): fix unsupported operatorgroup status update
1 parent b851a57 commit e8b4b69

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/controller/operators/olm/operator.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,9 @@ func (a *Operator) transitionCSVState(in v1alpha1.ClusterServiceVersion) (out *v
621621
err = modeSet.Supports(out.GetNamespace(), namespaces)
622622
if err != nil {
623623
logger.WithField("reason", err.Error()).Infof("InstallModeSet does not support OperatorGroup namespace selection")
624-
out.SetPhaseWithEvent(v1alpha1.CSVPhaseFailed, v1alpha1.CSVReasonUnsupportedOperatorGroup, err.Error(), now, a.recorder)
624+
if out.Status.Reason != v1alpha1.CSVReasonUnsupportedOperatorGroup {
625+
out.SetPhaseWithEvent(v1alpha1.CSVPhaseFailed, v1alpha1.CSVReasonUnsupportedOperatorGroup, err.Error(), now, a.recorder)
626+
}
625627
return
626628
}
627629
} else {

0 commit comments

Comments
 (0)