Skip to content

Commit b77fc97

Browse files
author
Priya Wadhwa
committed
Set artifact caching on by default
1 parent 1603de1 commit b77fc97

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cmd/skaffold/app/cmd/flags.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ var FlagRegistry = []Flag{
8484
Name: "cache-artifacts",
8585
Usage: "Set to true to enable caching of artifacts",
8686
Value: &opts.CacheArtifacts,
87-
DefValue: false,
87+
DefValue: true,
8888
FlagAddMethod: "BoolVar",
8989
DefinedOn: []string{"dev", "build", "run", "debug"},
9090
},

docs/content/en/docs/references/cli/_index.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Examples:
116116
117117
Options:
118118
-b, --build-image=[]: Choose which artifacts to build. Artifacts with image names that contain the expression will be built only. Default is to build sources for all artifacts
119-
--cache-artifacts=false: Set to true to enable caching of artifacts
119+
--cache-artifacts=true: Set to true to enable caching of artifacts
120120
--cache-file='': Specify the location of the cache file (default $HOME/.skaffold/cache)
121121
-d, --default-repo='': Default repository value (overrides global config)
122122
--enable-rpc=false: Enable gRPC for exposing Skaffold events (true by default for `skaffold dev`)
@@ -283,7 +283,7 @@ Run a pipeline in debug mode
283283
284284
285285
Options:
286-
--cache-artifacts=false: Set to true to enable caching of artifacts
286+
--cache-artifacts=true: Set to true to enable caching of artifacts
287287
--cache-file='': Specify the location of the cache file (default $HOME/.skaffold/cache)
288288
--cleanup=true: Delete deployments after dev or debug mode is interrupted
289289
-d, --default-repo='': Default repository value (overrides global config)
@@ -413,7 +413,7 @@ Run a pipeline in development mode
413413
414414
415415
Options:
416-
--cache-artifacts=false: Set to true to enable caching of artifacts
416+
--cache-artifacts=true: Set to true to enable caching of artifacts
417417
--cache-file='': Specify the location of the cache file (default $HOME/.skaffold/cache)
418418
--cleanup=true: Delete deployments after dev or debug mode is interrupted
419419
-d, --default-repo='': Default repository value (overrides global config)
@@ -574,7 +574,7 @@ Examples:
574574
skaffold run -p <profile>
575575
576576
Options:
577-
--cache-artifacts=false: Set to true to enable caching of artifacts
577+
--cache-artifacts=true: Set to true to enable caching of artifacts
578578
--cache-file='': Specify the location of the cache file (default $HOME/.skaffold/cache)
579579
--cleanup=true: Delete deployments after dev or debug mode is interrupted
580580
-d, --default-repo='': Default repository value (overrides global config)

0 commit comments

Comments
 (0)