File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
internal/testing/integration/internal Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -156,10 +156,11 @@ func (te *Environment) Stop() error {
156
156
}
157
157
158
158
// getAPIServerFlags returns flags to be used with the Kubernetes API server.
159
+ // it returns empty slice for api server defined defaults to be applied if no args specified
159
160
func (te Environment ) getAPIServerFlags () []string {
160
161
// Set default API server flags if not set.
161
162
if len (te .KubeAPIServerFlags ) == 0 {
162
- return DefaultKubeAPIServerFlags
163
+ return [] string {}
163
164
}
164
165
// Check KubeAPIServerFlags contains service-cluster-ip-range, if not, set default value to service-cluster-ip-range
165
166
containServiceClusterIPRange := false
Original file line number Diff line number Diff line change 1
1
package internal
2
2
3
3
var APIServerDefaultArgs = []string {
4
+ // Allow tests to run offline, by preventing API server from attempting to
5
+ // use default route to determine its --advertise-address
6
+ "--advertise-address=127.0.0.1" ,
4
7
"--etcd-servers={{ if .EtcdURL }}{{ .EtcdURL.String }}{{ end }}" ,
5
8
"--cert-dir={{ .CertDir }}" ,
6
9
"--insecure-port={{ if .URL }}{{ .URL.Port }}{{ end }}" ,
7
10
"--insecure-bind-address={{ if .URL }}{{ .URL.Hostname }}{{ end }}" ,
8
11
"--secure-port={{ if .SecurePort }}{{ .SecurePort }}{{ end }}" ,
12
+ "--admission-control=AlwaysAdmit" ,
13
+ "--service-cluster-ip-range=10.0.0.0/24" ,
14
+ "--allow-privileged=true" ,
9
15
}
10
16
11
17
func DoAPIServerArgDefaulting (args []string ) []string {
You can’t perform that action at this time.
0 commit comments