Skip to content

Commit d263ca5

Browse files
committed
pkg/clusterapi/localcontrolplane: set etcd dir
Sets the data dir for etcd. Doing this will set the destination where etcd will write its state and allow us to reuse that stored state.
1 parent 0360da3 commit d263ca5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/clusterapi/localcontrolplane.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ func (c *localControlPlane) Run(ctx context.Context) error {
7676
BinaryAssetsDirectory: c.BinDir,
7777
ControlPlaneStartTimeout: 10 * time.Second,
7878
ControlPlaneStopTimeout: 10 * time.Second,
79+
ControlPlane: envtest.ControlPlane{
80+
Etcd: &envtest.Etcd{
81+
DataDir: c.BinDir,
82+
},
83+
},
7984
}
8085
var err error
8186
c.Cfg, err = c.Env.Start()

0 commit comments

Comments
 (0)