Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add oc image extract to support release tooling #20466

Merged
merged 3 commits into from
Aug 14, 2018

Conversation

smarterclayton
Copy link
Contributor

This command will be used as part of the foundation for building out our upgrade payload images (grab manifests from individual images and combine them).

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jul 30, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: smarterclayton

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

The pull request process is described here

Needs approval from an approver in each of these files:

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

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Jul 31, 2018 via email

@mfojtik
Copy link
Contributor

mfojtik commented Aug 1, 2018

@smarterclayton how much of this overlaps with skopeo and containers/image stuff ?

@smarterclayton
Copy link
Contributor Author

smarterclayton commented Aug 1, 2018 via email

@openshift-bot
Copy link
Contributor

/retest

1 similar comment
@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton smarterclayton changed the title WIP - Add oc image extract to support release tooling Add oc image extract to support release tooling Aug 13, 2018
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 13, 2018
@smarterclayton
Copy link
Contributor Author

This is needed for prototyping releasing, going to add it as experimental for 3.11

@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2018

flag.BoolVar(&o.OnlyFiles, "only-files", o.OnlyFiles, "Only extract regular files and directories from the image.")

flag.BoolVar(&o.Force, "force", o.Force, "If set, the command will attempt to upload all layers instead of skipping those that are already uploaded.")
Copy link
Contributor

Choose a reason for hiding this comment

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

pretty sure the help text on this is wrong? this command doesn't upload anything

flag.BoolVar(&o.OnlyFiles, "only-files", o.OnlyFiles, "Only extract regular files and directories from the image.")

flag.BoolVar(&o.Force, "force", o.Force, "If set, the command will attempt to upload all layers instead of skipping those that are already uploaded.")
flag.IntVar(&o.MaxPerRegistry, "max-per-registry", o.MaxPerRegistry, "Number of concurrent requests allowed per registry.")
Copy link
Contributor

Choose a reason for hiding this comment

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

when would there be more than one registry involved? (carry-over from image mirror?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can extract two images from different registries

Copy link
Contributor

Choose a reason for hiding this comment

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

is it necessary that we support that? I think allowing multiple images to extract from, in a single commandline, is going to frustrate our ability to support args in a sane way. Why not just support a single image to extract from, per invocation?

Among other things, this would make it easier to support multiple paths to extract (e.g. "--extract /tmp --extract /etc").

@smarterclayton
Copy link
Contributor Author

/retest

@smarterclayton smarterclayton removed the lgtm Indicates that a PR is ready to be merged. label Aug 13, 2018
@smarterclayton
Copy link
Contributor Author

/retest

…s to disk

Uses a subset of docker/pkg/archive that is slightly more flexible than the upstream.
@smarterclayton
Copy link
Contributor Author

updated

@bparees
Copy link
Contributor

bparees commented Aug 13, 2018

the flag syntax looks better to me.

@smarterclayton
Copy link
Contributor Author

Tagging, will iterate more

@smarterclayton smarterclayton added the lgtm Indicates that a PR is ready to be merged. label Aug 14, 2018
@openshift-merge-robot openshift-merge-robot merged commit 5009149 into openshift:master Aug 14, 2018
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. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants