fix kube-apiserver poststarthook additions to avoid duplicating them

This commit is contained in:
David Eads 2019-11-26 14:05:06 -05:00
parent e4ad76e298
commit 3c1dc89d98
2 changed files with 6 additions and 0 deletions

View File

@ -120,6 +120,9 @@ func createAggregatorConfig(
}, },
} }
// we need to clear the poststarthooks so we don't add them multiple times to all the servers (that fails)
aggregatorConfig.GenericConfig.PostStartHooks = map[string]genericapiserver.PostStartHookConfigEntry{}
return aggregatorConfig, nil return aggregatorConfig, nil
} }

View File

@ -92,6 +92,9 @@ func createAPIExtensionsConfig(
}, },
} }
// we need to clear the poststarthooks so we don't add them multiple times to all the servers (that fails)
apiextensionsConfig.GenericConfig.PostStartHooks = map[string]genericapiserver.PostStartHookConfigEntry{}
return apiextensionsConfig, nil return apiextensionsConfig, nil
} }