Skip to content

Commit

Permalink
Disable /kaniko cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
waTeim committed Aug 15, 2022
1 parent 348018d commit d2fd5c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/executor/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,9 @@ func checkKanikoDir(dir string) error {
return err
}

if err := os.RemoveAll(constants.DefaultKanikoPath); err != nil {
return err
}
//if err := os.RemoveAll(constants.DefaultKanikoPath); err != nil {
// return err
//}
// After remove DefaultKankoPath, the DOKCER_CONFIG env will point to a non-exist dir, so we should update DOCKER_CONFIG env to new dir
if err := os.Setenv("DOCKER_CONFIG", filepath.Join(dir, "/.docker")); err != nil {
return err
Expand Down

0 comments on commit d2fd5c4

Please sign in to comment.