mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-01 09:18:45 +00:00
define some default kube-apiserver flags for tests disabling unneded controllers
This commit is contained in:
committed by
Swetha Repakula
parent
c09e4b2b0f
commit
9844402a90
@@ -98,3 +98,11 @@ func SharedEtcd() *storagebackend.Config {
|
|||||||
cfg.Transport.ServerList = []string{GetEtcdURL()}
|
cfg.Transport.ServerList = []string{GetEtcdURL()}
|
||||||
return cfg
|
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.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user