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
Copy file name to clipboardExpand all lines: cmd/convertor/main.go
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,7 @@ var (
59
59
concurrencyLimitint
60
60
disableSparsebool
61
61
referrerbool
62
+
retryCountint
62
63
63
64
// tar import/export
64
65
importTarstring
@@ -279,6 +280,7 @@ Version: ` + commitID,
279
280
ConcurrencyLimit: concurrencyLimit,
280
281
DisableSparse: disableSparse,
281
282
Referrer: referrer,
283
+
RetryCount: retryCount,
282
284
}
283
285
} else {
284
286
// Normal registry mode
@@ -307,6 +309,7 @@ Version: ` + commitID,
307
309
ConcurrencyLimit: concurrencyLimit,
308
310
DisableSparse: disableSparse,
309
311
Referrer: referrer,
312
+
RetryCount: retryCount,
310
313
}
311
314
}
312
315
ifoverlaybd!="" {
@@ -393,6 +396,7 @@ func init() {
393
396
rootCmd.Flags().IntVar(&concurrencyLimit, "concurrency-limit", 4, "the number of manifests that can be built at the same time, used for multi-arch images, 0 means no limit")
394
397
rootCmd.Flags().BoolVar(&disableSparse, "disable-sparse", false, "disable sparse file for overlaybd")
395
398
rootCmd.Flags().BoolVar(&referrer, "referrer", false, "push converted manifests with subject, note '--oci' will be enabled automatically if '--referrer' is set, cause the referrer must be in OCI format.")
399
+
rootCmd.Flags().IntVar(&retryCount, "retry-count", 5, "number of retries for registry upload operations when encountering 429 rate limiting")
396
400
397
401
// tar import/export
398
402
rootCmd.Flags().StringVar(&importTar, "import-tar", "", "import image from tar file (OCI layout format)")
0 commit comments