Skip to content

Commit d8bf802

Browse files
committed
kube-apiserver: create always configmap/extension-apiserver-authentication
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.
1 parent 4c5e615 commit d8bf802

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/master/client_ca_hook.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ type ClientCARegistrationHook struct {
4141
}
4242

4343
func (h ClientCARegistrationHook) PostStartHook(hookContext genericapiserver.PostStartHookContext) error {
44-
// no work to do
45-
if len(h.ClientCA) == 0 && len(h.RequestHeaderCA) == 0 {
46-
return nil
47-
}
48-
4944
// initializing CAs is important so that aggregated API servers can come up with "normal" config.
5045
// We've seen lagging etcd before, so we want to retry this a few times before we decide to crashloop
5146
// the API server on it.
@@ -68,7 +63,6 @@ func (h ClientCARegistrationHook) PostStartHook(hookContext genericapiserver.Pos
6863
}
6964

7065
return nil
71-
7266
}
7367

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

0 commit comments

Comments
 (0)