apiserver: make loopback logic in SecureServingOptions reusable

This commit is contained in:
Dr. Stefan Schimanski
2018-07-04 17:08:23 +02:00
parent 16c5ba4114
commit dc0a736d1e
5 changed files with 37 additions and 30 deletions

View File

@@ -433,7 +433,7 @@ func BuildGenericConfig(
if insecureServingInfo, lastErr = s.InsecureServing.ApplyTo(genericConfig); lastErr != nil {
return
}
if lastErr = s.SecureServing.ApplyTo(genericConfig); lastErr != nil {
if lastErr = s.SecureServing.ApplyTo(&genericConfig.SecureServing, &genericConfig.LoopbackClientConfig); lastErr != nil {
return
}
if lastErr = s.Authentication.ApplyTo(genericConfig); lastErr != nil {