Skip to content

[carry #3127] Update pull default to skip all platform manifests#3577

Merged
crosbymichael merged 3 commits intocontainerd:masterfrom
dmcgowan:change-default-manifest-download
Aug 26, 2019
Merged

[carry #3127] Update pull default to skip all platform manifests#3577
crosbymichael merged 3 commits intocontainerd:masterfrom
dmcgowan:change-default-manifest-download

Conversation

@dmcgowan
Copy link
Copy Markdown
Member

This reverts the behavior which by default pulled all manifests and configs. Adds options to include all the metadata and a flag on fetch to only get metadata.

Also removes the option to add the distribution metadata so that it is always set. If clients have a need for removing this metadata in the future, the option can be revisited. Metadata which does not require an extra requests to the registry should not be thrown away.

Carry #3127
Fixes #3126

erain added 2 commits August 23, 2019 14:02
- Add `all-manifests` option to both `ctr content fetch` and `ctr
  images pull`. By default it is false.
- This option ties to `AppendDistributionSourceLabel` in client.

Signed-off-by: Yu Yi <[email protected]>
@dmcgowan dmcgowan added this to the 1.3 milestone Aug 23, 2019
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 23, 2019

Build succeeded.

@estesp
Copy link
Copy Markdown
Member

estesp commented Aug 26, 2019

looks like image_test.go needs an update for the helper removal:

image_test.go:104:3: undeclared name: `WithAppendDistributionSourceLabel` (typecheck)

@dmcgowan dmcgowan force-pushed the change-default-manifest-download branch from f2e991b to 48f880f Compare August 26, 2019 17:22
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 26, 2019

Build succeeded.

Add flags to pull and fetch to grab all metadata.
Add fetch option to pull only metadata.

Signed-off-by: Derek McGowan <[email protected]>
@dmcgowan dmcgowan force-pushed the change-default-manifest-download branch from 48f880f to a40c383 Compare August 26, 2019 18:05
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Aug 26, 2019

Build succeeded.

Copy link
Copy Markdown
Member

@estesp estesp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@crosbymichael
Copy link
Copy Markdown
Member

LGTM

@crosbymichael crosbymichael merged commit df84e54 into containerd:master Aug 26, 2019
@dmcgowan dmcgowan deleted the change-default-manifest-download branch September 10, 2019 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Manifests and configs downloaded for all platforms by default

4 participants