Also persist the kubelet and the cni state dirs

pull/7631/head
Anders F Björklund 2020-04-13 17:33:48 +02:00
parent 223424652c
commit 8987b1067a
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ func CreateContainerNode(p CreateParams) error {
if err := os.Mkdir(fmt.Sprintf("%s/%s", hostVarVolPath, "minikube"), 0711); err != nil { if err := os.Mkdir(fmt.Sprintf("%s/%s", hostVarVolPath, "minikube"), 0711); err != nil {
return errors.Wrapf(err, "create var dir %s/%s", hostVarVolPath, "minikube") return errors.Wrapf(err, "create var dir %s/%s", hostVarVolPath, "minikube")
} }
hostVarLibSubdirs := []string{"docker", "containerd", "containers"} hostVarLibSubdirs := []string{"docker", "containerd", "containers", "kubelet", "cni"}
for _, subdir := range hostVarLibSubdirs { for _, subdir := range hostVarLibSubdirs {
if err := os.Mkdir(fmt.Sprintf("%s/%s", hostVarVolPath, subdir), 0711); err != nil { if err := os.Mkdir(fmt.Sprintf("%s/%s", hostVarVolPath, subdir), 0711); err != nil {
return errors.Wrapf(err, "create var dir %s/%s", hostVarVolPath, subdir) return errors.Wrapf(err, "create var dir %s/%s", hostVarVolPath, subdir)