Skip to content

Commit 35324eb

Browse files
everettravenopenshift-cherrypick-robot
authored andcommitted
(bugfix): configure status controller to remove unset versions
Signed-off-by: Bryce Palmer <[email protected]>
1 parent 11e57aa commit 35324eb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/operator/starter.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,11 @@ func prepareOauthAPIServerOperator(
474474
statusControllerOptions = append(statusControllerOptions, apiservercontrollerset.WithStatusControllerPdbCompatibleHighInertia("(APIServer|OAuthServer)"))
475475
}
476476

477+
// configure version removal so it removes versions it doesn't know about.
478+
statusControllerOptions = append(statusControllerOptions, func(ss *status.StatusSyncer) *status.StatusSyncer {
479+
return ss.WithVersionRemoval()
480+
})
481+
477482
const apiServerConditionsPrefix = "APIServer"
478483

479484
apiServerControllers, err := apiservercontrollerset.NewAPIServerControllerSet(

0 commit comments

Comments
 (0)