fog-kubevirt 0.1.8 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fog/compute/kubevirt.rb +64 -20
- data/lib/fog/compute/kubevirt/models/networkattachmentdef.rb +25 -0
- data/lib/fog/compute/kubevirt/models/networkattachmentdefs.rb +59 -0
- data/lib/fog/compute/kubevirt/models/pvc.rb +59 -0
- data/lib/fog/compute/kubevirt/models/pvcs.rb +76 -0
- data/lib/fog/compute/kubevirt/models/server.rb +3 -1
- data/lib/fog/compute/kubevirt/models/vm_data.rb +5 -4
- data/lib/fog/compute/kubevirt/models/vms.rb +44 -7
- data/lib/fog/compute/kubevirt/models/volume.rb +73 -0
- data/lib/fog/compute/kubevirt/models/volumes.rb +61 -0
- data/lib/fog/compute/kubevirt/requests/create_networkattachmentdef.rb +37 -0
- data/lib/fog/compute/kubevirt/requests/create_vm.rb +1 -0
- data/lib/fog/compute/kubevirt/requests/create_volume.rb +19 -0
- data/lib/fog/compute/kubevirt/requests/delete_networkattachmentdef.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/delete_pvc.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/delete_volume.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/get_networkattachmentdef.rb +19 -0
- data/lib/fog/compute/kubevirt/requests/get_pvc.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/get_vminstance.rb +4 -4
- data/lib/fog/compute/kubevirt/requests/get_volume.rb +16 -0
- data/lib/fog/compute/kubevirt/requests/list_networkattachmentdefs.rb +21 -0
- data/lib/fog/compute/kubevirt/requests/list_pvcs.rb +22 -0
- data/lib/fog/compute/kubevirt/requests/list_vms.rb +4 -4
- data/lib/fog/compute/kubevirt/requests/list_volumes.rb +22 -0
- data/lib/fog/kubevirt/version.rb +1 -1
- data/spec/compute_v1alpha2_spec.rb +1 -1
- data/spec/fixtures/kubevirt/networkattachmentdefinition/networkattachmentdefinitions_crud.yml +320 -0
- data/spec/fixtures/kubevirt/pvc/pvcs_crud.yml +316 -0
- data/spec/fixtures/kubevirt/service/services_crud.yml +316 -0
- data/spec/fixtures/kubevirt/volume/volumes_crud.yml +316 -0
- data/spec/network_attachment_definition_v1alpha2_spec.rb +28 -0
- data/spec/pvcs_v1alpha2_spec.rb +52 -0
- data/spec/shared_context.rb +2 -2
- data/spec/volumes_v1alpha2_spec.rb +45 -0
- metadata +33 -20
- data/spec/fixtures/kubevirt/service/v1alpha2/services_crud.yml +0 -172
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'recursive_open_struct'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class Kubevirt
|
6
|
+
class Real
|
7
|
+
def list_pvcs(_filters = {})
|
8
|
+
pvcs = kube_client.get_persistent_volume_claims(namespace: @namespace)
|
9
|
+
entities = pvcs.map do |kubevirt_obj|
|
10
|
+
Pvc.parse object_to_hash(kubevirt_obj)
|
11
|
+
end
|
12
|
+
EntityCollection.new(pvcs.kind, pvcs.resourceVersion, entities)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class Mock
|
17
|
+
def list_pvcs(_filters = {})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -30,16 +30,16 @@ module Fog
|
|
30
30
|
template: {
|
31
31
|
spec: { domain: { cpu: { cores: 4 },
|
32
32
|
devices: { disks: [{ disk: { dev: 'vda' },
|
33
|
-
name: '
|
34
|
-
volumeName: '
|
33
|
+
name: 'containerDisk',
|
34
|
+
volumeName: 'containervolume' },
|
35
35
|
{ disk: { dev: 'vdb' },
|
36
36
|
name: 'cloudinitdisk',
|
37
37
|
volumeName: 'cloudinitvolume' }] },
|
38
38
|
machine: { type: 'q35' },
|
39
39
|
resources: { requests: { memory: '512Mi' } } },
|
40
40
|
volumes: [
|
41
|
-
{ name: '
|
42
|
-
|
41
|
+
{ name: 'containervolume',
|
42
|
+
containerDisk: { image: 'kubevirt/fedora-cloud-registry-disk-demo:latest' }
|
43
43
|
},
|
44
44
|
{ cloudInitNoCloud: { userDataBase64: 'I2Nsb3VkLWNvbmZpZwpwYXNzd29yZDogYXRvbWljCnNzaF9wd2F1dGg6IFRydWUKY2hwYXNzd2Q6IHsgZXhwaXJlOiBGYWxzZSB9Cg==' },
|
45
45
|
name: 'cloudinitvolume' }]
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'recursive_open_struct'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class Kubevirt
|
6
|
+
class Real
|
7
|
+
def list_volumes(_filters = {})
|
8
|
+
volumes = kube_client.get_persistent_volumes()
|
9
|
+
entities = volumes.map do |kubevirt_obj|
|
10
|
+
Volume.parse object_to_hash(kubevirt_obj)
|
11
|
+
end
|
12
|
+
EntityCollection.new(volumes.kind, volumes.resourceVersion, entities)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
class Mock
|
17
|
+
def list_volumes(_filters = {})
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/fog/kubevirt/version.rb
CHANGED
@@ -6,7 +6,7 @@ require 'fog/kubevirt'
|
|
6
6
|
describe Fog::Compute do
|
7
7
|
before :all do
|
8
8
|
vcr = KubevirtVCR.new(
|
9
|
-
:vcr_directory => 'spec/fixtures/kubevirt/service
|
9
|
+
:vcr_directory => 'spec/fixtures/kubevirt/service',
|
10
10
|
:service_class => Fog::Compute
|
11
11
|
)
|
12
12
|
@service = vcr.service
|
@@ -0,0 +1,320 @@
|
|
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
|
@@ -0,0 +1,316 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://10.8.254.82:8443/api
|
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:15 GMT
|
27
|
+
Content-Length:
|
28
|
+
- '162'
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"cnv-executor-vatsal-master1.example.com:8443"}]}
|
32
|
+
|
33
|
+
'
|
34
|
+
http_version:
|
35
|
+
recorded_at: Tue, 22 Jan 2019 16:40:16 GMT
|
36
|
+
- request:
|
37
|
+
method: get
|
38
|
+
uri: https://10.8.254.82:8443/api/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:15 GMT
|
62
|
+
Transfer-Encoding:
|
63
|
+
- chunked
|
64
|
+
body:
|
65
|
+
encoding: UTF-8
|
66
|
+
string: '{"kind":"APIResourceList","groupVersion":"v1","resources":[{"name":"bindings","singularName":"","namespaced":true,"kind":"Binding","verbs":["create"]},{"name":"componentstatuses","singularName":"","namespaced":false,"kind":"ComponentStatus","verbs":["get","list"],"shortNames":["cs"]},{"name":"configmaps","singularName":"","namespaced":true,"kind":"ConfigMap","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["cm"]},{"name":"endpoints","singularName":"","namespaced":true,"kind":"Endpoints","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ep"]},{"name":"events","singularName":"","namespaced":true,"kind":"Event","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["ev"]},{"name":"limitranges","singularName":"","namespaced":true,"kind":"LimitRange","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["limits"]},{"name":"namespaces","singularName":"","namespaced":false,"kind":"Namespace","verbs":["create","delete","get","list","patch","update","watch"],"shortNames":["ns"]},{"name":"namespaces/finalize","singularName":"","namespaced":false,"kind":"Namespace","verbs":["update"]},{"name":"namespaces/status","singularName":"","namespaced":false,"kind":"Namespace","verbs":["get","patch","update"]},{"name":"nodes","singularName":"","namespaced":false,"kind":"Node","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["no"]},{"name":"nodes/proxy","singularName":"","namespaced":false,"kind":"Node","verbs":[]},{"name":"nodes/status","singularName":"","namespaced":false,"kind":"Node","verbs":["get","patch","update"]},{"name":"persistentvolumeclaims","singularName":"","namespaced":true,"kind":"PersistentVolumeClaim","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["pvc"]},{"name":"persistentvolumeclaims/status","singularName":"","namespaced":true,"kind":"PersistentVolumeClaim","verbs":["get","patch","update"]},{"name":"persistentvolumes","singularName":"","namespaced":false,"kind":"PersistentVolume","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["pv"]},{"name":"persistentvolumes/status","singularName":"","namespaced":false,"kind":"PersistentVolume","verbs":["get","patch","update"]},{"name":"pods","singularName":"","namespaced":true,"kind":"Pod","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["po"],"categories":["all"]},{"name":"pods/attach","singularName":"","namespaced":true,"kind":"Pod","verbs":[]},{"name":"pods/binding","singularName":"","namespaced":true,"kind":"Binding","verbs":["create"]},{"name":"pods/eviction","singularName":"","namespaced":true,"group":"policy","version":"v1beta1","kind":"Eviction","verbs":["create"]},{"name":"pods/exec","singularName":"","namespaced":true,"kind":"Pod","verbs":[]},{"name":"pods/log","singularName":"","namespaced":true,"kind":"Pod","verbs":["get"]},{"name":"pods/portforward","singularName":"","namespaced":true,"kind":"Pod","verbs":[]},{"name":"pods/proxy","singularName":"","namespaced":true,"kind":"Pod","verbs":[]},{"name":"pods/status","singularName":"","namespaced":true,"kind":"Pod","verbs":["get","patch","update"]},{"name":"podtemplates","singularName":"","namespaced":true,"kind":"PodTemplate","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"replicationcontrollers","singularName":"","namespaced":true,"kind":"ReplicationController","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["rc"],"categories":["all"]},{"name":"replicationcontrollers/scale","singularName":"","namespaced":true,"group":"autoscaling","version":"v1","kind":"Scale","verbs":["get","patch","update"]},{"name":"replicationcontrollers/status","singularName":"","namespaced":true,"kind":"ReplicationController","verbs":["get","patch","update"]},{"name":"resourcequotas","singularName":"","namespaced":true,"kind":"ResourceQuota","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["quota"]},{"name":"resourcequotas/status","singularName":"","namespaced":true,"kind":"ResourceQuota","verbs":["get","patch","update"]},{"name":"secrets","singularName":"","namespaced":true,"kind":"Secret","verbs":["create","delete","deletecollection","get","list","patch","update","watch"]},{"name":"securitycontextconstraints","singularName":"","namespaced":false,"kind":"SecurityContextConstraints","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["scc"]},{"name":"serviceaccounts","singularName":"","namespaced":true,"kind":"ServiceAccount","verbs":["create","delete","deletecollection","get","list","patch","update","watch"],"shortNames":["sa"]},{"name":"services","singularName":"","namespaced":true,"kind":"Service","verbs":["create","delete","get","list","patch","update","watch"],"shortNames":["svc"],"categories":["all"]},{"name":"services/proxy","singularName":"","namespaced":true,"kind":"Service","verbs":[]},{"name":"services/status","singularName":"","namespaced":true,"kind":"Service","verbs":["get","patch","update"]}]}
|
67
|
+
|
68
|
+
'
|
69
|
+
http_version:
|
70
|
+
recorded_at: Tue, 22 Jan 2019 16:40:16 GMT
|
71
|
+
- request:
|
72
|
+
method: post
|
73
|
+
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims
|
74
|
+
body:
|
75
|
+
encoding: UTF-8
|
76
|
+
string: '{"apiVersion":"v1","kind":"PersistentVolumeClaim","metadata":{"name":"my-local-storage-pvc","namespace":"default"},"spec":{"storageClassName":"manual","resources":{"requests":{"storage":"2Gi"},"limits":{"storage":"3Gi"}},"selector":{"matchLabels":{},"matchExpressions":[]},"accessModes":["ReadWriteOnce"],"volumeMode":"Filesystem","volumeName":"my-local-storage"}}'
|
77
|
+
headers:
|
78
|
+
Accept:
|
79
|
+
- "*/*"
|
80
|
+
Accept-Encoding:
|
81
|
+
- gzip, deflate
|
82
|
+
User-Agent:
|
83
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
84
|
+
Content-Type:
|
85
|
+
- application/json
|
86
|
+
Authorization:
|
87
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
|
88
|
+
Content-Length:
|
89
|
+
- '364'
|
90
|
+
response:
|
91
|
+
status:
|
92
|
+
code: 201
|
93
|
+
message: Created
|
94
|
+
headers:
|
95
|
+
Cache-Control:
|
96
|
+
- no-store
|
97
|
+
Content-Type:
|
98
|
+
- application/json
|
99
|
+
Date:
|
100
|
+
- Tue, 22 Jan 2019 16:40:16 GMT
|
101
|
+
Content-Length:
|
102
|
+
- '600'
|
103
|
+
body:
|
104
|
+
encoding: UTF-8
|
105
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"65c82fd5-1e64-11e9-bbff-fa163e38912a","resourceVersion":"56920","creationTimestamp":"2019-01-22T16:40:16Z","finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem"},"status":{"phase":"Pending"}}
|
106
|
+
|
107
|
+
'
|
108
|
+
http_version:
|
109
|
+
recorded_at: Tue, 22 Jan 2019 16:40:17 GMT
|
110
|
+
- request:
|
111
|
+
method: get
|
112
|
+
uri: https://10.8.254.82:8443/api
|
113
|
+
body:
|
114
|
+
encoding: US-ASCII
|
115
|
+
string: ''
|
116
|
+
headers:
|
117
|
+
Accept:
|
118
|
+
- "*/*"
|
119
|
+
Accept-Encoding:
|
120
|
+
- gzip, deflate
|
121
|
+
User-Agent:
|
122
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
123
|
+
response:
|
124
|
+
status:
|
125
|
+
code: 200
|
126
|
+
message: OK
|
127
|
+
headers:
|
128
|
+
Cache-Control:
|
129
|
+
- no-store
|
130
|
+
Content-Type:
|
131
|
+
- application/json
|
132
|
+
Date:
|
133
|
+
- Tue, 22 Jan 2019 16:40:16 GMT
|
134
|
+
Content-Length:
|
135
|
+
- '162'
|
136
|
+
body:
|
137
|
+
encoding: UTF-8
|
138
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"cnv-executor-vatsal-master1.example.com:8443"}]}
|
139
|
+
|
140
|
+
'
|
141
|
+
http_version:
|
142
|
+
recorded_at: Tue, 22 Jan 2019 16:40:17 GMT
|
143
|
+
- request:
|
144
|
+
method: get
|
145
|
+
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc
|
146
|
+
body:
|
147
|
+
encoding: US-ASCII
|
148
|
+
string: ''
|
149
|
+
headers:
|
150
|
+
Accept:
|
151
|
+
- "*/*"
|
152
|
+
Accept-Encoding:
|
153
|
+
- gzip, deflate
|
154
|
+
User-Agent:
|
155
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
156
|
+
Authorization:
|
157
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
|
158
|
+
response:
|
159
|
+
status:
|
160
|
+
code: 200
|
161
|
+
message: OK
|
162
|
+
headers:
|
163
|
+
Cache-Control:
|
164
|
+
- no-store
|
165
|
+
Content-Type:
|
166
|
+
- application/json
|
167
|
+
Date:
|
168
|
+
- Tue, 22 Jan 2019 16:40:17 GMT
|
169
|
+
Content-Length:
|
170
|
+
- '600'
|
171
|
+
body:
|
172
|
+
encoding: UTF-8
|
173
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"65c82fd5-1e64-11e9-bbff-fa163e38912a","resourceVersion":"56920","creationTimestamp":"2019-01-22T16:40:16Z","finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem"},"status":{"phase":"Pending"}}
|
174
|
+
|
175
|
+
'
|
176
|
+
http_version:
|
177
|
+
recorded_at: Tue, 22 Jan 2019 16:40:18 GMT
|
178
|
+
- request:
|
179
|
+
method: get
|
180
|
+
uri: https://10.8.254.82:8443/api
|
181
|
+
body:
|
182
|
+
encoding: US-ASCII
|
183
|
+
string: ''
|
184
|
+
headers:
|
185
|
+
Accept:
|
186
|
+
- "*/*"
|
187
|
+
Accept-Encoding:
|
188
|
+
- gzip, deflate
|
189
|
+
User-Agent:
|
190
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
191
|
+
response:
|
192
|
+
status:
|
193
|
+
code: 200
|
194
|
+
message: OK
|
195
|
+
headers:
|
196
|
+
Cache-Control:
|
197
|
+
- no-store
|
198
|
+
Content-Type:
|
199
|
+
- application/json
|
200
|
+
Date:
|
201
|
+
- Tue, 22 Jan 2019 16:40:17 GMT
|
202
|
+
Content-Length:
|
203
|
+
- '162'
|
204
|
+
body:
|
205
|
+
encoding: UTF-8
|
206
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"cnv-executor-vatsal-master1.example.com:8443"}]}
|
207
|
+
|
208
|
+
'
|
209
|
+
http_version:
|
210
|
+
recorded_at: Tue, 22 Jan 2019 16:40:18 GMT
|
211
|
+
- request:
|
212
|
+
method: get
|
213
|
+
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc
|
214
|
+
body:
|
215
|
+
encoding: US-ASCII
|
216
|
+
string: ''
|
217
|
+
headers:
|
218
|
+
Accept:
|
219
|
+
- "*/*"
|
220
|
+
Accept-Encoding:
|
221
|
+
- gzip, deflate
|
222
|
+
User-Agent:
|
223
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
224
|
+
Authorization:
|
225
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
|
226
|
+
response:
|
227
|
+
status:
|
228
|
+
code: 200
|
229
|
+
message: OK
|
230
|
+
headers:
|
231
|
+
Cache-Control:
|
232
|
+
- no-store
|
233
|
+
Content-Type:
|
234
|
+
- application/json
|
235
|
+
Date:
|
236
|
+
- Tue, 22 Jan 2019 16:40:18 GMT
|
237
|
+
Content-Length:
|
238
|
+
- '600'
|
239
|
+
body:
|
240
|
+
encoding: UTF-8
|
241
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"65c82fd5-1e64-11e9-bbff-fa163e38912a","resourceVersion":"56920","creationTimestamp":"2019-01-22T16:40:16Z","finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem"},"status":{"phase":"Pending"}}
|
242
|
+
|
243
|
+
'
|
244
|
+
http_version:
|
245
|
+
recorded_at: Tue, 22 Jan 2019 16:40:19 GMT
|
246
|
+
- request:
|
247
|
+
method: get
|
248
|
+
uri: https://10.8.254.82:8443/api
|
249
|
+
body:
|
250
|
+
encoding: US-ASCII
|
251
|
+
string: ''
|
252
|
+
headers:
|
253
|
+
Accept:
|
254
|
+
- "*/*"
|
255
|
+
Accept-Encoding:
|
256
|
+
- gzip, deflate
|
257
|
+
User-Agent:
|
258
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
259
|
+
response:
|
260
|
+
status:
|
261
|
+
code: 200
|
262
|
+
message: OK
|
263
|
+
headers:
|
264
|
+
Cache-Control:
|
265
|
+
- no-store
|
266
|
+
Content-Type:
|
267
|
+
- application/json
|
268
|
+
Date:
|
269
|
+
- Tue, 22 Jan 2019 16:40:19 GMT
|
270
|
+
Content-Length:
|
271
|
+
- '162'
|
272
|
+
body:
|
273
|
+
encoding: UTF-8
|
274
|
+
string: '{"kind":"APIVersions","versions":["v1"],"serverAddressByClientCIDRs":[{"clientCIDR":"0.0.0.0/0","serverAddress":"cnv-executor-vatsal-master1.example.com:8443"}]}
|
275
|
+
|
276
|
+
'
|
277
|
+
http_version:
|
278
|
+
recorded_at: Tue, 22 Jan 2019 16:40:20 GMT
|
279
|
+
- request:
|
280
|
+
method: delete
|
281
|
+
uri: https://10.8.254.82:8443/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc
|
282
|
+
body:
|
283
|
+
encoding: US-ASCII
|
284
|
+
string: ''
|
285
|
+
headers:
|
286
|
+
Accept:
|
287
|
+
- "*/*"
|
288
|
+
Accept-Encoding:
|
289
|
+
- gzip, deflate
|
290
|
+
User-Agent:
|
291
|
+
- rest-client/2.0.2 (linux-gnu x86_64) ruby/2.5.3p105
|
292
|
+
Content-Type:
|
293
|
+
- application/json
|
294
|
+
Authorization:
|
295
|
+
- Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJkZWZhdWx0Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZWNyZXQubmFtZSI6Im15LWFjY291bnQtdG9rZW4ta3FsZDYiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoibXktYWNjb3VudCIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VydmljZS1hY2NvdW50LnVpZCI6IjJlYjVjZjU1LTFlNDUtMTFlOS1iYmZmLWZhMTYzZTM4OTEyYSIsInN1YiI6InN5c3RlbTpzZXJ2aWNlYWNjb3VudDpkZWZhdWx0Om15LWFjY291bnQifQ.aAigSXFZapxJdFy3FwgSNc77jZYFiSTlG7D_AnHzBT1ZP69xLmrqI_oXt73NDLpecNWezjIvsCU6sLf45tfPY2RQX_aEAOXKWjFs2SxWI7GeQ-sWRt0yd1sOB9R48ipTdpNpNs5pypnTRg6dYLvtePmBWyOSN2412F9XKeM79tuO9a_ynPDjkCwsWJXGj-gX9DwpHdGK-cup0YosJ-9OpvXoWOiUNeBi1KrvJxgQwgLytJk3PHFnJHv4mCNALvvo1cu89_ENwUQrvok267ACeq53YsivYn7B0QWuZoX3ca4Bx14kEdXbd-9BvIEBZzVovH2ZvPTYMmyXgnpO7c1eOw
|
296
|
+
response:
|
297
|
+
status:
|
298
|
+
code: 200
|
299
|
+
message: OK
|
300
|
+
headers:
|
301
|
+
Cache-Control:
|
302
|
+
- no-store
|
303
|
+
Content-Type:
|
304
|
+
- application/json
|
305
|
+
Date:
|
306
|
+
- Tue, 22 Jan 2019 16:40:19 GMT
|
307
|
+
Content-Length:
|
308
|
+
- '674'
|
309
|
+
body:
|
310
|
+
encoding: UTF-8
|
311
|
+
string: '{"kind":"PersistentVolumeClaim","apiVersion":"v1","metadata":{"name":"my-local-storage-pvc","namespace":"default","selfLink":"/api/v1/namespaces/default/persistentvolumeclaims/my-local-storage-pvc","uid":"65c82fd5-1e64-11e9-bbff-fa163e38912a","resourceVersion":"56935","creationTimestamp":"2019-01-22T16:40:16Z","deletionTimestamp":"2019-01-22T16:40:19Z","deletionGracePeriodSeconds":0,"finalizers":["kubernetes.io/pvc-protection"]},"spec":{"accessModes":["ReadWriteOnce"],"selector":{},"resources":{"limits":{"storage":"3Gi"},"requests":{"storage":"2Gi"}},"volumeName":"my-local-storage","storageClassName":"manual","volumeMode":"Filesystem"},"status":{"phase":"Pending"}}
|
312
|
+
|
313
|
+
'
|
314
|
+
http_version:
|
315
|
+
recorded_at: Tue, 22 Jan 2019 16:40:20 GMT
|
316
|
+
recorded_with: VCR 4.0.0
|