mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-06-09 08:55:55 -04:00
Remove impossible error check controlplane/apiserver/server.go
This commit is contained in:
parent
f00eee5a40
commit
1c8204ded1
1 changed files with 0 additions and 3 deletions
|
|
@ -154,9 +154,6 @@ func (c completedConfig) New(name string, delegationTarget genericapiserver.Dele
|
|||
c.Extra.PeerEndpointLeaseReconciler,
|
||||
c.Extra.PeerEndpointReconcileInterval,
|
||||
client)
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create peer endpoint lease controller: %w", err)
|
||||
}
|
||||
s.GenericAPIServer.AddPostStartHookOrDie("peer-endpoint-reconciler-controller",
|
||||
func(hookContext genericapiserver.PostStartHookContext) error {
|
||||
peerEndpointCtrl.Start(hookContext.StopCh)
|
||||
|
|
|
|||
Loading…
Reference in a new issue