Skip to content

Commit c219cbe

Browse files
committed
changes the flag remove-signatures default to false
Having the flag --remove-signatures as false results to always mirroring the signature as default. Signed-off-by: Alex Guidi <[email protected]>
1 parent 222b071 commit c219cbe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

v2/internal/pkg/cli/executor.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func NewMirrorCmd(log clog.PluggableLoggerInterface) *cobra.Command {
296296
cmd.Flags().IntVar(&opts.Global.MaxNestedPaths, "max-nested-paths", 0, "Number of nested paths, for destination registries that limit nested paths")
297297
cmd.Flags().BoolVar(&opts.Global.StrictArchiving, "strict-archive", false, "If set, generates archives that are strictly less than archiveSize (set in the imageSetConfig). Mirroring will exit in error if a file being archived exceed archiveSize(GB)")
298298
cmd.Flags().StringVar(&opts.RootlessStoragePath, "rootless-storage-path", "", "Override the default container rootless storage path (usually in etc/containers/storage.conf)")
299-
cmd.Flags().BoolVar(&opts.RemoveSignatures, "remove-signatures", true, "Do not copy image signature")
299+
cmd.Flags().BoolVar(&opts.RemoveSignatures, "remove-signatures", false, "Do not copy image signature")
300300
cmd.Flags().BoolVar(&opts.Global.IgnoreReleaseSignature, "ignore-release-signature", false, "Ignore release signature")
301301
HideFlags(cmd)
302302

@@ -1060,8 +1060,6 @@ func (o *ExecutorSchema) setupLogsLevelAndDir() error {
10601060
o.Log.Level(o.Opts.Global.LogLevel)
10611061
// set up location of logs dir
10621062
o.LogsDir = filepath.Join(o.Opts.Global.WorkingDir, logsDir)
1063-
// clean up logs directory
1064-
os.RemoveAll(o.LogsDir)
10651063

10661064
// create logs directory
10671065
err := o.MakeDir.makeDirAll(o.LogsDir, 0755)

0 commit comments

Comments
 (0)