Skip to content

Commit 6d21ced

Browse files
committed
Make it clear that we do not support the removed state
Signed-off-by: Monis Khan <[email protected]>
1 parent 59a263a commit 6d21ced

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/operator2/operator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,6 @@ func (c *authOperator) Key() (metav1.Object, error) {
245245
func (c *authOperator) Sync(obj metav1.Object) error {
246246
operatorConfig := obj.(*operatorv1.Authentication)
247247

248-
// TODO bump and use IsOperatorManaged
249248
if operatorConfig.Spec.ManagementState != operatorv1.Managed {
250249
return nil // TODO do something better for all states
251250
}

pkg/operator2/starter.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,9 @@ func RunOperator(ctx *controllercmd.ControllerContext) error {
158158

159159
configOverridesController := unsupportedconfigoverridescontroller.NewUnsupportedConfigOverridesController(operatorClient, ctx.EventRecorder)
160160
logLevelController := loglevel.NewClusterOperatorLoggingController(operatorClient, ctx.EventRecorder)
161-
// TODO remove this controller once we support Unmanaged and Removed
161+
// TODO remove this controller once we support Removed
162162
managementStateController := management.NewOperatorManagementStateController(clusterOperatorName, operatorClient, ctx.EventRecorder)
163+
management.SetOperatorNotRemovable()
163164
// TODO move to config observers
164165
// configobserver.NewConfigObserver(...)
165166

0 commit comments

Comments
 (0)