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
oc adm release extract - add option to extract credential requests only #467
oc adm release extract - add option to extract credential requests only #467
Conversation
/cc @dgoodwin @joelddiaz |
c11e6a4
to
fd9b13c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and looks great to me, good catch on filtering out even within multi-document yaml files too.
I feel like an option to direct to stdout instead of files might be useful, wdyt?
pkg/cli/admin/release/extract.go
Outdated
@@ -64,6 +79,10 @@ func NewExtract(f kcmdutil.Factory, parentName string, streams genericclioptions | |||
signed by the key. For more advanced signing use the generated sha256sum.txt and an | |||
external tool like gpg. | |||
|
|||
The --credentials-requests flag filters extracted manifests to only cloud credential | |||
requests. The --cloud flag further filters credential requests to a specific cloud. | |||
Valid values for --cloud include aws, gcp, azure, vsphere, openstack, ovirt, and vsphere. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vsphere listed twice.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great. It will simplify the documentation where we describe how to bring your own creds.
@dgoodwin Actually thinking some about this a bit... maybe the default should be to output to stdout. Unlike a full extract, there's really not much of a benefit in having the original file names created. Especially if we're filtering stuff out of those files. |
Personally stdout is what I would be looking for as well. |
fd9b13c
to
9a67db3
Compare
Changed to output to stdout, fixed description |
/test e2e-cmd |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: csrwng, soltysh 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
5 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
The purpose of this feature is to enable the manual creation of credentials required by a particular Openshift release.
https://issues.redhat.com/browse/CO-972