From af3fe16f0f29bcc52dd0ed0cc8c45a91c2f91fe8 Mon Sep 17 00:00:00 2001 From: thomhurst <9139608+thomhurst@users.noreply.github.com> Date: Tue, 1 Dec 2026 20:23:14 +0000 Subject: [PATCH] chore: Update skopeo CLI options --- docs/docs/mp-packages/cli/skopeo.md | 1 + .../Generated/Skopeo.CommandCoverage.json | 2 +- .../Generated/Skopeo.Generation.json | 4 +-- .../Options/SkopeoCopyOptions.Generated.cs | 32 ++++++++++++++++--- .../Options/SkopeoDeleteOptions.Generated.cs | 8 ++++- .../Options/SkopeoInspectOptions.Generated.cs | 8 ++++- .../SkopeoListTagsOptions.Generated.cs | 8 ++++- .../Options/SkopeoOptions.Generated.cs | 6 ++++ .../Options/SkopeoSyncOptions.Generated.cs | 30 +++++++++++++---- 9 files changed, 83 insertions(+), 16 deletions(-) diff --git a/docs/docs/mp-packages/cli/skopeo.md b/docs/docs/mp-packages/cli/skopeo.md index f15b9666e9d..3e4424ad6a9 100644 --- a/docs/docs/mp-packages/cli/skopeo.md +++ b/docs/docs/mp-packages/cli/skopeo.md @@ -45,6 +45,7 @@ Global options are rendered before the selected subcommand. | `--policy` | `Policy` | All editions | Path to a trust policy file | | `--registries.d` | `RegistriesD` | All editions | use registry configuration files in DIR (e.g. for container signature storage) | | `--tmpdir` | `Tmpdir` | All editions | directory used to store temporary files | +| `--user-agent-prefix` | `UserAgentPrefix` | All editions | prefix to add to the user agent string | ## Commands diff --git a/src/ModularPipelines.Skopeo/Generated/Skopeo.CommandCoverage.json b/src/ModularPipelines.Skopeo/Generated/Skopeo.CommandCoverage.json index 60101644e96..52050c818f1 100644 --- a/src/ModularPipelines.Skopeo/Generated/Skopeo.CommandCoverage.json +++ b/src/ModularPipelines.Skopeo/Generated/Skopeo.CommandCoverage.json @@ -1,7 +1,7 @@ { "formatVersion": 1, "toolName": "skopeo", - "toolVersion": "1.13.3", + "toolVersion": "1.21.0-dev", "commandCount": 11, "commandTreeSha256": "71df545926b8f3395c60d1ed9e037569395c16b401bff0417eacdfb16d3d7908", "commands": [ diff --git a/src/ModularPipelines.Skopeo/Generated/Skopeo.Generation.json b/src/ModularPipelines.Skopeo/Generated/Skopeo.Generation.json index 5485c4eecff..e08cf34520d 100644 --- a/src/ModularPipelines.Skopeo/Generated/Skopeo.Generation.json +++ b/src/ModularPipelines.Skopeo/Generated/Skopeo.Generation.json @@ -1,7 +1,7 @@ { "formatVersion": 2, "toolName": "skopeo", - "toolVersion": "1.13.3", + "toolVersion": "1.21.0-dev", "commandTreeSha256": "71df545926b8f3395c60d1ed9e037569395c16b401bff0417eacdfb16d3d7908", - "generatorSourceSha256": "5af20c5a8878ce0264039475faa6f665af10eac66bc1fa0432c8f4325f23b722" + "generatorSourceSha256": "92f4770b3160b564cd039bdfbb76011f3404084a70eae3fedd9855ba8306c692" } diff --git a/src/ModularPipelines.Skopeo/Options/SkopeoCopyOptions.Generated.cs b/src/ModularPipelines.Skopeo/Options/SkopeoCopyOptions.Generated.cs index 393d89c672c..94bc9956e01 100644 --- a/src/ModularPipelines.Skopeo/Options/SkopeoCopyOptions.Generated.cs +++ b/src/ModularPipelines.Skopeo/Options/SkopeoCopyOptions.Generated.cs @@ -58,7 +58,7 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) public bool? All { get; set; } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--authfile", Format = OptionFormat.EqualsSeparated)] public string? Authfile { get; set; } @@ -70,7 +70,7 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) public IEnumerable? DecryptionKey { get; set; } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--dest-authfile", Format = OptionFormat.EqualsSeparated)] public string? DestAuthfile { get; set; } @@ -118,6 +118,12 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) [CliFlag("--dest-decompress")] public bool? DestDecompress { get; set; } + /// + /// Force exclusive use of the compression algorithm set in --dest-compress-format + /// + [CliFlag("--dest-force-compress-format")] + public bool? DestForceCompressFormat { get; set; } + /// /// Access the registry anonymously /// @@ -192,6 +198,12 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) [CliOption("--format", ShortForm = "-f", Format = OptionFormat.EqualsSeparated)] public SkopeoCopyFormat? Format { get; set; } + /// + /// Maximum number of image layers to be copied (pulled/pushed) simultaneously. Not setting this field will fall back to containers/image defaults. + /// + [CliOption("--image-parallel-copies", Format = OptionFormat.EqualsSeparated)] + public ulong? ImageParallelCopies { get; set; } + /// /// How to handle multi-architecture images (system, all, or index-only) /// @@ -211,11 +223,17 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) public bool? Quiet { get; set; } /// - /// Do not copy signatures from SOURCE-IMAGE + /// Do not copy signatures from source /// [CliFlag("--remove-signatures")] public bool? RemoveSignatures { get; set; } + /// + /// Fixed delay between retries. If not set, retry uses an exponential backoff delay. + /// + [CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)] + public string? RetryDelay { get; set; } + /// /// the number of times to possibly retry /// @@ -241,6 +259,12 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) [CliOption("--sign-by-sigstore-private-key", Format = OptionFormat.EqualsSeparated)] public string? SignBySigstorePrivateKey { get; set; } + /// + /// Sign the image using a Sequoia-PGP key with the specified FINGERPRINT + /// + [CliOption("--sign-by-sq-fingerprint", Format = OptionFormat.EqualsSeparated)] + public string? SignBySqFingerprint { get; set; } + /// /// Identity of signed image, must be a fully specified docker reference. Defaults to the target docker reference. /// @@ -254,7 +278,7 @@ public void Deconstruct(out string SourceImage, out string DestinationImage) public string? SignPassphraseFile { get; set; } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--src-authfile", Format = OptionFormat.EqualsSeparated)] public string? SrcAuthfile { get; set; } diff --git a/src/ModularPipelines.Skopeo/Options/SkopeoDeleteOptions.Generated.cs b/src/ModularPipelines.Skopeo/Options/SkopeoDeleteOptions.Generated.cs index 0040f4cbcea..2b7d84d3d9d 100644 --- a/src/ModularPipelines.Skopeo/Options/SkopeoDeleteOptions.Generated.cs +++ b/src/ModularPipelines.Skopeo/Options/SkopeoDeleteOptions.Generated.cs @@ -40,7 +40,7 @@ public void Deconstruct(out string ImageName) } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--authfile", Format = OptionFormat.EqualsSeparated)] public string? Authfile { get; set; } @@ -84,6 +84,12 @@ public void Deconstruct(out string ImageName) [CliOption("--registry-token", Format = OptionFormat.EqualsSeparated)] public string? RegistryToken { get; set; } + /// + /// Fixed delay between retries. If not set, retry uses an exponential backoff delay. + /// + [CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)] + public string? RetryDelay { get; set; } + /// /// the number of times to possibly retry /// diff --git a/src/ModularPipelines.Skopeo/Options/SkopeoInspectOptions.Generated.cs b/src/ModularPipelines.Skopeo/Options/SkopeoInspectOptions.Generated.cs index ebc3e040804..66da30e5446 100644 --- a/src/ModularPipelines.Skopeo/Options/SkopeoInspectOptions.Generated.cs +++ b/src/ModularPipelines.Skopeo/Options/SkopeoInspectOptions.Generated.cs @@ -40,7 +40,7 @@ public void Deconstruct(out string ImageName) } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--authfile", Format = OptionFormat.EqualsSeparated)] public string? Authfile { get; set; } @@ -108,6 +108,12 @@ public void Deconstruct(out string ImageName) [CliOption("--registry-token", Format = OptionFormat.EqualsSeparated)] public string? RegistryToken { get; set; } + /// + /// Fixed delay between retries. If not set, retry uses an exponential backoff delay. + /// + [CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)] + public string? RetryDelay { get; set; } + /// /// the number of times to possibly retry /// diff --git a/src/ModularPipelines.Skopeo/Options/SkopeoListTagsOptions.Generated.cs b/src/ModularPipelines.Skopeo/Options/SkopeoListTagsOptions.Generated.cs index fa646737000..7217053b89c 100644 --- a/src/ModularPipelines.Skopeo/Options/SkopeoListTagsOptions.Generated.cs +++ b/src/ModularPipelines.Skopeo/Options/SkopeoListTagsOptions.Generated.cs @@ -40,7 +40,7 @@ public void Deconstruct(out string SourceImage) } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--authfile", Format = OptionFormat.EqualsSeparated)] public string? Authfile { get; set; } @@ -78,6 +78,12 @@ public void Deconstruct(out string SourceImage) [CliOption("--registry-token", Format = OptionFormat.EqualsSeparated)] public string? RegistryToken { get; set; } + /// + /// Fixed delay between retries. If not set, retry uses an exponential backoff delay. + /// + [CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)] + public string? RetryDelay { get; set; } + /// /// the number of times to possibly retry /// diff --git a/src/ModularPipelines.Skopeo/Options/SkopeoOptions.Generated.cs b/src/ModularPipelines.Skopeo/Options/SkopeoOptions.Generated.cs index 71f0a6789ff..8e465734de8 100644 --- a/src/ModularPipelines.Skopeo/Options/SkopeoOptions.Generated.cs +++ b/src/ModularPipelines.Skopeo/Options/SkopeoOptions.Generated.cs @@ -77,6 +77,12 @@ public abstract record SkopeoOptions : CommandLineToolOptions [CliOption("--tmpdir", Format = OptionFormat.EqualsSeparated)] public virtual string? Tmpdir { get; set; } + /// + /// prefix to add to the user agent string + /// + [CliOption("--user-agent-prefix", Format = OptionFormat.EqualsSeparated)] + public virtual string? UserAgentPrefix { get; set; } + /// Appends diagnostic members without exposing command option values. /// The builder receiving the record members. /// True because a redaction marker was appended. diff --git a/src/ModularPipelines.Skopeo/Options/SkopeoSyncOptions.Generated.cs b/src/ModularPipelines.Skopeo/Options/SkopeoSyncOptions.Generated.cs index d1c97b28dcc..859ced5e5d9 100644 --- a/src/ModularPipelines.Skopeo/Options/SkopeoSyncOptions.Generated.cs +++ b/src/ModularPipelines.Skopeo/Options/SkopeoSyncOptions.Generated.cs @@ -80,13 +80,13 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out public string? AppendSuffix { get; set; } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--authfile", Format = OptionFormat.EqualsSeparated)] public string? Authfile { get; set; } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--dest-authfile", Format = OptionFormat.EqualsSeparated)] public string? DestAuthfile { get; set; } @@ -136,6 +136,12 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out [CliOption("--dest-username", Format = OptionFormat.EqualsSeparated)] public string? DestUsername { get; set; } + /// + /// Write the digests and Image References of the resulting images to the specified file, separated by newlines + /// + [CliOption("--digestfile", Format = OptionFormat.EqualsSeparated)] + public string? Digestfile { get; set; } + /// /// Run without actually copying data /// @@ -143,7 +149,7 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out public bool? DryRun { get; set; } /// - /// MANIFEST TYPE (oci, v2s1, or v2s2) to use when syncing image(s) to a destination (default is manifest type of source, with fallbacks) + /// MANIFEST TYPE (oci, v2s1, or v2s2) to use in the destination (default is manifest type of source, with fallbacks) /// [CliOption("--format", ShortForm = "-f", Format = OptionFormat.EqualsSeparated)] public SkopeoSyncFormat? Format { get; set; } @@ -161,11 +167,17 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out public bool? PreserveDigests { get; set; } /// - /// Do not copy signatures from SOURCE images + /// Do not copy signatures from source /// [CliFlag("--remove-signatures")] public bool? RemoveSignatures { get; set; } + /// + /// Fixed delay between retries. If not set, retry uses an exponential backoff delay. + /// + [CliOption("--retry-delay", Format = OptionFormat.EqualsSeparated)] + public string? RetryDelay { get; set; } + /// /// the number of times to possibly retry /// @@ -198,13 +210,19 @@ public void Deconstruct(out string Dest, out string Src, out string Source, out public string? SignBySigstorePrivateKey { get; set; } /// - /// File that contains a passphrase for the --sign-by key + /// Sign the image using a Sequoia-PGP key with the specified FINGERPRINT + /// + [CliOption("--sign-by-sq-fingerprint", Format = OptionFormat.EqualsSeparated)] + public string? SignBySqFingerprint { get; set; } + + /// + /// Read a passphrase for signing an image from PATH /// [CliOption("--sign-passphrase-file", Format = OptionFormat.EqualsSeparated)] public string? SignPassphraseFile { get; set; } /// - /// path of the authentication file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json + /// path of the registry credentials file. Default is ${XDG_RUNTIME_DIR}/containers/auth.json /// [CliOption("--src-authfile", Format = OptionFormat.EqualsSeparated)] public string? SrcAuthfile { get; set; }