Skip to content

Commit 4f4c8af

Browse files
committed
pkg/cvo/availableupdates: Fix "Retreived" -> "Retrieved" typo
Typo is from 58356de (*: Port from Update to Release for ClusterVersion status, 2020-07-24, #419).
1 parent d3e90d9 commit 4f4c8af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/cvo/availableupdates.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ func calculateAvailableUpdatesStatus(ctx context.Context, clusterID string, prox
215215
}
216216
}
217217

218-
cvoCurrent, err = convertRetreivedUpdateToRelease(current)
218+
cvoCurrent, err = convertRetrievedUpdateToRelease(current)
219219
if err != nil {
220220
return cvoCurrent, nil, configv1.ClusterOperatorStatusCondition{
221221
Type: configv1.RetrievedUpdates, Status: configv1.ConditionFalse, Reason: "ResponseInvalid",
@@ -225,7 +225,7 @@ func calculateAvailableUpdatesStatus(ctx context.Context, clusterID string, prox
225225

226226
var cvoUpdates []configv1.Release
227227
for _, update := range updates {
228-
cvoUpdate, err := convertRetreivedUpdateToRelease(update)
228+
cvoUpdate, err := convertRetrievedUpdateToRelease(update)
229229
if err != nil {
230230
return cvoCurrent, nil, configv1.ClusterOperatorStatusCondition{
231231
Type: configv1.RetrievedUpdates, Status: configv1.ConditionFalse, Reason: "ResponseInvalid",
@@ -243,7 +243,7 @@ func calculateAvailableUpdatesStatus(ctx context.Context, clusterID string, prox
243243
}
244244
}
245245

246-
func convertRetreivedUpdateToRelease(update cincinnati.Update) (configv1.Release, error) {
246+
func convertRetrievedUpdateToRelease(update cincinnati.Update) (configv1.Release, error) {
247247
cvoUpdate := configv1.Release{
248248
Version: update.Version.String(),
249249
Image: update.Image,

0 commit comments

Comments
 (0)