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

openshift_connect reuse kubernetes_connect #7

Merged
merged 1 commit into from
May 9, 2017

Conversation

cben
Copy link
Contributor

@cben cben commented Apr 30, 2017

We've been keeping 2 nearly-same functions in sync, especially painful after repo split:

@zakiva @moolitayer Please review carefully.

  • Minor change: now respects options[:path], previously was forcing /oapi.
  • Does connect_client still work right? It sets :service which chooses kubernetes_connect/openshift_connect, but it also provides :path, :version which AFAICT covers both distinctions between them. I suspect you previously passed :service here to work around forced /oapi...
  • Do we need openshift's api_version method distinction from parent's kubernetes_version (which kubernetes/container_manager.rb also aliases as api_version)? Both are de-facto v1 so this is effectively dead code. Anyway that's for another PR.

I'd like to see this backported, so that later changes touching only kubernetes_connect will be backportable without remembering to also change openshift_connect...
But my hunch is we don't want to backport right now (not a blocker).

Minor change: now respects options[:path], previously was forcing '/oapi'.
@miq-bot
Copy link
Member

miq-bot commented Apr 30, 2017

Checked commit cben@5d35988 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
1 file checked, 0 offenses detected
Everything looks fine. 🏆

Copy link

@moolitayer moolitayer left a comment

Choose a reason for hiding this comment

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

LGTM, 👍

@zakiva
Copy link
Contributor

zakiva commented May 3, 2017

LGTM 👍
We can consider removing this method entirely and updating the calls in a later PR.

@simon3z simon3z merged commit 93009fc into ManageIQ:master May 9, 2017
@cben
Copy link
Contributor Author

cben commented May 9, 2017

@simon3z do you have an opinion on backporting this?

@simon3z
Copy link
Contributor

simon3z commented May 10, 2017

@simon3z do you have an opinion on backporting this?

We don't backport refactorings.

@cben
Copy link
Contributor Author

cben commented May 10, 2017

@miq-bot add-label fine/no

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

Successfully merging this pull request may close these issues.

5 participants