Cleanup obsolete manifests and cache entries.
This command will cleanup rendered manifests and cache entries that are no longer needed.
By default, it will cleanup both rendered manifests and cache entries, but you can control
what to cleanup with the flags --manifests and --cache.
# Cleanup all rendered manifests and cache entries
# Cleanup only rendered manifests
# List cache entries that would be cleaned up
myks cleanup --cache --dry-run
--cache cleanup cache entries
--dry-run print what would be cleaned up without actually cleaning up
-h, --help help for cleanup
--manifests cleanup rendered manifests
-a, --async int sets the number of applications to be processed in parallel
the default (0) is no limit
--buffer-plugin-output buffer plugin output instead of streaming (useful for parallel execution)
--config string config file (default is the first .myks.yaml up the directory tree)
-l, --log-level string set the logging level (default "info")
--print-stats print tool resource statistics directly to stdout
--smart-mode.base-revision string base revision to compare against in Smart Mode
if not provided, only local changes will be considered
--smart-mode.only-print string[="text"] only print the list of environments and applications that would be rendered in Smart Mode
accepted values: "text" (default), "json"
legacy boolean values (true, 1, yes) are treated as "text" for backward compatibility
legacy falsey values (false, 0, no) disable Smart Mode only-print (same as leaving it empty)
when used without a value (--smart-mode.only-print), defaults to "text"