You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- introduced --output/-o (mut.exclusive with --overwrite)
- add more examples
- add more integration tests
FixesGoogleContainerTools#6456.
Signed-off-by: Ahmet Alp Balkan <[email protected]>
Copy file name to clipboardExpand all lines: docs/content/en/docs/references/cli/_index.md
+8
Original file line number
Diff line number
Diff line change
@@ -803,9 +803,16 @@ Examples:
803
803
# Update "skaffold.yaml" in the current folder to version "skaffold/v1"
804
804
skaffold fix --version skaffold/v1
805
805
806
+
# Update "skaffold.yaml" in the current folder in-place
807
+
skaffold fix --overwrite
808
+
809
+
# Update "skaffold.yaml" and write the output to a new file
810
+
skaffold fix --output skaffold.new.yaml
811
+
806
812
Options:
807
813
-f, --filename='skaffold.yaml': Path or URL to the Skaffold config file
808
814
-m, --module=[]: Filter Skaffold configs to only the provided named modules
815
+
-o, --output='': File to write the changed config (instead of standard output)
809
816
--overwrite=false: Overwrite original config with fixed config
810
817
--remote-cache-dir='': Specify the location of the git repositories cache (default $HOME/.skaffold/repos)
811
818
--sync-remote-cache='missing': Controls how Skaffold manages the remote config cache (see `remote-cache-dir`). One of `always` (default), `missing`, or `never`. `always` syncs remote repositories to latest on access. `missing` only clones remote repositories if they do not exist locally. `never` means the user takes responsibility for updating remote repositories.
@@ -822,6 +829,7 @@ Env vars:
822
829
823
830
*`SKAFFOLD_FILENAME` (same as `--filename`)
824
831
*`SKAFFOLD_MODULE` (same as `--module`)
832
+
*`SKAFFOLD_OUTPUT` (same as `--output`)
825
833
*`SKAFFOLD_OVERWRITE` (same as `--overwrite`)
826
834
*`SKAFFOLD_REMOTE_CACHE_DIR` (same as `--remote-cache-dir`)
827
835
*`SKAFFOLD_SYNC_REMOTE_CACHE` (same as `--sync-remote-cache`)
0 commit comments