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 +4 -4
- data/lib/fog/kubevirt/compute/compute.rb +9 -3
- data/lib/fog/kubevirt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de4c0baf6d327a883611347eb4465d098f06929e390b4b83b7ac476411405c14
|
4
|
+
data.tar.gz: b3b8796f35dda2e387bebe71d75d976596a990a8077ff2aca7845944a4fb4565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
425
|
-
|
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
|
data/lib/fog/kubevirt/version.rb
CHANGED
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.
|
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-
|
18
|
+
date: 2019-11-11 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|