Skip to content

Update oc cmds to use upstream clientcmd/Factory#NewBuilder - #15352

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
juanvallejo:jvallejo/use-factory-new-builder
Aug 2, 2017
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
juanvallejo:jvallejo/use-factory-new-builder

Conversation

@juanvallejo

Copy link
Copy Markdown
Contributor

Fixes #15278

  1. Makes use of upstream's util/clientcmd/Factory#NewBuilder method.
  2. Wires through commands' local option to the util/clientcmd/Factory#PrinterForCommand method (enables local commands to work without a connection to an api server)

cc @openshift/cli-review @deads2k

@juanvallejo

Copy link
Copy Markdown
Contributor Author

[test]

@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch 3 times, most recently from 8f29bb3 to 63a8162 Compare July 21, 2017 19:38
@openshift-bot

Copy link
Copy Markdown
Contributor

Evaluated for origin test up to 63a8162

@openshift-bot

Copy link
Copy Markdown
Contributor

continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/3416/) (Base Commit: 421b57e) (PR Branch Commit: 63a8162)

@openshift-merge-robot openshift-merge-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 24, 2017
@fabianofranz

Copy link
Copy Markdown
Contributor

/test all

@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch 2 times, most recently from cbc2b95 to aecfc14 Compare July 26, 2017 19:47
@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 27, 2017
@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch from 76cfe4e to 8f625ca Compare July 27, 2017 18:02
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 27, 2017
@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch from 8f625ca to f3c300b Compare July 27, 2017 18:12
@openshift-ci-robot

openshift-ci-robot commented Jul 27, 2017 •

Copy link
Copy Markdown

@juanvallejo: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/check 63a8162 link /test check

Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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. I understand the commands that are listed here.

@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch from f3c300b to 1e523f6 Compare July 27, 2017 21:54
@openshift-merge-robot openshift-merge-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jul 28, 2017
Comment thread pkg/oc/admin/policy/subject_review.go Outdated
}

func (o *sccSubjectReviewOptions) Run(args []string) error {
func (o *sccSubjectReviewOptions) Run(args []string, f *clientcmd.Factory) error {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should try to avoid passing the factory to the Run method. Take everything you need in Complete. ;)

@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch from 1e523f6 to 6ac6bf4 Compare August 1, 2017 15:35
@juanvallejo

juanvallejo commented Aug 1, 2017 •

Copy link
Copy Markdown
Contributor Author

@fabianofranz thanks for the feedback, review comment addressed

@fabianofranz

Copy link
Copy Markdown
Contributor

/lgtm
/approve

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 1, 2017
@fabianofranz

Copy link
Copy Markdown
Contributor

Needs an additional approver for integration tests, @mfojtik @deads2k ?

@mfojtik

mfojtik commented Aug 2, 2017

Copy link
Copy Markdown
Contributor

/approve no-issue

@openshift-merge-robot openshift-merge-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 2, 2017
@juanvallejo
juanvallejo force-pushed the jvallejo/use-factory-new-builder branch from 6ac6bf4 to 717e308 Compare August 2, 2017 14:08
@openshift-merge-robot openshift-merge-robot removed the lgtm Indicates that a PR is ready to be merged. label Aug 2, 2017
@juanvallejo

Copy link
Copy Markdown
Contributor Author

@fabianofranz could you tag once more? Thanks!

@fabianofranz

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 2, 2017
@openshift-merge-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabianofranz, juanvallejo, mfojtik

Associated issue: 15278

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

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@openshift-merge-robot

Copy link
Copy Markdown
Contributor

Automatic merge from submit-queue

@openshift-merge-robot
openshift-merge-robot merged commit 8ef052d into openshift:master Aug 2, 2017
@juanvallejo
juanvallejo deleted the jvallejo/use-factory-new-builder branch August 3, 2017 13:44
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants