diff --git a/test/integration/framework/controlplane_utils.go b/test/integration/framework/controlplane_utils.go index 2af4f1a4f1b..30ef35663bf 100644 --- a/test/integration/framework/controlplane_utils.go +++ b/test/integration/framework/controlplane_utils.go @@ -98,3 +98,11 @@ func SharedEtcd() *storagebackend.Config { cfg.Transport.ServerList = []string{GetEtcdURL()} return cfg } + +// DefaultAPIServerFlags returns the default flags used to run kube-apiserver on tests +func DefaultTestServerFlags() []string { + return []string{ + "--endpoint-reconciler-type=none", // Disable Endpoints Reconciler so it does not keep failing trying to use 127.0.0.1 as a valid Endpoint. + "--disable-admission-plugins=ServiceAccount", // Disable ServiceAccount admission plugin as we don't have serviceaccount controller running. + } +}