Skip to content

Commit 0ffee99

Browse files
author
Mengqi Yu
committed
fix testenv
1 parent 4376e6e commit 0ffee99

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/envtest/server.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,13 @@ func (te *Environment) Start() (*rest.Config, error) {
118118
} else {
119119
te.ControlPlane = integration.ControlPlane{}
120120
te.ControlPlane.APIServer = &integration.APIServer{Args: defaultKubeAPIServerFlags}
121+
te.ControlPlane.Etcd = &integration.Etcd{}
121122

122123
if os.Getenv(envKubeAPIServerBin) == "" {
123124
te.ControlPlane.APIServer.Path = defaultAssetPath("kube-apiserver")
124125
}
125126
if os.Getenv(envEtcdBin) == "" {
126-
te.ControlPlane.Etcd = &integration.Etcd{Path: defaultAssetPath("etcd")}
127+
te.ControlPlane.Etcd.Path = defaultAssetPath("etcd")
127128
}
128129
if os.Getenv(envKubectlBin) == "" {
129130
// we can't just set the path manually (it's behind a function), so set the environment variable instead

0 commit comments

Comments
 (0)