add caching copy layers back (#1518)

* add caching copy layers back

* fix test

* lint

* fix test - 2

* Add integration test

* fix lint
This commit is contained in:
Tejal Desai
2020-12-11 00:25:03 -08:00
committed by GitHub
parent dde98a8e73
commit b04399eeac
11 changed files with 405 additions and 16 deletions
+1
View File
@@ -179,6 +179,7 @@ func addKanikoOptionsFlags() {
RootCmd.PersistentFlags().BoolVarP(&opts.SkipUnusedStages, "skip-unused-stages", "", false, "Build only used stages if defined to true. Otherwise it builds by default all stages, even the unnecessaries ones until it reaches the target stage / end of Dockerfile")
RootCmd.PersistentFlags().BoolVarP(&opts.RunV2, "use-new-run", "", false, "Use the experimental run implementation for detecting changes without requiring file system snapshots.")
RootCmd.PersistentFlags().Var(&opts.Git, "git", "Branch to clone if build context is a git repository")
RootCmd.PersistentFlags().BoolVarP(&opts.CacheCopyLayers, "cache-copy-layers", "", false, "Caches copy layers")
}
// addHiddenFlags marks certain flags as hidden from the executor help text