type componentTester … type kubeControllerManagerTester … func (kubeControllerManagerTester) StartTestServer(ctx context.Context, customFlags []string) (*options.SecureServingOptionsWithLoopback, *server.SecureServingInfo, func(), error) { … } type cloudControllerManagerTester … func (cloudControllerManagerTester) StartTestServer(ctx context.Context, customFlags []string) (*options.SecureServingOptionsWithLoopback, *server.SecureServingInfo, func(), error) { … } type kubeSchedulerTester … func (kubeSchedulerTester) StartTestServer(ctx context.Context, customFlags []string) (*options.SecureServingOptionsWithLoopback, *server.SecureServingInfo, func(), error) { … } func TestComponentSecureServingAndAuth(t *testing.T) { … } func testComponentWithSecureServing(t *testing.T, tester componentTester, kubeconfig, brokenKubeconfig, token string, extraFlags []string) { … } func intPtr(x int) *int { … } func fakeCloudProviderFactory(io.Reader) (cloudprovider.Interface, error) { … }