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

stop using factory.OpenshiftClientConfig #19343

Merged
merged 2 commits into from
Apr 16, 2018

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Apr 13, 2018

This method prevents collapsing onto the upstream factory because it relies on direct kubeconfig access which is hidden/abstracted via a factory.

We've now got a patch to indicate that delta that we carry.

/assign @soltysh
/assign @juanvallejo

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 13, 2018
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Apr 13, 2018
FromWebhook: server.URL + "/webhook",
Mapper: legacyscheme.Registry.RESTMapper(),
}
if err := o.Run(); err == nil || !strings.Contains(err.Error(), "certificate signed by unknown authority") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test never actually tested what it claimed to test. It mocked an error from the wrong point to indicate a failure during actual communication. That hook point no longer exists since this was actually a failure during client construction.

Copy link
Contributor

Choose a reason for hiding this comment

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

@bparees fyi, your team will need to update it to do what it should be doing.

Copy link
Contributor

Choose a reason for hiding this comment

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

i don't think this test ever had any real value (even if it had been implemented correctly). I'm fine w/ losing it.

@deads2k deads2k force-pushed the cli-28-slim-interface branch from a626721 to 509d6a2 Compare April 13, 2018 17:36
@deads2k
Copy link
Contributor Author

deads2k commented Apr 13, 2018

/retest

1 similar comment
@deads2k
Copy link
Contributor Author

deads2k commented Apr 13, 2018

/retest

@deads2k deads2k force-pushed the cli-28-slim-interface branch from 509d6a2 to 6627dc6 Compare April 16, 2018 13:33
Copy link
Contributor

@soltysh soltysh left a comment

Choose a reason for hiding this comment

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

/lgtm

FromWebhook: server.URL + "/webhook",
Mapper: legacyscheme.Registry.RESTMapper(),
}
if err := o.Run(); err == nil || !strings.Contains(err.Error(), "certificate signed by unknown authority") {
Copy link
Contributor

Choose a reason for hiding this comment

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

@bparees fyi, your team will need to update it to do what it should be doing.

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 16, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit df81eca into openshift:master Apr 16, 2018
@deads2k deads2k deleted the cli-28-slim-interface branch July 3, 2018 17:47
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