fog-kubevirt 0.3.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -3
  3. data/lib/fog/bin/kubevirt.rb +2 -2
  4. data/lib/fog/kubevirt.rb +1 -4
  5. data/lib/fog/{compute/kubevirt.rb → kubevirt/compute/compute.rb} +35 -184
  6. data/lib/fog/{compute/kubevirt → kubevirt/compute}/models/node.rb +3 -3
  7. data/lib/fog/{compute/kubevirt → kubevirt/compute}/models/nodes.rb +4 -4
  8. data/lib/fog/{compute/kubevirt → kubevirt/compute}/models/template.rb +2 -2
  9. data/lib/fog/{compute/kubevirt → kubevirt/compute}/models/templates.rb +4 -4
  10. data/lib/fog/kubevirt/compute/models/vm.rb +71 -0
  11. data/lib/fog/{compute/kubevirt → kubevirt/compute}/models/vminstance.rb +4 -13
  12. data/lib/fog/{compute/kubevirt → kubevirt/compute}/models/vminstances.rb +4 -4
  13. data/lib/fog/kubevirt/compute/models/vms.rb +137 -0
  14. data/lib/fog/kubevirt/compute/models/volume.rb +9 -0
  15. data/lib/fog/kubevirt/compute/models/volumes.rb +12 -0
  16. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/create_pvc.rb +2 -2
  17. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/create_vm.rb +2 -3
  18. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/create_vminstance.rb +2 -2
  19. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/delete_vm.rb +3 -3
  20. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/delete_vminstance.rb +5 -5
  21. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/get_node.rb +2 -2
  22. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/get_template.rb +2 -2
  23. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/get_vm.rb +3 -3
  24. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/get_vminstance.rb +6 -6
  25. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/list_nodes.rb +2 -2
  26. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/list_templates.rb +2 -2
  27. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/list_vminstances.rb +2 -2
  28. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/list_vms.rb +6 -6
  29. data/lib/fog/{compute/kubevirt → kubevirt/compute}/requests/update_vm.rb +2 -2
  30. data/lib/fog/kubevirt/version.rb +1 -1
  31. metadata +39 -133
  32. data/lib/fog/compute/kubevirt/models/networkattachmentdef.rb +0 -25
  33. data/lib/fog/compute/kubevirt/models/networkattachmentdefs.rb +0 -59
  34. data/lib/fog/compute/kubevirt/models/persistentvolume.rb +0 -82
  35. data/lib/fog/compute/kubevirt/models/persistentvolumes.rb +0 -73
  36. data/lib/fog/compute/kubevirt/models/pvc.rb +0 -59
  37. data/lib/fog/compute/kubevirt/models/pvcs.rb +0 -76
  38. data/lib/fog/compute/kubevirt/models/server.rb +0 -44
  39. data/lib/fog/compute/kubevirt/models/servers.rb +0 -32
  40. data/lib/fog/compute/kubevirt/models/service.rb +0 -36
  41. data/lib/fog/compute/kubevirt/models/services.rb +0 -83
  42. data/lib/fog/compute/kubevirt/models/storageclass.rb +0 -33
  43. data/lib/fog/compute/kubevirt/models/storageclasses.rb +0 -61
  44. data/lib/fog/compute/kubevirt/models/vm.rb +0 -17
  45. data/lib/fog/compute/kubevirt/models/vm_base.rb +0 -86
  46. data/lib/fog/compute/kubevirt/models/vm_data.rb +0 -162
  47. data/lib/fog/compute/kubevirt/models/vms.rb +0 -206
  48. data/lib/fog/compute/kubevirt/models/volume.rb +0 -57
  49. data/lib/fog/compute/kubevirt/models/volumes.rb +0 -18
  50. data/lib/fog/compute/kubevirt/requests/create_networkattachmentdef.rb +0 -37
  51. data/lib/fog/compute/kubevirt/requests/create_persistentvolume.rb +0 -19
  52. data/lib/fog/compute/kubevirt/requests/create_service.rb +0 -18
  53. data/lib/fog/compute/kubevirt/requests/create_storageclass.rb +0 -18
  54. data/lib/fog/compute/kubevirt/requests/delete_networkattachmentdef.rb +0 -16
  55. data/lib/fog/compute/kubevirt/requests/delete_persistentvolume.rb +0 -16
  56. data/lib/fog/compute/kubevirt/requests/delete_pvc.rb +0 -16
  57. data/lib/fog/compute/kubevirt/requests/delete_service.rb +0 -16
  58. data/lib/fog/compute/kubevirt/requests/delete_storageclass.rb +0 -16
  59. data/lib/fog/compute/kubevirt/requests/get_networkattachmentdef.rb +0 -19
  60. data/lib/fog/compute/kubevirt/requests/get_persistentvolume.rb +0 -16
  61. data/lib/fog/compute/kubevirt/requests/get_pvc.rb +0 -16
  62. data/lib/fog/compute/kubevirt/requests/get_server.rb +0 -32
  63. data/lib/fog/compute/kubevirt/requests/get_service.rb +0 -16
  64. data/lib/fog/compute/kubevirt/requests/get_storageclass.rb +0 -16
  65. data/lib/fog/compute/kubevirt/requests/list_networkattachmentdefs.rb +0 -21
  66. data/lib/fog/compute/kubevirt/requests/list_persistentvolumes.rb +0 -22
  67. data/lib/fog/compute/kubevirt/requests/list_pvcs.rb +0 -22
  68. data/lib/fog/compute/kubevirt/requests/list_servers.rb +0 -25
  69. data/lib/fog/compute/kubevirt/requests/list_services.rb +0 -22
  70. data/lib/fog/compute/kubevirt/requests/list_storageclasses.rb +0 -22
  71. data/lib/fog/compute/kubevirt/requests/list_volumes.rb +0 -30
  72. data/spec/compute_v1alpha2_spec.rb +0 -30
  73. data/spec/create_vm_spec.rb +0 -101
  74. data/spec/fixtures/kubevirt/networkattachmentdefinition/networkattachmentdefinitions_crud.yml +0 -320
  75. data/spec/fixtures/kubevirt/persistentvolume/persistent_volumes_crud.yml +0 -316
  76. data/spec/fixtures/kubevirt/pvc/pvcs_crud.yml +0 -362
  77. data/spec/fixtures/kubevirt/service/services_crud.yml +0 -316
  78. data/spec/fixtures/kubevirt/storageclass/storageclasses_crud.yml +0 -400
  79. data/spec/fixtures/kubevirt/vm/vm_create_multi.yml +0 -459
  80. data/spec/fixtures/kubevirt/vm/vm_create_single.yml +0 -362
  81. data/spec/network_attachment_definition_v1alpha2_spec.rb +0 -28
  82. data/spec/persistent_volumes_v1alpha2_spec.rb +0 -45
  83. data/spec/pvcs_v1alpha2_spec.rb +0 -59
  84. data/spec/shared_context.rb +0 -54
  85. data/spec/spec_helper.rb +0 -10
  86. data/spec/storage_classes_v1_spec.rb +0 -46
@@ -1,25 +0,0 @@
1
- require 'recursive_open_struct'
2
- require 'fog/compute/kubevirt/requests/get_server'
3
-
4
- module Fog
5
- module Compute
6
- class Kubevirt
7
- class Real
8
- def list_servers(_filters = {})
9
- vms = kubevirt_client.get_virtual_machines(namespace: @namespace)
10
- entities = vms.map do |kubevirt_obj|
11
- vm_obj = object_to_hash(kubevirt_obj)
12
- populate_runtime_info(vm_obj)
13
- Server.parse vm_obj
14
- end
15
- EntityCollection.new(vms.kind, vms.resourceVersion, entities)
16
- end
17
- end
18
-
19
- class Mock
20
- def list_servers(_filters = {})
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,22 +0,0 @@
1
- require 'recursive_open_struct'
2
-
3
- module Fog
4
- module Compute
5
- class Kubevirt
6
- class Real
7
- def list_services(_filters = {})
8
- services = kube_client.get_services(namespace: @namespace)
9
- entities = services.map do |kubevirt_obj|
10
- Service.parse object_to_hash(kubevirt_obj)
11
- end
12
- EntityCollection.new(services.kind, services.resourceVersion, entities)
13
- end
14
- end
15
-
16
- class Mock
17
- def list_services(_filters = {})
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,22 +0,0 @@
1
- require 'recursive_open_struct'
2
-
3
- module Fog
4
- module Compute
5
- class Kubevirt
6
- class Real
7
- def list_storageclasses(_filters = {})
8
- storageclasses = kube_storage_client.get_storage_classes
9
- entities = storageclasses.map do |kubevirt_obj|
10
- Storageclass.parse object_to_hash(kubevirt_obj)
11
- end
12
- EntityCollection.new(storageclasses.kind, storageclasses.resourceVersion, entities)
13
- end
14
- end
15
-
16
- class Mock
17
- def list_storageclasses(_filters = {})
18
- end
19
- end
20
- end
21
- end
22
- end
@@ -1,30 +0,0 @@
1
- require 'recursive_open_struct'
2
-
3
- module Fog
4
- module Compute
5
- class Kubevirt
6
- class Real
7
- def list_volumes(vm_name = nil)
8
- if vm_name.nil?
9
- entities = pvcs.all.map do |pvc|
10
- volume = Volume.new
11
- volume.name = pvc.name
12
- volume.type = 'persistentVolumeClaim'
13
- volume.pvc = pvc
14
- volume
15
- end
16
- EntityCollection.new('Volume', pvcs.resource_version, entities)
17
- else
18
- vm = vms.get(vm_name)
19
- EntityCollection.new('Volume', vm.resource_version, vm.volumes)
20
- end
21
- end
22
- end
23
-
24
- class Mock
25
- def list_volumes(_filters = {})
26
- end
27
- end
28
- end
29
- end
30
- end
@@ -1,30 +0,0 @@
1
- require 'spec_helper'
2
- require_relative './shared_context'
3
-
4
- require 'fog/kubevirt'
5
-
6
- describe Fog::Compute do
7
- before :all do
8
- vcr = KubevirtVCR.new(
9
- :vcr_directory => 'spec/fixtures/kubevirt/service',
10
- :service_class => Fog::Compute
11
- )
12
- @service = vcr.service
13
- end
14
-
15
- it 'CRUD services' do
16
- VCR.use_cassette('services_crud') do
17
- begin
18
- port = 30000
19
- vmi_name = "vmi-fedora"
20
- srv_name = "#{vmi_name}-ssh"
21
- srv_type = "NodePort"
22
- @service.services.create(port: port, name: srv_name, target_port: 22, vmi_name: vmi_name, service_type: srv_type)
23
-
24
- srv = @service.services.get(srv_name)
25
- ensure
26
- @service.services.delete(srv_name) if srv
27
- end
28
- end
29
- end
30
- end
@@ -1,101 +0,0 @@
1
- require 'spec_helper'
2
- require_relative './shared_context'
3
-
4
- require 'fog/kubevirt'
5
- require 'fog/compute/kubevirt/models/volume'
6
-
7
- describe Fog::Compute do
8
- before :all do
9
- vcr = KubevirtVCR.new(
10
- vcr_directory: 'spec/fixtures/kubevirt/vm',
11
- service_class: Fog::Compute
12
- )
13
- @service = vcr.service
14
- end
15
-
16
- it 'creates vm with multipe pvcs' do
17
- VCR.use_cassette('vm_create_multi') do
18
- begin
19
- vm_name = 'test'
20
- cpus = 1
21
- memory_size = 64
22
-
23
- # PVCs should already be created
24
- volume1 = Fog::Compute::Kubevirt::Volume.new
25
- volume1.type = 'persistentVolumeClaim'
26
- volume1.name = 'test-disk-01'
27
- volume1.boot_order = 1
28
- volume1.bus = 'virtio'
29
- volume1.info = 'mypvc1'
30
-
31
- volume2 = Fog::Compute::Kubevirt::Volume.new
32
- volume2.type = 'persistentVolumeClaim'
33
- volume2.name = 'test-disk-02'
34
- volume2.boot_order = 2
35
- volume2.bus = 'virtio'
36
- volume2.info = 'mypvc2'
37
-
38
- volume3 = Fog::Compute::Kubevirt::Volume.new
39
- volume3.type = 'hostDisk'
40
- volume3.name = 'test-disk-03'
41
- volume3.boot_order = 3
42
- volume3.config = {
43
- :capacity => '1Gi',
44
- :path => '/mnt/data/disk.img',
45
- :type => 'DiskOrCreate'
46
- }
47
-
48
- @service.vms.create(vm_name: vm_name, cpus: cpus, memory_size: memory_size, volumes: [volume1, volume2, volume3])
49
-
50
- vm = @service.vms.get(vm_name)
51
-
52
- # test vm volumes
53
- volumes = @service.volumes.all vm_name
54
- assert_equal(volumes.count, 3)
55
-
56
- # verify first claim values
57
- volume = volumes.select { |v| v.name == 'test-disk-01' }.first
58
- refute_nil(volume)
59
- assert_equal(volume.name, 'test-disk-01')
60
- assert_equal(volume.type, 'persistentVolumeClaim')
61
-
62
- # verify third claim values
63
- volume = volumes.select { |v| v.name == 'test-disk-03' }.first
64
- refute_nil(volume)
65
- assert_equal(volume.name, 'test-disk-03')
66
- assert_equal(volume.type, 'hostDisk')
67
- ensure
68
- @service.vms.delete(vm_name) if vm
69
- end
70
- end
71
- end
72
-
73
- it 'creates vm with single pvc' do
74
- VCR.use_cassette("vm_create_single") do
75
- begin
76
- vm_name = 'test2'
77
- cpus = 1
78
- memory_size = 64
79
-
80
- volume = Fog::Compute::Kubevirt::Volume.new
81
- volume.type = 'persistentVolumeClaim'
82
- volume.info = 'mypvc3'
83
- @service.vms.create(vm_name: vm_name, cpus: cpus, memory_size: memory_size, volumes: [volume])
84
-
85
- vm = @service.vms.get(vm_name)
86
-
87
- # test vm volumes
88
- volumes = @service.volumes.all vm_name
89
- assert_equal(volumes.count, 1)
90
-
91
- # verify third claim values
92
- volume = volumes.first
93
- refute_nil(volume)
94
- assert_equal(volume.name, 'test2-disk-00')
95
- assert_equal(volume.type, 'persistentVolumeClaim')
96
- ensure
97
- @service.vms.delete(vm_name) if vm
98
- end
99
- end
100
- end
101
- end
@@ -1,320 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: get
5
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io
6
- body:
7
- encoding: US-ASCII
8
- string: ''
9
- headers:
10
- Accept:
11
- - "*/*"
12
- Accept-Encoding:
13
- - gzip, deflate
14
- User-Agent:
15
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
16
- response:
17
- status:
18
- code: 200
19
- message: OK
20
- headers:
21
- Cache-Control:
22
- - no-store
23
- Content-Type:
24
- - application/json
25
- Date:
26
- - Tue, 22 Jan 2019 16:40:25 GMT
27
- Content-Length:
28
- - '201'
29
- body:
30
- encoding: UTF-8
31
- string: '{"kind":"APIGroup","apiVersion":"v1","name":"k8s.cni.cncf.io","versions":[{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}],"preferredVersion":{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}}
32
-
33
- '
34
- http_version:
35
- recorded_at: Tue, 22 Jan 2019 16:40:26 GMT
36
- - request:
37
- method: get
38
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io/v1
39
- body:
40
- encoding: US-ASCII
41
- string: ''
42
- headers:
43
- Accept:
44
- - "*/*"
45
- Accept-Encoding:
46
- - gzip, deflate
47
- User-Agent:
48
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
49
- Authorization:
50
- - Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
51
- response:
52
- status:
53
- code: 200
54
- message: OK
55
- headers:
56
- Cache-Control:
57
- - no-store
58
- Content-Type:
59
- - application/json
60
- Date:
61
- - Tue, 22 Jan 2019 16:40:26 GMT
62
- Content-Length:
63
- - '356'
64
- body:
65
- encoding: UTF-8
66
- string: '{"kind":"APIResourceList","apiVersion":"v1","groupVersion":"k8s.cni.cncf.io/v1","resources":[{"name":"network-attachment-definitions","singularName":"network-attachment-definition","namespaced":true,"kind":"NetworkAttachmentDefinition","verbs":["delete","deletecollection","get","list","patch","create","update","watch"],"shortNames":["net-attach-def"]}]}
67
-
68
- '
69
- http_version:
70
- recorded_at: Tue, 22 Jan 2019 16:40:27 GMT
71
- - request:
72
- method: post
73
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions
74
- body:
75
- encoding: UTF-8
76
- string: '{"metadata":{"name":"ovs-red","namespace":"default"},"spec":{"config":"{
77
- cni_version: \"0.3.1\", type: \"ovs\", bridge: \"red\" }"},"kind":"NetworkAttachmentDefinition","apiVersion":"k8s.cni.cncf.io/v1"}'
78
- headers:
79
- Accept:
80
- - "*/*"
81
- Accept-Encoding:
82
- - gzip, deflate
83
- User-Agent:
84
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
85
- Content-Type:
86
- - application/json
87
- Authorization:
88
- - Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
89
- Content-Length:
90
- - '203'
91
- response:
92
- status:
93
- code: 201
94
- message: Created
95
- headers:
96
- Cache-Control:
97
- - no-store
98
- Content-Type:
99
- - application/json
100
- Date:
101
- - Tue, 22 Jan 2019 16:40:27 GMT
102
- Content-Length:
103
- - '429'
104
- body:
105
- encoding: UTF-8
106
- string: '{"apiVersion":"k8s.cni.cncf.io/v1","kind":"NetworkAttachmentDefinition","metadata":{"creationTimestamp":"2019-01-22T16:40:27Z","generation":1,"name":"ovs-red","namespace":"default","resourceVersion":"56968","selfLink":"/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions/ovs-red","uid":"6c41a2d7-1e64-11e9-bbff-fa163e38912a"},"spec":{"config":"{
107
- cni_version: \"0.3.1\", type: \"ovs\", bridge: \"red\" }"}}
108
-
109
- '
110
- http_version:
111
- recorded_at: Tue, 22 Jan 2019 16:40:28 GMT
112
- - request:
113
- method: get
114
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io
115
- body:
116
- encoding: US-ASCII
117
- string: ''
118
- headers:
119
- Accept:
120
- - "*/*"
121
- Accept-Encoding:
122
- - gzip, deflate
123
- User-Agent:
124
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
125
- response:
126
- status:
127
- code: 200
128
- message: OK
129
- headers:
130
- Cache-Control:
131
- - no-store
132
- Content-Type:
133
- - application/json
134
- Date:
135
- - Tue, 22 Jan 2019 16:40:27 GMT
136
- Content-Length:
137
- - '201'
138
- body:
139
- encoding: UTF-8
140
- string: '{"kind":"APIGroup","apiVersion":"v1","name":"k8s.cni.cncf.io","versions":[{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}],"preferredVersion":{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}}
141
-
142
- '
143
- http_version:
144
- recorded_at: Tue, 22 Jan 2019 16:40:28 GMT
145
- - request:
146
- method: get
147
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions/ovs-red
148
- body:
149
- encoding: US-ASCII
150
- string: ''
151
- headers:
152
- Accept:
153
- - "*/*"
154
- Accept-Encoding:
155
- - gzip, deflate
156
- User-Agent:
157
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
158
- Authorization:
159
- - Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
160
- response:
161
- status:
162
- code: 200
163
- message: OK
164
- headers:
165
- Cache-Control:
166
- - no-store
167
- Content-Type:
168
- - application/json
169
- Date:
170
- - Tue, 22 Jan 2019 16:40:28 GMT
171
- Content-Length:
172
- - '429'
173
- body:
174
- encoding: UTF-8
175
- string: '{"apiVersion":"k8s.cni.cncf.io/v1","kind":"NetworkAttachmentDefinition","metadata":{"creationTimestamp":"2019-01-22T16:40:27Z","generation":1,"name":"ovs-red","namespace":"default","resourceVersion":"56968","selfLink":"/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions/ovs-red","uid":"6c41a2d7-1e64-11e9-bbff-fa163e38912a"},"spec":{"config":"{
176
- cni_version: \"0.3.1\", type: \"ovs\", bridge: \"red\" }"}}
177
-
178
- '
179
- http_version:
180
- recorded_at: Tue, 22 Jan 2019 16:40:29 GMT
181
- - request:
182
- method: get
183
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io
184
- body:
185
- encoding: US-ASCII
186
- string: ''
187
- headers:
188
- Accept:
189
- - "*/*"
190
- Accept-Encoding:
191
- - gzip, deflate
192
- User-Agent:
193
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
194
- response:
195
- status:
196
- code: 200
197
- message: OK
198
- headers:
199
- Cache-Control:
200
- - no-store
201
- Content-Type:
202
- - application/json
203
- Date:
204
- - Tue, 22 Jan 2019 16:40:29 GMT
205
- Content-Length:
206
- - '201'
207
- body:
208
- encoding: UTF-8
209
- string: '{"kind":"APIGroup","apiVersion":"v1","name":"k8s.cni.cncf.io","versions":[{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}],"preferredVersion":{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}}
210
-
211
- '
212
- http_version:
213
- recorded_at: Tue, 22 Jan 2019 16:40:30 GMT
214
- - request:
215
- method: get
216
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions/ovs-red
217
- body:
218
- encoding: US-ASCII
219
- string: ''
220
- headers:
221
- Accept:
222
- - "*/*"
223
- Accept-Encoding:
224
- - gzip, deflate
225
- User-Agent:
226
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
227
- Authorization:
228
- - Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
229
- response:
230
- status:
231
- code: 200
232
- message: OK
233
- headers:
234
- Cache-Control:
235
- - no-store
236
- Content-Type:
237
- - application/json
238
- Date:
239
- - Tue, 22 Jan 2019 16:40:29 GMT
240
- Content-Length:
241
- - '429'
242
- body:
243
- encoding: UTF-8
244
- string: '{"apiVersion":"k8s.cni.cncf.io/v1","kind":"NetworkAttachmentDefinition","metadata":{"creationTimestamp":"2019-01-22T16:40:27Z","generation":1,"name":"ovs-red","namespace":"default","resourceVersion":"56968","selfLink":"/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions/ovs-red","uid":"6c41a2d7-1e64-11e9-bbff-fa163e38912a"},"spec":{"config":"{
245
- cni_version: \"0.3.1\", type: \"ovs\", bridge: \"red\" }"}}
246
-
247
- '
248
- http_version:
249
- recorded_at: Tue, 22 Jan 2019 16:40:30 GMT
250
- - request:
251
- method: get
252
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io
253
- body:
254
- encoding: US-ASCII
255
- string: ''
256
- headers:
257
- Accept:
258
- - "*/*"
259
- Accept-Encoding:
260
- - gzip, deflate
261
- User-Agent:
262
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
263
- response:
264
- status:
265
- code: 200
266
- message: OK
267
- headers:
268
- Cache-Control:
269
- - no-store
270
- Content-Type:
271
- - application/json
272
- Date:
273
- - Tue, 22 Jan 2019 16:40:30 GMT
274
- Content-Length:
275
- - '201'
276
- body:
277
- encoding: UTF-8
278
- string: '{"kind":"APIGroup","apiVersion":"v1","name":"k8s.cni.cncf.io","versions":[{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}],"preferredVersion":{"groupVersion":"k8s.cni.cncf.io/v1","version":"v1"}}
279
-
280
- '
281
- http_version:
282
- recorded_at: Tue, 22 Jan 2019 16:40:31 GMT
283
- - request:
284
- method: delete
285
- uri: https://10.8.254.82:8443/apis/k8s.cni.cncf.io/v1/namespaces/default/network-attachment-definitions/ovs-red
286
- body:
287
- encoding: US-ASCII
288
- string: ''
289
- headers:
290
- Accept:
291
- - "*/*"
292
- Accept-Encoding:
293
- - gzip, deflate
294
- User-Agent:
295
- - rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
296
- Content-Type:
297
- - application/json
298
- Authorization:
299
- - Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
300
- response:
301
- status:
302
- code: 200
303
- message: OK
304
- headers:
305
- Cache-Control:
306
- - no-store
307
- Content-Type:
308
- - application/json
309
- Date:
310
- - Tue, 22 Jan 2019 16:40:30 GMT
311
- Content-Length:
312
- - '209'
313
- body:
314
- encoding: UTF-8
315
- string: '{"kind":"Status","apiVersion":"v1","metadata":{},"status":"Success","details":{"name":"ovs-red","group":"k8s.cni.cncf.io","kind":"network-attachment-definitions","uid":"6c41a2d7-1e64-11e9-bbff-fa163e38912a"}}
316
-
317
- '
318
- http_version:
319
- recorded_at: Tue, 22 Jan 2019 16:40:31 GMT
320
- recorded_with: VCR 4.0.0