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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e2d2c6f98b5fa86ae26dfab40696be4b5bae710a8466179ccef3afa175b6f34
4
- data.tar.gz: f13369106d1359001eeb59a249499b2f944bf4651da66b52f647a83838b5f6a2
3
+ metadata.gz: 13af0b3678fefb7ef6709a18c0c6e0ee899eea9d84b80c5e0fb580909251cdb5
4
+ data.tar.gz: 9b94a11d2b6f16d237fbcdd9699317f14fb396b332a18421c12ae1b31f4f0067
5
5
  SHA512:
6
- metadata.gz: d866029c4dbef7324093049cc6e2c69eac5b6c205633134d7f89d75d25b51f0024e62809d12c66b61e4cd62d6455782340a5e15ce808240c93bc2712b14aa320
7
- data.tar.gz: c0adb18fac7ea2530e6552f71f2caf686410eadbdf106c13ff17fefe6fce75a1e4528ce7b78dc48ba49e2104ec0208d9534268abca692956c01c087a54679d48
6
+ metadata.gz: 6923ee0319db3ead3a93b92955081b3fe050a40d77e1e049348eba9fed2a78d53e046ccd8ab39daea3716a3bb1d4616f5e28b18c0ba184715644c63c5c1676ad
7
+ data.tar.gz: 33024e576e2c80ce45f22f3d5eb46f3ee1c599bcd8efd77354a61c97dc63818fc0c249da6a2a50dbf23083f0dd659299cb69bb44b2ef2df2ee9192c828144895
@@ -60,6 +60,7 @@ module Fog
60
60
  request :get_service
61
61
  request :get_storageclass
62
62
  request :get_template
63
+ request :get_vnc_console_details
63
64
  request :list_vminstances
64
65
  request :list_nodes
65
66
  request :list_networkattachmentdefs
@@ -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
@@ -39,6 +39,10 @@ module Fog
39
39
  # delete vm instance
40
40
  service.delete_vminstance(name) unless vm_instance.nil?
41
41
  end
42
+
43
+ def get_vnc_console_details(name, namespace)
44
+ service.get_vnc_console_details(name, namespace)
45
+ end
42
46
  end
43
47
  end
44
48
  end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Kubevirt
3
- VERSION = '1.3.1'
3
+ VERSION = '1.3.2'
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.1
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-07-07 00:00:00.000000000 Z
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