Skip to content

Commit 0956e3b

Browse files
Merge pull request #146 from enj/enj/i/removed_state
Make it clear that we do not support the removed state
2 parents 7045e0e + 6d21ced commit 0956e3b

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
@@ -248,7 +248,6 @@ func (c *authOperator) Key() (metav1.Object, error) {
248248
func (c *authOperator) Sync(obj metav1.Object) error {
249249
operatorConfig := obj.(*operatorv1.Authentication)
250250

251-
// TODO bump and use IsOperatorManaged
252251
if operatorConfig.Spec.ManagementState != operatorv1.Managed {
253252
return nil // TODO do something better for all states
254253
}

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)