Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Bryce Palmer <[email protected]>
  • Loading branch information
everettraven committed Jan 7, 2025
1 parent 705dcdb commit 3114152
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions openshift-kube-apiserver/openshiftkubeapiserver/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func OpenShiftKubeAPIServerConfigPatch(genericConfig *genericapiserver.Config, k

openshiftAPIServiceReachabilityCheck := newOpenshiftAPIServiceReachabilityCheck(genericConfig.PublicAddress)

oauthAPIServiceTerminationCondition := func() (bool, string) {
oauthAPIServiceTerminationCondition := func() (bool, string) {
authnCache := authncache.NewAuthnCache(openshiftInformers.OpenshiftConfigInformers.Config().V1().Authentications())
err := wait.PollImmediate(1*time.Second, 30*time.Second, func() (bool, error) {
return authnCache.HasSynced(), nil
Expand All @@ -126,8 +126,8 @@ func OpenShiftKubeAPIServerConfigPatch(genericConfig *genericapiserver.Config, k
}
}
}
return false, ""
}
return false, ""
}
oauthAPIServiceReachabilityCheck := newOAuthAPIServiceReachabilityCheck(genericConfig.PublicAddress, oauthAPIServiceTerminationCondition)

genericConfig.ReadyzChecks = append(genericConfig.ReadyzChecks, openshiftAPIServiceReachabilityCheck, oauthAPIServiceReachabilityCheck)
Expand Down

0 comments on commit 3114152

Please sign in to comment.