Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  bump kubeclient ~> 2.4.0
  (ported from manageiq-gems-pending.gemspec to gems/pending/Gemfile)

- Merge ManageIQ/manageiq-providers-kubernetes#10
  kubernetes_connect: add timeout settings
  (cherry picked from merge commit ManageIQ/manageiq-providers-kubernetes@1ee90b5)

- openshift_connect: use kubernetes timeout settings
  (cherry picked from unmerged ManageIQ/manageiq-providers-openshift#8 -
  unnecessary on master but required in backports)
  • Loading branch information
cben committed May 15, 2017
1 parent 45711be commit 6625ab1
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ def kubernetes_connect(hostname, port, options)
kubernetes_version,
:ssl_options => { :verify_ssl => verify_ssl_mode },
:auth_options => kubernetes_auth_options(options),
:http_proxy_uri => VMDB::Util.http_proxy_uri
:http_proxy_uri => VMDB::Util.http_proxy_uri,
:timeouts => {
:open => Settings.ems.ems_kubernetes.open_timeout.to_f_with_method,
:read => Settings.ems.ems_kubernetes.read_timeout.to_f_with_method
}
)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ def openshift_connect(hostname, port, options)
api_version,
:ssl_options => { :verify_ssl => verify_ssl_mode },
:auth_options => kubernetes_auth_options(options),
:http_proxy_uri => VMDB::Util.http_proxy_uri
:http_proxy_uri => VMDB::Util.http_proxy_uri,
:timeouts => {
:open => Settings.ems.ems_kubernetes.open_timeout.to_f_with_method,
:read => Settings.ems.ems_kubernetes.read_timeout.to_f_with_method
}
)
end
end
Expand Down
2 changes: 2 additions & 0 deletions config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@
:read_timeout: 1.hour
:ems_kubernetes:
:miq_namespace: management-infra
:open_timeout: 60.seconds
:read_timeout: 60.seconds
:ems_amazon:
:disabled_regions: []
:ems_azure:
Expand Down
2 changes: 1 addition & 1 deletion gems/pending/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gem "hawkular-client", "=2.7.0", :require => false
gem "httpclient", "~>2.7.1", :require => false
gem "image-inspector-client", "~>1.0.3", :require => false
gem "iniparse", :require => false
gem "kubeclient", "=2.3.0", :require => false
gem "kubeclient", "~>2.4.0", :require => false
gem "linux_admin", "~>0.19.0", :require => false
gem "log4r", "=1.1.8", :require => false
gem "memoist", "~>0.14.0", :require => false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@
require 'kubeclient'
expect(Kubeclient::Client).to receive(:new).with(
instance_of(URI::HTTPS), 'v1',
hash_including(:http_proxy_uri => VMDB::Util.http_proxy_uri)
hash_including(:http_proxy_uri => VMDB::Util.http_proxy_uri,
:timeouts => match(:open => be > 0, :read => be > 0))
)
described_class.raw_connect(hostname, port, options)
end
Expand Down

0 comments on commit 6625ab1

Please sign in to comment.