Skip to content

Commit

Permalink
kube-apiserver: create always configmap/extension-apiserver-authentic…
Browse files Browse the repository at this point in the history
…ation

Other components read the configmap and fail if it does not exist. Possibly not
every cluster has a client-ca or a request-header-ca.
  • Loading branch information
sttts committed Aug 22, 2018
1 parent 4c5e615 commit d8bf802
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/master/client_ca_hook.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ type ClientCARegistrationHook struct {
}

func (h ClientCARegistrationHook) PostStartHook(hookContext genericapiserver.PostStartHookContext) error {
// no work to do
if len(h.ClientCA) == 0 && len(h.RequestHeaderCA) == 0 {
return nil
}

// initializing CAs is important so that aggregated API servers can come up with "normal" config.
// We've seen lagging etcd before, so we want to retry this a few times before we decide to crashloop
// the API server on it.
Expand All @@ -68,7 +63,6 @@ func (h ClientCARegistrationHook) PostStartHook(hookContext genericapiserver.Pos
}

return nil

}

// tryToWriteClientCAs is here for unit testing with a fake client. This is a wait.ConditionFunc so the bool
Expand Down

0 comments on commit d8bf802

Please sign in to comment.