Skip to content

Commit a1e43b4

Browse files
committed
define some default kube-apiserver flags for tests disabling unneded controllers
1 parent ae5543e commit a1e43b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/integration/framework/controlplane_utils.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,3 +98,11 @@ func SharedEtcd() *storagebackend.Config {
9898
cfg.Transport.ServerList = []string{GetEtcdURL()}
9999
return cfg
100100
}
101+
102+
// DefaultAPIServerFlags returns the default flags used to run kube-apiserver on tests
103+
func DefaultTestServerFlags() []string {
104+
return []string{
105+
"--endpoint-reconciler-type=none", // Disable Endpoints Reconciler so it does not keep failing trying to use 127.0.0.1 as a valid Endpoint.
106+
"--disable-admission-plugins=ServiceAccount", // Disable ServiceAccount admission plugin as we don't have serviceaccount controller running.
107+
}
108+
}

0 commit comments

Comments
 (0)