Skip to content

Conversation

@kevinrizza
Copy link
Member

A previous commit introduced new behavior to always mirror manifest list
digests when running oc image mirror. This commit reverts that
behavior, and instead adds a flag --force-manifest-list to allow that
option. Additionally, the force behavior occurs when --filter-by-os is
set to a wildcard.

@openshift-ci-robot openshift-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Mar 4, 2020
@kevinrizza
Copy link
Member Author

@kevinrizza kevinrizza changed the title Don't default to always mirror manifestlists Bug 1810256: Don't default to always mirror manifestlists Mar 4, 2020
@openshift-ci-robot
Copy link

@kevinrizza: This pull request references Bugzilla bug 1810256, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.5.0) matches configured target release for branch (4.5.0)
  • bug is in the state NEW, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
Details

In response to this:

Bug 1810256: Don't default to always mirror manifestlists

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Mar 4, 2020
@Bowenislandsong
Copy link

/lgtm
It is exactly what was discussed. Great!

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 4, 2020
@kevinrizza
Copy link
Member Author

/assign @mfojtik

@mfojtik
Copy link
Contributor

mfojtik commented Mar 4, 2020

/lgtm
/hold
@smarterclayton or @soltysh please double check

@openshift-ci-robot openshift-ci-robot added do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Mar 4, 2020
@ecordell
Copy link
Contributor

ecordell commented Mar 4, 2020

/retest

1 similar comment
@kevinrizza
Copy link
Member Author

/retest

flag.BoolVar(&o.SkipMount, "skip-mount", o.SkipMount, "Always push layers instead of cross-mounting them")
flag.BoolVar(&o.SkipMultipleScopes, "skip-multiple-scopes", o.SkipMultipleScopes, "Some registries do not support multiple scopes passed to the registry login.")
flag.BoolVar(&o.Force, "force", o.Force, "Attempt to write all layers and manifests even if they exist in the remote repository.")
flag.BoolVar(&o.ForceManifestList, "force-manifest-list", o.ForceManifestList, "Force mirroring the manifest list if it exists.")
Copy link
Contributor

@smarterclayton smarterclayton Mar 4, 2020

Choose a reason for hiding this comment

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

Would probably prefer the flag be keep-manifest-list and the description be If an image is part of a manifest list, always mirror the list even if only one image is found. The default is to mirror the specific image unless unless --filter-by-os is '.*'..

Copy link
Contributor

Choose a reason for hiding this comment

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

The reason why I don't want to use force is because in our CLI lexicon force means "override the safe behavior with an unsafe behavior that may still be what you want", where as this is more "avoid an optimization".

Actually, we should probably use --keep-manifest-list instead of --include-manifest-list (keep and preserve are our "softer" verbs)

Copy link
Member Author

Choose a reason for hiding this comment

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

@smarterclayton Makes sense. I just updated the flag to --keep-manifest-list and updated the description. ptal

A previous commit introduced new behavior to always mirror manifest list
digests when running `oc image mirror`. This commit reverts that
behavior, and instead adds a flag `--force-manifest-list` to allow that
option. Additionally, the force behavior occurs when `--filter-by-os` is
set to a wildcard.
@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Mar 4, 2020
@smarterclayton
Copy link
Contributor

/hold cancel
/lgtm

thanks

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Mar 4, 2020
@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 4, 2020
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Bowenislandsong, kevinrizza, mfojtik, smarterclayton

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [mfojtik,smarterclayton]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 4b7e738 into openshift:master Mar 5, 2020
@openshift-ci-robot
Copy link

@kevinrizza: All pull requests linked via external trackers have merged. Bugzilla bug 1810256 has been moved to the MODIFIED state.

Details

In response to this:

Bug 1810256: Don't default to always mirror manifestlists

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kevinrizza
Copy link
Member Author

/cherry-pick release-4.4

@openshift-cherrypick-robot

@kevinrizza: new pull request created: #341

Details

In response to this:

/cherry-pick release-4.4

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants