Skip to content

Commit 8573fb5

Browse files
xiezhuojin谢卓晋
andauthored
preserve registry config (#147)
Co-authored-by: 谢卓晋 <xzj01765782@alibaba-inc.com>
1 parent 9a3e85d commit 8573fb5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

cmd/kubesolo/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ func cleanStaleState(basePath string) {
303303
if name == "containerd" || name == "containerd-shim-runc-v2" || name == "crun" {
304304
continue
305305
}
306+
// Preserve registry
307+
if name == "registry" {
308+
continue
309+
}
306310

307311
target := filepath.Join(containerdDir, name)
308312
if err := os.RemoveAll(target); err == nil {

0 commit comments

Comments
 (0)