controller-manager: remove deprecated insecure serving from Config

This commit is contained in:
SataQiu 2022-08-31 15:45:40 +08:00
parent 4cb7524e5a
commit 1ae5237a66
2 changed files with 3 additions and 5 deletions

View File

@ -32,10 +32,8 @@ type Config struct {
// LoopbackClientConfig is a config for a privileged loopback connection // LoopbackClientConfig is a config for a privileged loopback connection
LoopbackClientConfig *restclient.Config LoopbackClientConfig *restclient.Config
// TODO: remove deprecated insecure serving Authentication apiserver.AuthenticationInfo
InsecureServing *apiserver.DeprecatedInsecureServingInfo Authorization apiserver.AuthorizationInfo
Authentication apiserver.AuthenticationInfo
Authorization apiserver.AuthorizationInfo
// the general kube client // the general kube client
Client *clientset.Clientset Client *clientset.Clientset

View File

@ -51,7 +51,7 @@ func (kubeControllerManagerTester) StartTestServer(t kubectrlmgrtesting.Logger,
if err != nil { if err != nil {
return nil, nil, nil, nil, err return nil, nil, nil, nil, err
} }
return gotResult.Options.SecureServing, gotResult.Config.SecureServing, gotResult.Config.InsecureServing, gotResult.TearDownFn, err return gotResult.Options.SecureServing, gotResult.Config.SecureServing, nil, gotResult.TearDownFn, err
} }
type cloudControllerManagerTester struct{} type cloudControllerManagerTester struct{}