fog-kubevirt 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/fog/kubevirt/compute/compute.rb +1 -0
- data/lib/fog/kubevirt/compute/models/vm_parser.rb +1 -1
- data/lib/fog/kubevirt/compute/models/vminstances.rb +4 -0
- data/lib/fog/kubevirt/compute/requests/get_vnc_console_details.rb +29 -0
- data/lib/fog/kubevirt/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13af0b3678fefb7ef6709a18c0c6e0ee899eea9d84b80c5e0fb580909251cdb5
|
4
|
+
data.tar.gz: 9b94a11d2b6f16d237fbcdd9699317f14fb396b332a18421c12ae1b31f4f0067
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6923ee0319db3ead3a93b92955081b3fe050a40d77e1e049348eba9fed2a78d53e046ccd8ab39daea3716a3bb1d4616f5e28b18c0ba184715644c63c5c1676ad
|
7
|
+
data.tar.gz: 33024e576e2c80ce45f22f3d5eb46f3ee1c599bcd8efd77354a61c97dc63818fc0c249da6a2a50dbf23083f0dd659299cb69bb44b2ef2df2ee9192c828144895
|
@@ -139,7 +139,7 @@ module Fog
|
|
139
139
|
|
140
140
|
volume.config = v[volume.type.to_sym]
|
141
141
|
disk = disks.detect { |d| d.name == volume.name }
|
142
|
-
volume.boot_order = disk.boot_order
|
142
|
+
volume.boot_order = disk.boot_order if disk.respond_to?(:boot_order)
|
143
143
|
volume.bus = disk.bus if disk.respond_to?(:bus)
|
144
144
|
|
145
145
|
volumes << volume
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Fog
|
2
|
+
module Kubevirt
|
3
|
+
class Compute
|
4
|
+
class Real
|
5
|
+
def get_vnc_console_details(name, namespace)
|
6
|
+
|
7
|
+
url = URI::Generic.build(
|
8
|
+
:scheme => 'https',
|
9
|
+
:host => @host,
|
10
|
+
:port => @port,
|
11
|
+
:path => "/apis/kubevirt.io"
|
12
|
+
)
|
13
|
+
version = detect_version(url.to_s, @opts[:ssl_options])
|
14
|
+
{
|
15
|
+
:host => @host,
|
16
|
+
:port => @port,
|
17
|
+
:path => "/apis/subresources.kubevirt.io/#{version}/namespaces/#{namespace}/virtualmachineinstances/#{name}/vnc",
|
18
|
+
:token => @opts[:auth_options][:bearer_token]
|
19
|
+
}
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
class Mock
|
24
|
+
def get_vnc_console_details(name, namespace)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
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.2
|
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-08-26 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|
@@ -199,6 +199,7 @@ files:
|
|
199
199
|
- lib/fog/kubevirt/compute/requests/get_template.rb
|
200
200
|
- lib/fog/kubevirt/compute/requests/get_vm.rb
|
201
201
|
- lib/fog/kubevirt/compute/requests/get_vminstance.rb
|
202
|
+
- lib/fog/kubevirt/compute/requests/get_vnc_console_details.rb
|
202
203
|
- lib/fog/kubevirt/compute/requests/list_networkattachmentdefs.rb
|
203
204
|
- lib/fog/kubevirt/compute/requests/list_nodes.rb
|
204
205
|
- lib/fog/kubevirt/compute/requests/list_persistentvolumes.rb
|