fog-kubevirt 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 13af0b3678fefb7ef6709a18c0c6e0ee899eea9d84b80c5e0fb580909251cdb5
4
- data.tar.gz: 9b94a11d2b6f16d237fbcdd9699317f14fb396b332a18421c12ae1b31f4f0067
3
+ metadata.gz: de4c0baf6d327a883611347eb4465d098f06929e390b4b83b7ac476411405c14
4
+ data.tar.gz: b3b8796f35dda2e387bebe71d75d976596a990a8077ff2aca7845944a4fb4565
5
5
  SHA512:
6
- metadata.gz: 6923ee0319db3ead3a93b92955081b3fe050a40d77e1e049348eba9fed2a78d53e046ccd8ab39daea3716a3bb1d4616f5e28b18c0ba184715644c63c5c1676ad
7
- data.tar.gz: 33024e576e2c80ce45f22f3d5eb46f3ee1c599bcd8efd77354a61c97dc63818fc0c249da6a2a50dbf23083f0dd659299cb69bb44b2ef2df2ee9192c828144895
6
+ metadata.gz: 137468e637539c84e913672c3f174580b0db1c11d2929ce9e13ae914119f44e47b2d276d597c537ae1c688727ae647315d941758f6992026580487c7c25381c0
7
+ data.tar.gz: 8fbc1e48e2d7234bef83e0def7695c464aa8d0937ede6e87263a529318633263b755b072e6e652fe78f5a9c9f6bef738e41533de3da597104dce113b2dd61fab
@@ -9,7 +9,7 @@ module Fog
9
9
  module Kubevirt
10
10
  class Compute < Fog::Service
11
11
  recognizes :kubevirt_token, :kubevirt_hostname, :kubevirt_port, :kubevirt_namespace, \
12
- :kubevirt_log, :kubevirt_verify_ssl, :kubevirt_ca_cert
12
+ :kubevirt_log, :kubevirt_verify_ssl, :kubevirt_ca_cert , :kubevirt_version
13
13
 
14
14
  model_path 'fog/kubevirt/compute/models'
15
15
  model :vminstance
@@ -154,6 +154,7 @@ module Fog
154
154
  @kubevirt_token = options[:kubevirt_token]
155
155
  @host = options[:kubevirt_hostname]
156
156
  @port = options[:kubevirt_port]
157
+ @kubevirt_version = options[:kubevirt_version]
157
158
 
158
159
  @log = options[:kubevirt_log]
159
160
  @log ||= ::Logger.new(STDOUT)
@@ -421,8 +422,13 @@ module Fog
421
422
  # version detected based on
422
423
  # https://github.com/kubernetes-incubator/apiserver-builder/blob/master/docs/concepts/aggregation.md#viewing-discovery-information
423
424
  preferredVersion = response["preferredVersion"]
424
- return preferredVersion["version"] if preferredVersion
425
- response["versions"][0]
425
+ if url.include? KUBEVIRT_GROUP
426
+ version = @kubevirt_version || preferredVersion["version"]
427
+ else
428
+ version = preferredVersion["version"] if preferredVersion
429
+ version = version || response["versions"][0]
430
+ end
431
+ version
426
432
  end
427
433
 
428
434
  def openshift_client
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Kubevirt
3
- VERSION = '1.3.2'
3
+ VERSION = '1.3.3'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-kubevirt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Kliczewski
@@ -15,7 +15,7 @@ authors:
15
15
  autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
- date: 2019-08-26 00:00:00.000000000 Z
18
+ date: 2019-11-11 00:00:00.000000000 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: minitest