mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-19 18:01:47 +02:00
Rename flags and default caching to false
Rename --use-cache to --cache, and --cache to --cache-repo to clarify what the flags are used for. Default caching to false.
This commit is contained in:
Vendored
+1
-1
@@ -57,7 +57,7 @@ func RetrieveLayer(opts *config.KanikoOptions, cacheKey string) (v1.Image, error
|
||||
// Destination returns the repo where the layer should be stored
|
||||
// If no cache is specified, one is inferred from the destination provided
|
||||
func Destination(opts *config.KanikoOptions, cacheKey string) (string, error) {
|
||||
cache := opts.Cache
|
||||
cache := opts.CacheRepo
|
||||
if cache == "" {
|
||||
destination := opts.Destinations[0]
|
||||
destRef, err := name.NewTag(destination, name.WeakValidation)
|
||||
|
||||
Reference in New Issue
Block a user