Skip to content

Commit

Permalink
Merge pull request #1016 from openshift-cherrypick-robot/cherry-pick-…
Browse files Browse the repository at this point in the history
…1013-to-release-4.14

[release-4.14] OCPBUGS-26207: pkg/cvo/availableupdates: Only bump LastAttempt on Cincinnati pulls
  • Loading branch information
openshift-merge-bot[bot] committed Jan 8, 2024
2 parents 2a48f5e + 7f1c6ab commit 7c6021d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cvo/availableupdates.go
Expand Up @@ -101,6 +101,7 @@ func (optr *Operator) syncAvailableUpdates(ctx context.Context, config *configv1
upstream = ""
}

optrAvailableUpdates.LastAttempt = time.Now()
optrAvailableUpdates.Upstream = upstream
optrAvailableUpdates.Channel = channel
optrAvailableUpdates.Architecture = desiredArch
Expand Down Expand Up @@ -190,7 +191,6 @@ func (u *availableUpdates) NeedsUpdate(original *configv1.ClusterVersion) *confi
func (optr *Operator) setAvailableUpdates(u *availableUpdates) {
success := false
if u != nil {
u.LastAttempt = time.Now()
if u.Condition.Type == configv1.RetrievedUpdates {
success = u.Condition.Status == configv1.ConditionTrue
} else {
Expand Down

0 comments on commit 7c6021d

Please sign in to comment.