Skip to content

Commit 901ebcc

Browse files
committed
Prevent showing duplicate entry under .status.activeRevisions
Updating `ClusterExtension` with duplicate entry under `.status.activeRevisions` fails. Thus, we repopulate it from the installed and rolling out revisions.
1 parent 1fa4169 commit 901ebcc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

internal/operator-controller/controllers/boxcutter_reconcile_steps.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ func ApplyBundleWithBoxcutter(a Applier) ReconcileStepFunc {
115115
return nil, err
116116
}
117117

118+
ext.Status.ActiveRevisions = []ocv1.RevisionStatus{}
118119
// Mirror Available/Progressing conditions from the installed revision
119120
if i := state.revisionStates.Installed; i != nil {
120121
for _, cndType := range []string{ocv1.ClusterExtensionRevisionTypeAvailable, ocv1.ClusterExtensionRevisionTypeProgressing} {

0 commit comments

Comments
 (0)