Skip to content

Commit

Permalink
openshift_connect reuse kubernetes_connect
Browse files Browse the repository at this point in the history
Minor change: now respects options[:path], previously was forcing '/oapi'.
  • Loading branch information
cben committed Apr 30, 2017
1 parent 1a25fff commit 5d35988
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,8 @@ def raw_connect(hostname, port, options)
end

def openshift_connect(hostname, port, options)
require 'kubeclient'

Kubeclient::Client.new(
raw_api_endpoint(hostname, port, '/oapi'),
options[:version] || api_version,
:ssl_options => Kubeclient::Client::DEFAULT_SSL_OPTIONS.merge(options[:ssl_options] || {}),
:auth_options => kubernetes_auth_options(options),
:http_proxy_uri => VMDB::Util.http_proxy_uri
)
options = {:path => '/oapi', :version => api_version}.merge(options)
kubernetes_connect(hostname, port, options)
end
end

Expand Down

0 comments on commit 5d35988

Please sign in to comment.