Skip to content

Commit 0d98698

Browse files
author
Per Goncalves da Silva
committed
Remove Paused ClusterExtensionRevision LifecycleState
Signed-off-by: Per Goncalves da Silva <[email protected]>
1 parent d44cbaf commit 0d98698

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

api/v1/clusterextensionrevision_types.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,6 @@ type ClusterExtensionRevisionLifecycleState string
9696
const (
9797
// ClusterExtensionRevisionLifecycleStateActive / "Active" is the default lifecycle state.
9898
ClusterExtensionRevisionLifecycleStateActive ClusterExtensionRevisionLifecycleState = "Active"
99-
// ClusterExtensionRevisionLifecycleStatePaused / "Paused" disables reconciliation of the ClusterExtensionRevision.
100-
// Object changes will not be reconciled. However, status updates will be propagated.
101-
ClusterExtensionRevisionLifecycleStatePaused ClusterExtensionRevisionLifecycleState = "Paused"
10299
// ClusterExtensionRevisionLifecycleStateArchived / "Archived" archives the revision for historical or auditing purposes.
103100
// The revision is removed from the owner list of all other objects previously under management and all objects
104101
// that did not transition to a succeeding revision are deleted.

internal/operator-controller/controllers/boxcutter_reconcile_steps.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@ func (d *BoxcutterRevisionStatesGetter) GetRevisionStates(ctx context.Context, e
5050

5151
rs := &RevisionStates{}
5252
for _, rev := range existingRevisionList.Items {
53-
switch rev.Spec.LifecycleState {
54-
case ocv1.ClusterExtensionRevisionLifecycleStateActive,
55-
ocv1.ClusterExtensionRevisionLifecycleStatePaused:
56-
default:
57-
// Skip anything not active or paused, which should only be "Archived".
53+
if rev.Spec.LifecycleState == ocv1.ClusterExtensionRevisionLifecycleStateArchived {
5854
continue
5955
}
6056

internal/operator-controller/controllers/clusterextensionrevision_controller.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -450,10 +450,6 @@ func (c *ClusterExtensionRevisionReconciler) toBoxcutterRevision(ctx context.Con
450450
}
451451
r.Phases = append(r.Phases, phase)
452452
}
453-
454-
if rev.Spec.LifecycleState == ocv1.ClusterExtensionRevisionLifecycleStatePaused {
455-
opts = append(opts, boxcutter.WithPaused{})
456-
}
457453
return r, opts, nil
458454
}
459455

0 commit comments

Comments
 (0)