Skip to content

Commit d9a7f2a

Browse files
committed
cv != nil
Signed-off-by: Nick Bottari <nbottari9@gmail.com>
1 parent 8f28014 commit d9a7f2a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/cli/admin/upgrade/recommend/alerts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (o *options) alerts(ctx context.Context) ([]acceptableCondition, error) {
3030

3131
// if the AcceptRisks feature gate AND hypershift is not enabled,
3232
// the CVO is handling alerts and will generate the Recommended condition if needed
33-
if cv == nil && isAcceptRisksEnabled(featureGates, cv.Status.Desired.Version) && !isHypershiftEnabled(infrastructure) {
33+
if cv != nil && isAcceptRisksEnabled(featureGates, cv.Status.Desired.Version) && !isHypershiftEnabled(infrastructure) {
3434
return nil, nil
3535
}
3636
}

0 commit comments

Comments
 (0)