File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ const (
41
41
defaultKubebuilderPath = "/usr/local/kubebuilder/bin"
42
42
StartTimeout = 60
43
43
StopTimeout = 60
44
+
45
+ defaultKubebuilderControlPlaneStartTimeout = 20 * time .Second
46
+ defaultKubebuilderControlPlaneStopTimeout = 20 * time .Second
44
47
)
45
48
46
49
func defaultAssetPath (binary string ) string {
@@ -118,12 +121,13 @@ func (te *Environment) Start() (*rest.Config, error) {
118
121
} else {
119
122
te .ControlPlane = integration.ControlPlane {}
120
123
te .ControlPlane .APIServer = & integration.APIServer {Args : defaultKubeAPIServerFlags }
124
+ te .ControlPlane .Etcd = & integration.Etcd {}
121
125
122
126
if os .Getenv (envKubeAPIServerBin ) == "" {
123
127
te .ControlPlane .APIServer .Path = defaultAssetPath ("kube-apiserver" )
124
128
}
125
129
if os .Getenv (envEtcdBin ) == "" {
126
- te .ControlPlane .Etcd = & integration. Etcd { Path : defaultAssetPath ("etcd" )}
130
+ te .ControlPlane .Etcd . Path = defaultAssetPath ("etcd" )
127
131
}
128
132
if os .Getenv (envKubectlBin ) == "" {
129
133
// we can't just set the path manually (it's behind a function), so set the environment variable instead
@@ -191,6 +195,8 @@ func (te *Environment) defaultTimeouts() error {
191
195
if err != nil {
192
196
return err
193
197
}
198
+ } else {
199
+ te .ControlPlaneStartTimeout = defaultKubebuilderControlPlaneStartTimeout
194
200
}
195
201
}
196
202
@@ -200,6 +206,8 @@ func (te *Environment) defaultTimeouts() error {
200
206
if err != nil {
201
207
return err
202
208
}
209
+ } else {
210
+ te .ControlPlaneStopTimeout = defaultKubebuilderControlPlaneStopTimeout
203
211
}
204
212
}
205
213
return nil
You can’t perform that action at this time.
0 commit comments