Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions api/v1/clusterextensionrevision_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,6 @@ type ClusterExtensionRevisionLifecycleState string
const (
// ClusterExtensionRevisionLifecycleStateActive / "Active" is the default lifecycle state.
ClusterExtensionRevisionLifecycleStateActive ClusterExtensionRevisionLifecycleState = "Active"
// ClusterExtensionRevisionLifecycleStatePaused / "Paused" disables reconciliation of the ClusterExtensionRevision.
// Object changes will not be reconciled. However, status updates will be propagated.
ClusterExtensionRevisionLifecycleStatePaused ClusterExtensionRevisionLifecycleState = "Paused"
// ClusterExtensionRevisionLifecycleStateArchived / "Archived" archives the revision for historical or auditing purposes.
// The revision is removed from the owner list of all other objects previously under management and all objects
// that did not transition to a succeeding revision are deleted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,7 @@ func (d *BoxcutterRevisionStatesGetter) GetRevisionStates(ctx context.Context, e

rs := &RevisionStates{}
for _, rev := range existingRevisionList.Items {
switch rev.Spec.LifecycleState {
case ocv1.ClusterExtensionRevisionLifecycleStateActive,
ocv1.ClusterExtensionRevisionLifecycleStatePaused:
default:
// Skip anything not active or paused, which should only be "Archived".
if rev.Spec.LifecycleState == ocv1.ClusterExtensionRevisionLifecycleStateArchived {
continue
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,6 @@ func (c *ClusterExtensionRevisionReconciler) toBoxcutterRevision(ctx context.Con
}
r.Phases = append(r.Phases, phase)
}

if rev.Spec.LifecycleState == ocv1.ClusterExtensionRevisionLifecycleStatePaused {
opts = append(opts, boxcutter.WithPaused{})
}
return r, opts, nil
}

Expand Down
Loading