From 306a9e57707e58d8e24d2ff2f9d1ba8b2ac98791 Mon Sep 17 00:00:00 2001 From: Nick Kubala Date: Thu, 8 Apr 2021 15:17:32 -0700 Subject: [PATCH] Support --cache-artifacts flag for render --- cmd/skaffold/app/cmd/flags.go | 2 +- docs/content/en/docs/references/cli/_index.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/skaffold/app/cmd/flags.go b/cmd/skaffold/app/cmd/flags.go index fa8da0be11a..b0ce7256d3e 100644 --- a/cmd/skaffold/app/cmd/flags.go +++ b/cmd/skaffold/app/cmd/flags.go @@ -110,7 +110,7 @@ var flagRegistry = []Flag{ Value: &opts.CacheArtifacts, DefValue: true, FlagAddMethod: "BoolVar", - DefinedOn: []string{"dev", "build", "run", "debug"}, + DefinedOn: []string{"dev", "build", "run", "debug", "render"}, IsEnum: true, }, { diff --git a/docs/content/en/docs/references/cli/_index.md b/docs/content/en/docs/references/cli/_index.md index 0fd7a8b2c16..9ff011a726b 100644 --- a/docs/content/en/docs/references/cli/_index.md +++ b/docs/content/en/docs/references/cli/_index.md @@ -874,6 +874,7 @@ Examples: Options: --add-skaffold-labels=true: Add Skaffold-specific labels to rendered manifest. If false, custom labels are still applied. Helpful for GitOps model where Skaffold is not the deployer. -a, --build-artifacts=: File containing build result from a previous 'skaffold build --file-output' + --cache-artifacts=true: Set to false to disable default caching of artifacts -d, --default-repo='': Default repository value (overrides global config) --digest-source='local': Set to 'local' to build images locally and use digests from built images; Set to 'remote' to resolve the digest of images by tag from the remote registry; Set to 'none' to use tags directly from the Kubernetes manifests. Set to 'tag' to use tags directly from the build. -f, --filename='skaffold.yaml': Path or URL to the Skaffold config file @@ -898,6 +899,7 @@ Env vars: * `SKAFFOLD_ADD_SKAFFOLD_LABELS` (same as `--add-skaffold-labels`) * `SKAFFOLD_BUILD_ARTIFACTS` (same as `--build-artifacts`) +* `SKAFFOLD_CACHE_ARTIFACTS` (same as `--cache-artifacts`) * `SKAFFOLD_DEFAULT_REPO` (same as `--default-repo`) * `SKAFFOLD_DIGEST_SOURCE` (same as `--digest-source`) * `SKAFFOLD_FILENAME` (same as `--filename`)