mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-30 15:02:23 +00:00
define some default kube-apiserver flags for tests disabling unneded controllers
This commit is contained in:
parent
c09e4b2b0f
commit
9844402a90
@ -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.
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user