Merge pull request #9029 from dmcgowan/push-inherit-distribution-sources

push: inherit distribution sources from parent
This commit is contained in:
Maksym Pavlenko
2023-09-07 12:46:18 -07:00
committed by GitHub
5 changed files with 49 additions and 21 deletions

View File

@@ -68,8 +68,13 @@ Most of this is experimental and there are few leaps to make this work.`,
Usage: "Pull content from all platforms",
},
cli.BoolFlag{
Name: "all-metadata",
Usage: "Pull metadata for all platforms",
Name: "all-metadata",
Usage: "(Deprecated: use skip-metadata) Pull metadata for all platforms",
Hidden: true,
},
cli.BoolFlag{
Name: "skip-metadata",
Usage: "Skips metadata for unused platforms (Image may be unable to be pushed without metadata)",
},
cli.BoolFlag{
Name: "metadata-only",
@@ -141,7 +146,7 @@ func NewFetchConfig(ctx context.Context, clicontext *cli.Context) (*FetchConfig,
config.AllMetadata = true
// Any with an empty set is None
config.PlatformMatcher = platforms.Any()
} else if clicontext.Bool("all-metadata") {
} else if !clicontext.Bool("skip-metadata") {
config.AllMetadata = true
}