kubeclient-rollback-dev 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rubocop.yml +16 -0
  4. data/.travis.yml +12 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +428 -0
  8. data/Rakefile +12 -0
  9. data/kubeclient.gemspec +29 -0
  10. data/lib/kubeclient/common.rb +512 -0
  11. data/lib/kubeclient/config.rb +126 -0
  12. data/lib/kubeclient/entity_list.rb +16 -0
  13. data/lib/kubeclient/kube_exception.rb +14 -0
  14. data/lib/kubeclient/missing_kind_compatibility.rb +68 -0
  15. data/lib/kubeclient/version.rb +4 -0
  16. data/lib/kubeclient/watch_notice.rb +7 -0
  17. data/lib/kubeclient/watch_stream.rb +80 -0
  18. data/lib/kubeclient.rb +32 -0
  19. data/test/cassettes/kubernetes_guestbook.yml +879 -0
  20. data/test/config/allinone.kubeconfig +20 -0
  21. data/test/config/external-ca.pem +18 -0
  22. data/test/config/external-cert.pem +19 -0
  23. data/test/config/external-key.rsa +27 -0
  24. data/test/config/external.kubeconfig +20 -0
  25. data/test/config/nouser.kubeconfig +16 -0
  26. data/test/config/userauth.kubeconfig +28 -0
  27. data/test/json/bindings_list.json +10 -0
  28. data/test/json/component_status.json +17 -0
  29. data/test/json/component_status_list.json +52 -0
  30. data/test/json/config_map_list.json +9 -0
  31. data/test/json/core_api_resource_list.json +181 -0
  32. data/test/json/core_api_resource_list_without_kind.json +129 -0
  33. data/test/json/core_oapi_resource_list_without_kind.json +197 -0
  34. data/test/json/created_endpoint.json +28 -0
  35. data/test/json/created_namespace.json +20 -0
  36. data/test/json/created_secret.json +16 -0
  37. data/test/json/created_service.json +31 -0
  38. data/test/json/empty_pod_list.json +9 -0
  39. data/test/json/endpoint_list.json +48 -0
  40. data/test/json/entity_list.json +56 -0
  41. data/test/json/event_list.json +35 -0
  42. data/test/json/limit_range.json +23 -0
  43. data/test/json/limit_range_list.json +31 -0
  44. data/test/json/namespace.json +13 -0
  45. data/test/json/namespace_exception.json +8 -0
  46. data/test/json/namespace_list.json +32 -0
  47. data/test/json/node.json +29 -0
  48. data/test/json/node_list.json +37 -0
  49. data/test/json/persistent_volume.json +37 -0
  50. data/test/json/persistent_volume_claim.json +32 -0
  51. data/test/json/persistent_volume_claim_list.json +40 -0
  52. data/test/json/persistent_volume_claims_nil_items.json +8 -0
  53. data/test/json/persistent_volume_list.json +45 -0
  54. data/test/json/pod.json +92 -0
  55. data/test/json/pod_list.json +79 -0
  56. data/test/json/pod_template_list.json +9 -0
  57. data/test/json/processed_template.json +27 -0
  58. data/test/json/replication_controller.json +57 -0
  59. data/test/json/replication_controller_list.json +66 -0
  60. data/test/json/resource_quota.json +46 -0
  61. data/test/json/resource_quota_list.json +54 -0
  62. data/test/json/secret_list.json +44 -0
  63. data/test/json/service.json +33 -0
  64. data/test/json/service_account.json +25 -0
  65. data/test/json/service_account_list.json +82 -0
  66. data/test/json/service_illegal_json_404.json +1 -0
  67. data/test/json/service_list.json +97 -0
  68. data/test/json/service_patch.json +25 -0
  69. data/test/json/service_update.json +22 -0
  70. data/test/json/versions_list.json +6 -0
  71. data/test/json/watch_stream.json +3 -0
  72. data/test/test_common.rb +32 -0
  73. data/test/test_component_status.rb +30 -0
  74. data/test/test_config.rb +72 -0
  75. data/test/test_endpoint.rb +35 -0
  76. data/test/test_guestbook_go.rb +238 -0
  77. data/test/test_helper.rb +10 -0
  78. data/test/test_kubeclient.rb +611 -0
  79. data/test/test_limit_range.rb +27 -0
  80. data/test/test_missing_methods.rb +42 -0
  81. data/test/test_namespace.rb +61 -0
  82. data/test/test_node.rb +33 -0
  83. data/test/test_persistent_volume.rb +30 -0
  84. data/test/test_persistent_volume_claim.rb +30 -0
  85. data/test/test_pod.rb +29 -0
  86. data/test/test_pod_log.rb +50 -0
  87. data/test/test_process_template.rb +44 -0
  88. data/test/test_replication_controller.rb +27 -0
  89. data/test/test_resource_list_without_kind.rb +78 -0
  90. data/test/test_resource_quota.rb +25 -0
  91. data/test/test_secret.rb +70 -0
  92. data/test/test_service.rb +293 -0
  93. data/test/test_service_account.rb +28 -0
  94. data/test/test_watch.rb +119 -0
  95. data/test/txt/pod_log.txt +6 -0
  96. data/test/valid_token_file +1 -0
  97. metadata +343 -0
@@ -0,0 +1,879 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - '*/*; q=0.5, application/xml'
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ User-Agent:
15
+ - Ruby
16
+ response:
17
+ status:
18
+ code: 404
19
+ message: Not Found
20
+ headers:
21
+ Content-Type:
22
+ - application/json
23
+ Date:
24
+ - Sun, 09 Aug 2015 10:03:59 GMT
25
+ Content-Length:
26
+ - '253'
27
+ body:
28
+ encoding: UTF-8
29
+ string: |-
30
+ {
31
+ "kind": "Status",
32
+ "apiVersion": "v1",
33
+ "metadata": {},
34
+ "status": "Failure",
35
+ "message": "namespaces \"kubeclient-ns\" not found",
36
+ "reason": "NotFound",
37
+ "details": {
38
+ "name": "kubeclient-ns",
39
+ "kind": "namespaces"
40
+ },
41
+ "code": 404
42
+ }
43
+ http_version:
44
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
45
+ - request:
46
+ method: delete
47
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/guestbook
48
+ body:
49
+ encoding: US-ASCII
50
+ string: ''
51
+ headers:
52
+ Accept:
53
+ - '*/*; q=0.5, application/xml'
54
+ Accept-Encoding:
55
+ - gzip, deflate
56
+ User-Agent:
57
+ - Ruby
58
+ response:
59
+ status:
60
+ code: 404
61
+ message: Not Found
62
+ headers:
63
+ Content-Type:
64
+ - application/json
65
+ Date:
66
+ - Sun, 09 Aug 2015 10:03:59 GMT
67
+ Content-Length:
68
+ - '239'
69
+ body:
70
+ encoding: UTF-8
71
+ string: |-
72
+ {
73
+ "kind": "Status",
74
+ "apiVersion": "v1",
75
+ "metadata": {},
76
+ "status": "Failure",
77
+ "message": "service \"guestbook\" not found",
78
+ "reason": "NotFound",
79
+ "details": {
80
+ "name": "guestbook",
81
+ "kind": "service"
82
+ },
83
+ "code": 404
84
+ }
85
+ http_version:
86
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
87
+ - request:
88
+ method: delete
89
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-master
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ Accept:
95
+ - '*/*; q=0.5, application/xml'
96
+ Accept-Encoding:
97
+ - gzip, deflate
98
+ User-Agent:
99
+ - Ruby
100
+ response:
101
+ status:
102
+ code: 404
103
+ message: Not Found
104
+ headers:
105
+ Content-Type:
106
+ - application/json
107
+ Date:
108
+ - Sun, 09 Aug 2015 10:03:59 GMT
109
+ Content-Length:
110
+ - '245'
111
+ body:
112
+ encoding: UTF-8
113
+ string: |-
114
+ {
115
+ "kind": "Status",
116
+ "apiVersion": "v1",
117
+ "metadata": {},
118
+ "status": "Failure",
119
+ "message": "service \"redis-master\" not found",
120
+ "reason": "NotFound",
121
+ "details": {
122
+ "name": "redis-master",
123
+ "kind": "service"
124
+ },
125
+ "code": 404
126
+ }
127
+ http_version:
128
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
129
+ - request:
130
+ method: delete
131
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-slave
132
+ body:
133
+ encoding: US-ASCII
134
+ string: ''
135
+ headers:
136
+ Accept:
137
+ - '*/*; q=0.5, application/xml'
138
+ Accept-Encoding:
139
+ - gzip, deflate
140
+ User-Agent:
141
+ - Ruby
142
+ response:
143
+ status:
144
+ code: 404
145
+ message: Not Found
146
+ headers:
147
+ Content-Type:
148
+ - application/json
149
+ Date:
150
+ - Sun, 09 Aug 2015 10:03:59 GMT
151
+ Content-Length:
152
+ - '243'
153
+ body:
154
+ encoding: UTF-8
155
+ string: |-
156
+ {
157
+ "kind": "Status",
158
+ "apiVersion": "v1",
159
+ "metadata": {},
160
+ "status": "Failure",
161
+ "message": "service \"redis-slave\" not found",
162
+ "reason": "NotFound",
163
+ "details": {
164
+ "name": "redis-slave",
165
+ "kind": "service"
166
+ },
167
+ "code": 404
168
+ }
169
+ http_version:
170
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
171
+ - request:
172
+ method: delete
173
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook
174
+ body:
175
+ encoding: US-ASCII
176
+ string: ''
177
+ headers:
178
+ Accept:
179
+ - '*/*; q=0.5, application/xml'
180
+ Accept-Encoding:
181
+ - gzip, deflate
182
+ User-Agent:
183
+ - Ruby
184
+ response:
185
+ status:
186
+ code: 404
187
+ message: Not Found
188
+ headers:
189
+ Content-Type:
190
+ - application/json
191
+ Date:
192
+ - Sun, 09 Aug 2015 10:03:59 GMT
193
+ Content-Length:
194
+ - '269'
195
+ body:
196
+ encoding: UTF-8
197
+ string: |-
198
+ {
199
+ "kind": "Status",
200
+ "apiVersion": "v1",
201
+ "metadata": {},
202
+ "status": "Failure",
203
+ "message": "replicationControllers \"guestbook\" not found",
204
+ "reason": "NotFound",
205
+ "details": {
206
+ "name": "guestbook",
207
+ "kind": "replicationControllers"
208
+ },
209
+ "code": 404
210
+ }
211
+ http_version:
212
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
213
+ - request:
214
+ method: delete
215
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master
216
+ body:
217
+ encoding: US-ASCII
218
+ string: ''
219
+ headers:
220
+ Accept:
221
+ - '*/*; q=0.5, application/xml'
222
+ Accept-Encoding:
223
+ - gzip, deflate
224
+ User-Agent:
225
+ - Ruby
226
+ response:
227
+ status:
228
+ code: 404
229
+ message: Not Found
230
+ headers:
231
+ Content-Type:
232
+ - application/json
233
+ Date:
234
+ - Sun, 09 Aug 2015 10:03:59 GMT
235
+ Content-Length:
236
+ - '275'
237
+ body:
238
+ encoding: UTF-8
239
+ string: |-
240
+ {
241
+ "kind": "Status",
242
+ "apiVersion": "v1",
243
+ "metadata": {},
244
+ "status": "Failure",
245
+ "message": "replicationControllers \"redis-master\" not found",
246
+ "reason": "NotFound",
247
+ "details": {
248
+ "name": "redis-master",
249
+ "kind": "replicationControllers"
250
+ },
251
+ "code": 404
252
+ }
253
+ http_version:
254
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
255
+ - request:
256
+ method: delete
257
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave
258
+ body:
259
+ encoding: US-ASCII
260
+ string: ''
261
+ headers:
262
+ Accept:
263
+ - '*/*; q=0.5, application/xml'
264
+ Accept-Encoding:
265
+ - gzip, deflate
266
+ User-Agent:
267
+ - Ruby
268
+ response:
269
+ status:
270
+ code: 404
271
+ message: Not Found
272
+ headers:
273
+ Content-Type:
274
+ - application/json
275
+ Date:
276
+ - Sun, 09 Aug 2015 10:03:59 GMT
277
+ Content-Length:
278
+ - '273'
279
+ body:
280
+ encoding: UTF-8
281
+ string: |-
282
+ {
283
+ "kind": "Status",
284
+ "apiVersion": "v1",
285
+ "metadata": {},
286
+ "status": "Failure",
287
+ "message": "replicationControllers \"redis-slave\" not found",
288
+ "reason": "NotFound",
289
+ "details": {
290
+ "name": "redis-slave",
291
+ "kind": "replicationControllers"
292
+ },
293
+ "code": 404
294
+ }
295
+ http_version:
296
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
297
+ - request:
298
+ method: post
299
+ uri: http://10.35.0.23:8080/api/v1/namespaces
300
+ body:
301
+ encoding: UTF-8
302
+ string: '{"metadata":{"name":"kubeclient-ns"},"kind":"Namespace","apiVersion":"v1"}'
303
+ headers:
304
+ Accept:
305
+ - '*/*; q=0.5, application/xml'
306
+ Accept-Encoding:
307
+ - gzip, deflate
308
+ Content-Length:
309
+ - '74'
310
+ User-Agent:
311
+ - Ruby
312
+ response:
313
+ status:
314
+ code: 201
315
+ message: Created
316
+ headers:
317
+ Content-Type:
318
+ - application/json
319
+ Date:
320
+ - Sun, 09 Aug 2015 10:03:59 GMT
321
+ Content-Length:
322
+ - '297'
323
+ body:
324
+ encoding: UTF-8
325
+ string: '{"kind":"Namespace","apiVersion":"v1","metadata":{"name":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns","uid":"f41e6b27-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"534","creationTimestamp":"2015-08-09T10:03:59Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}'
326
+ http_version:
327
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
328
+ - request:
329
+ method: post
330
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
331
+ body:
332
+ encoding: UTF-8
333
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"name":"guestbook"},"name":"guestbook"},"spec":{"selector":{"app":"guestbook"},"ports":[{"port":3000,"targetPort":"http-server"}]},"type":"LoadBalancer","kind":"Service","apiVersion":"v1"}'
334
+ headers:
335
+ Accept:
336
+ - '*/*; q=0.5, application/xml'
337
+ Accept-Encoding:
338
+ - gzip, deflate
339
+ Content-Length:
340
+ - '239'
341
+ User-Agent:
342
+ - Ruby
343
+ response:
344
+ status:
345
+ code: 201
346
+ message: Created
347
+ headers:
348
+ Content-Type:
349
+ - application/json
350
+ Date:
351
+ - Sun, 09 Aug 2015 10:03:59 GMT
352
+ Content-Length:
353
+ - '521'
354
+ body:
355
+ encoding: UTF-8
356
+ string: '{"kind":"Service","apiVersion":"v1","metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/guestbook","uid":"f42187e1-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"538","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"name":"guestbook"}},"spec":{"ports":[{"protocol":"TCP","port":3000,"targetPort":"http-server","nodePort":0}],"selector":{"app":"guestbook"},"clusterIP":"10.0.0.80","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}'
357
+ http_version:
358
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
359
+ - request:
360
+ method: post
361
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
362
+ body:
363
+ encoding: UTF-8
364
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"master"},"name":"redis-master"},"spec":{"selector":{"app":"redis","role":"master"},"ports":[{"port":6379,"targetPort":"redis-server"}]},"kind":"Service","apiVersion":"v1"}'
365
+ headers:
366
+ Accept:
367
+ - '*/*; q=0.5, application/xml'
368
+ Accept-Encoding:
369
+ - gzip, deflate
370
+ Content-Length:
371
+ - '244'
372
+ User-Agent:
373
+ - Ruby
374
+ response:
375
+ status:
376
+ code: 201
377
+ message: Created
378
+ headers:
379
+ Content-Type:
380
+ - application/json
381
+ Date:
382
+ - Sun, 09 Aug 2015 10:03:59 GMT
383
+ Content-Length:
384
+ - '552'
385
+ body:
386
+ encoding: UTF-8
387
+ string: '{"kind":"Service","apiVersion":"v1","metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-master","uid":"f423bf8b-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"542","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"master"},"clusterIP":"10.0.0.140","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}'
388
+ http_version:
389
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
390
+ - request:
391
+ method: post
392
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
393
+ body:
394
+ encoding: UTF-8
395
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"slave"},"name":"redis-slave"},"spec":{"selector":{"app":"redis","role":"slave"},"ports":[{"port":6379,"targetPort":"redis-server"}]},"kind":"Service","apiVersion":"v1"}'
396
+ headers:
397
+ Accept:
398
+ - '*/*; q=0.5, application/xml'
399
+ Accept-Encoding:
400
+ - gzip, deflate
401
+ Content-Length:
402
+ - '241'
403
+ User-Agent:
404
+ - Ruby
405
+ response:
406
+ status:
407
+ code: 201
408
+ message: Created
409
+ headers:
410
+ Content-Type:
411
+ - application/json
412
+ Date:
413
+ - Sun, 09 Aug 2015 10:03:59 GMT
414
+ Content-Length:
415
+ - '548'
416
+ body:
417
+ encoding: UTF-8
418
+ string: '{"kind":"Service","apiVersion":"v1","metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-slave","uid":"f4264678-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"545","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"slave"},"clusterIP":"10.0.0.154","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}'
419
+ http_version:
420
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
421
+ - request:
422
+ method: post
423
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
424
+ body:
425
+ encoding: UTF-8
426
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"guestbook","role":"slave"},"name":"guestbook"},"spec":{"selector":{"app":"guestbook"},"template":{"metadata":{"labels":{"app":"guestbook"}},"spec":{"containers":[{"name":"guestbook","image":"kubernetes/guestbook:v2","ports":[{"name":"http-server","containerPort":3000}]}]}},"replicas":3},"kind":"ReplicationController","apiVersion":"v1"}'
427
+ headers:
428
+ Accept:
429
+ - '*/*; q=0.5, application/xml'
430
+ Accept-Encoding:
431
+ - gzip, deflate
432
+ Content-Length:
433
+ - '395'
434
+ User-Agent:
435
+ - Ruby
436
+ response:
437
+ status:
438
+ code: 201
439
+ message: Created
440
+ headers:
441
+ Content-Type:
442
+ - application/json
443
+ Date:
444
+ - Sun, 09 Aug 2015 10:03:59 GMT
445
+ Content-Length:
446
+ - '815'
447
+ body:
448
+ encoding: UTF-8
449
+ string: '{"kind":"ReplicationController","apiVersion":"v1","metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook","uid":"f4287784-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"547","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"guestbook","role":"slave"}},"spec":{"replicas":3,"selector":{"app":"guestbook"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"guestbook"}},"spec":{"containers":[{"name":"guestbook","image":"kubernetes/guestbook:v2","ports":[{"name":"http-server","containerPort":3000,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}'
450
+ http_version:
451
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
452
+ - request:
453
+ method: post
454
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
455
+ body:
456
+ encoding: UTF-8
457
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"master"},"name":"redis-master"},"spec":{"selector":{"app":"redis","role":"master"},"template":{"metadata":{"labels":{"app":"redis","role":"master"}},"spec":{"containers":[{"name":"redis-master","image":"redis","ports":[{"name":"redis-server","containerPort":6379}]}]}},"replicas":1},"kind":"ReplicationController","apiVersion":"v1"}'
458
+ headers:
459
+ Accept:
460
+ - '*/*; q=0.5, application/xml'
461
+ Accept-Encoding:
462
+ - gzip, deflate
463
+ Content-Length:
464
+ - '405'
465
+ User-Agent:
466
+ - Ruby
467
+ response:
468
+ status:
469
+ code: 201
470
+ message: Created
471
+ headers:
472
+ Content-Type:
473
+ - application/json
474
+ Date:
475
+ - Sun, 09 Aug 2015 10:03:59 GMT
476
+ Content-Length:
477
+ - '828'
478
+ body:
479
+ encoding: UTF-8
480
+ string: '{"kind":"ReplicationController","apiVersion":"v1","metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master","uid":"f42a9800-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"558","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"replicas":1,"selector":{"app":"redis","role":"master"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"master"}},"spec":{"containers":[{"name":"redis-master","image":"redis","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}'
481
+ http_version:
482
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
483
+ - request:
484
+ method: post
485
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
486
+ body:
487
+ encoding: UTF-8
488
+ string: '{"metadata":{"namespace":"kubeclient-ns","labels":{"app":"redis","role":"slave"},"name":"redis-slave"},"spec":{"selector":{"app":"redis","role":"slave"},"template":{"metadata":{"labels":{"app":"redis","role":"slave"}},"spec":{"containers":[{"name":"redis-slave","image":"kubernetes/redis-slave:v2","ports":[{"name":"redis-server","containerPort":6379}]}]}},"replicas":2},"kind":"ReplicationController","apiVersion":"v1"}'
489
+ headers:
490
+ Accept:
491
+ - '*/*; q=0.5, application/xml'
492
+ Accept-Encoding:
493
+ - gzip, deflate
494
+ Content-Length:
495
+ - '420'
496
+ User-Agent:
497
+ - Ruby
498
+ response:
499
+ status:
500
+ code: 201
501
+ message: Created
502
+ headers:
503
+ Content-Type:
504
+ - application/json
505
+ Date:
506
+ - Sun, 09 Aug 2015 10:03:59 GMT
507
+ Content-Length:
508
+ - '842'
509
+ body:
510
+ encoding: UTF-8
511
+ string: '{"kind":"ReplicationController","apiVersion":"v1","metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave","uid":"f42e1d09-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"567","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"replicas":2,"selector":{"app":"redis","role":"slave"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"slave"}},"spec":{"containers":[{"name":"redis-slave","image":"kubernetes/redis-slave:v2","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}'
512
+ http_version:
513
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
514
+ - request:
515
+ method: get
516
+ uri: http://10.35.0.23:8080/api/v1/namespaces
517
+ body:
518
+ encoding: US-ASCII
519
+ string: ''
520
+ headers:
521
+ Accept:
522
+ - '*/*; q=0.5, application/xml'
523
+ Accept-Encoding:
524
+ - gzip, deflate
525
+ User-Agent:
526
+ - Ruby
527
+ response:
528
+ status:
529
+ code: 200
530
+ message: OK
531
+ headers:
532
+ Content-Type:
533
+ - application/json
534
+ Date:
535
+ - Sun, 09 Aug 2015 10:03:59 GMT
536
+ Content-Length:
537
+ - '629'
538
+ body:
539
+ encoding: UTF-8
540
+ string: '{"kind":"NamespaceList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces","resourceVersion":"570"},"items":[{"metadata":{"name":"default","selfLink":"/api/v1/namespaces/default","uid":"37360c82-3e77-11e5-a75a-18037327aaeb","resourceVersion":"6","creationTimestamp":"2015-08-09T09:15:45Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}},{"metadata":{"name":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns","uid":"f41e6b27-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"534","creationTimestamp":"2015-08-09T10:03:59Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Active"}}]}'
541
+ http_version:
542
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
543
+ - request:
544
+ method: get
545
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services
546
+ body:
547
+ encoding: US-ASCII
548
+ string: ''
549
+ headers:
550
+ Accept:
551
+ - '*/*; q=0.5, application/xml'
552
+ Accept-Encoding:
553
+ - gzip, deflate
554
+ User-Agent:
555
+ - Ruby
556
+ response:
557
+ status:
558
+ code: 200
559
+ message: OK
560
+ headers:
561
+ Content-Type:
562
+ - application/json
563
+ Date:
564
+ - Sun, 09 Aug 2015 10:03:59 GMT
565
+ Content-Length:
566
+ - '1661'
567
+ body:
568
+ encoding: UTF-8
569
+ string: '{"kind":"ServiceList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/kubeclient-ns/services","resourceVersion":"571"},"items":[{"metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/guestbook","uid":"f42187e1-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"538","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"name":"guestbook"}},"spec":{"ports":[{"protocol":"TCP","port":3000,"targetPort":"http-server","nodePort":0}],"selector":{"app":"guestbook"},"clusterIP":"10.0.0.80","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}},{"metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-master","uid":"f423bf8b-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"542","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"master"},"clusterIP":"10.0.0.140","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}},{"metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/services/redis-slave","uid":"f4264678-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"545","creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"ports":[{"protocol":"TCP","port":6379,"targetPort":"redis-server","nodePort":0}],"selector":{"app":"redis","role":"slave"},"clusterIP":"10.0.0.154","type":"ClusterIP","sessionAffinity":"None"},"status":{"loadBalancer":{}}}]}'
570
+ http_version:
571
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
572
+ - request:
573
+ method: get
574
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers
575
+ body:
576
+ encoding: US-ASCII
577
+ string: ''
578
+ headers:
579
+ Accept:
580
+ - '*/*; q=0.5, application/xml'
581
+ Accept-Encoding:
582
+ - gzip, deflate
583
+ User-Agent:
584
+ - Ruby
585
+ response:
586
+ status:
587
+ code: 200
588
+ message: OK
589
+ headers:
590
+ Content-Type:
591
+ - application/json
592
+ Date:
593
+ - Sun, 09 Aug 2015 10:03:59 GMT
594
+ Transfer-Encoding:
595
+ - chunked
596
+ body:
597
+ encoding: UTF-8
598
+ string: '{"kind":"ReplicationControllerList","apiVersion":"v1","metadata":{"selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers","resourceVersion":"571"},"items":[{"metadata":{"name":"guestbook","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook","uid":"f4287784-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"557","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"guestbook","role":"slave"}},"spec":{"replicas":3,"selector":{"app":"guestbook"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"guestbook"}},"spec":{"containers":[{"name":"guestbook","image":"kubernetes/guestbook:v2","ports":[{"name":"http-server","containerPort":3000,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":3,"observedGeneration":1}},{"metadata":{"name":"redis-master","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master","uid":"f42a9800-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"565","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"master"}},"spec":{"replicas":1,"selector":{"app":"redis","role":"master"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"master"}},"spec":{"containers":[{"name":"redis-master","image":"redis","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0,"observedGeneration":1}},{"metadata":{"name":"redis-slave","namespace":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave","uid":"f42e1d09-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"567","generation":1,"creationTimestamp":"2015-08-09T10:03:59Z","labels":{"app":"redis","role":"slave"}},"spec":{"replicas":2,"selector":{"app":"redis","role":"slave"},"template":{"metadata":{"creationTimestamp":null,"labels":{"app":"redis","role":"slave"}},"spec":{"containers":[{"name":"redis-slave","image":"kubernetes/redis-slave:v2","ports":[{"name":"redis-server","containerPort":6379,"protocol":"TCP"}],"resources":{},"terminationMessagePath":"/dev/termination-log","imagePullPolicy":"IfNotPresent"}],"restartPolicy":"Always","dnsPolicy":"ClusterFirst"}}},"status":{"replicas":0}}]}'
599
+ http_version:
600
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
601
+ - request:
602
+ method: delete
603
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/guestbook
604
+ body:
605
+ encoding: US-ASCII
606
+ string: ''
607
+ headers:
608
+ Accept:
609
+ - '*/*; q=0.5, application/xml'
610
+ Accept-Encoding:
611
+ - gzip, deflate
612
+ User-Agent:
613
+ - Ruby
614
+ response:
615
+ status:
616
+ code: 200
617
+ message: OK
618
+ headers:
619
+ Content-Type:
620
+ - application/json
621
+ Date:
622
+ - Sun, 09 Aug 2015 10:03:59 GMT
623
+ Content-Length:
624
+ - '100'
625
+ body:
626
+ encoding: UTF-8
627
+ string: |-
628
+ {
629
+ "kind": "Status",
630
+ "apiVersion": "v1",
631
+ "metadata": {},
632
+ "status": "Success",
633
+ "code": 200
634
+ }
635
+ http_version:
636
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
637
+ - request:
638
+ method: delete
639
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-master
640
+ body:
641
+ encoding: US-ASCII
642
+ string: ''
643
+ headers:
644
+ Accept:
645
+ - '*/*; q=0.5, application/xml'
646
+ Accept-Encoding:
647
+ - gzip, deflate
648
+ User-Agent:
649
+ - Ruby
650
+ response:
651
+ status:
652
+ code: 200
653
+ message: OK
654
+ headers:
655
+ Content-Type:
656
+ - application/json
657
+ Date:
658
+ - Sun, 09 Aug 2015 10:03:59 GMT
659
+ Content-Length:
660
+ - '100'
661
+ body:
662
+ encoding: UTF-8
663
+ string: |-
664
+ {
665
+ "kind": "Status",
666
+ "apiVersion": "v1",
667
+ "metadata": {},
668
+ "status": "Success",
669
+ "code": 200
670
+ }
671
+ http_version:
672
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
673
+ - request:
674
+ method: delete
675
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/services/redis-slave
676
+ body:
677
+ encoding: US-ASCII
678
+ string: ''
679
+ headers:
680
+ Accept:
681
+ - '*/*; q=0.5, application/xml'
682
+ Accept-Encoding:
683
+ - gzip, deflate
684
+ User-Agent:
685
+ - Ruby
686
+ response:
687
+ status:
688
+ code: 200
689
+ message: OK
690
+ headers:
691
+ Content-Type:
692
+ - application/json
693
+ Date:
694
+ - Sun, 09 Aug 2015 10:03:59 GMT
695
+ Content-Length:
696
+ - '100'
697
+ body:
698
+ encoding: UTF-8
699
+ string: |-
700
+ {
701
+ "kind": "Status",
702
+ "apiVersion": "v1",
703
+ "metadata": {},
704
+ "status": "Success",
705
+ "code": 200
706
+ }
707
+ http_version:
708
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
709
+ - request:
710
+ method: delete
711
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/guestbook
712
+ body:
713
+ encoding: US-ASCII
714
+ string: ''
715
+ headers:
716
+ Accept:
717
+ - '*/*; q=0.5, application/xml'
718
+ Accept-Encoding:
719
+ - gzip, deflate
720
+ User-Agent:
721
+ - Ruby
722
+ response:
723
+ status:
724
+ code: 200
725
+ message: OK
726
+ headers:
727
+ Content-Type:
728
+ - application/json
729
+ Date:
730
+ - Sun, 09 Aug 2015 10:03:59 GMT
731
+ Content-Length:
732
+ - '100'
733
+ body:
734
+ encoding: UTF-8
735
+ string: |-
736
+ {
737
+ "kind": "Status",
738
+ "apiVersion": "v1",
739
+ "metadata": {},
740
+ "status": "Success",
741
+ "code": 200
742
+ }
743
+ http_version:
744
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
745
+ - request:
746
+ method: delete
747
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-master
748
+ body:
749
+ encoding: US-ASCII
750
+ string: ''
751
+ headers:
752
+ Accept:
753
+ - '*/*; q=0.5, application/xml'
754
+ Accept-Encoding:
755
+ - gzip, deflate
756
+ User-Agent:
757
+ - Ruby
758
+ response:
759
+ status:
760
+ code: 200
761
+ message: OK
762
+ headers:
763
+ Content-Type:
764
+ - application/json
765
+ Date:
766
+ - Sun, 09 Aug 2015 10:03:59 GMT
767
+ Content-Length:
768
+ - '100'
769
+ body:
770
+ encoding: UTF-8
771
+ string: |-
772
+ {
773
+ "kind": "Status",
774
+ "apiVersion": "v1",
775
+ "metadata": {},
776
+ "status": "Success",
777
+ "code": 200
778
+ }
779
+ http_version:
780
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
781
+ - request:
782
+ method: delete
783
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns/replicationcontrollers/redis-slave
784
+ body:
785
+ encoding: US-ASCII
786
+ string: ''
787
+ headers:
788
+ Accept:
789
+ - '*/*; q=0.5, application/xml'
790
+ Accept-Encoding:
791
+ - gzip, deflate
792
+ User-Agent:
793
+ - Ruby
794
+ response:
795
+ status:
796
+ code: 200
797
+ message: OK
798
+ headers:
799
+ Content-Type:
800
+ - application/json
801
+ Date:
802
+ - Sun, 09 Aug 2015 10:03:59 GMT
803
+ Content-Length:
804
+ - '100'
805
+ body:
806
+ encoding: UTF-8
807
+ string: |-
808
+ {
809
+ "kind": "Status",
810
+ "apiVersion": "v1",
811
+ "metadata": {},
812
+ "status": "Success",
813
+ "code": 200
814
+ }
815
+ http_version:
816
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
817
+ - request:
818
+ method: delete
819
+ uri: http://10.35.0.23:8080/api/v1/namespaces/kubeclient-ns
820
+ body:
821
+ encoding: US-ASCII
822
+ string: ''
823
+ headers:
824
+ Accept:
825
+ - '*/*; q=0.5, application/xml'
826
+ Accept-Encoding:
827
+ - gzip, deflate
828
+ User-Agent:
829
+ - Ruby
830
+ response:
831
+ status:
832
+ code: 200
833
+ message: OK
834
+ headers:
835
+ Content-Type:
836
+ - application/json
837
+ Date:
838
+ - Sun, 09 Aug 2015 10:03:59 GMT
839
+ Content-Length:
840
+ - '345'
841
+ body:
842
+ encoding: UTF-8
843
+ string: '{"kind":"Namespace","apiVersion":"v1","metadata":{"name":"kubeclient-ns","selfLink":"/api/v1/namespaces/kubeclient-ns","uid":"f41e6b27-3e7d-11e5-a75a-18037327aaeb","resourceVersion":"584","creationTimestamp":"2015-08-09T10:03:59Z","deletionTimestamp":"2015-08-09T10:03:59Z"},"spec":{"finalizers":["kubernetes"]},"status":{"phase":"Terminating"}}'
844
+ http_version:
845
+ recorded_at: Sun, 09 Aug 2015 10:00:02 GMT
846
+ - request:
847
+ method: get
848
+ uri: http://10.35.0.23:8080/api/v1
849
+ body:
850
+ encoding: US-ASCII
851
+ string: ''
852
+ headers:
853
+ Accept:
854
+ - "*/*"
855
+ Accept-Encoding:
856
+ - gzip, deflate
857
+ User-Agent:
858
+ - rest-client/2.0.0 (linux-gnu x86_64) ruby/2.3.0p0
859
+ Host:
860
+ - localhost:8080
861
+ response:
862
+ status:
863
+ code: 200
864
+ message: OK
865
+ headers:
866
+ Content-Type:
867
+ - application/json
868
+ Date:
869
+ - Mon, 29 Aug 2016 15:51:30 GMT
870
+ Transfer-Encoding:
871
+ - chunked
872
+ body:
873
+ encoding: UTF-8
874
+ string: '{"kind":"APIResourceList","groupVersion":"v1","resources":[{"name":"bindings","namespaced":true,"kind":"Binding"},{"name":"componentstatuses","namespaced":false,"kind":"ComponentStatus"},{"name":"configmaps","namespaced":true,"kind":"ConfigMap"},{"name":"endpoints","namespaced":true,"kind":"Endpoints"},{"name":"events","namespaced":true,"kind":"Event"},{"name":"limitranges","namespaced":true,"kind":"LimitRange"},{"name":"namespaces","namespaced":false,"kind":"Namespace"},{"name":"namespaces/finalize","namespaced":false,"kind":"Namespace"},{"name":"namespaces/status","namespaced":false,"kind":"Namespace"},{"name":"nodes","namespaced":false,"kind":"Node"},{"name":"nodes/proxy","namespaced":false,"kind":"Node"},{"name":"nodes/status","namespaced":false,"kind":"Node"},{"name":"persistentvolumeclaims","namespaced":true,"kind":"PersistentVolumeClaim"},{"name":"persistentvolumeclaims/status","namespaced":true,"kind":"PersistentVolumeClaim"},{"name":"persistentvolumes","namespaced":false,"kind":"PersistentVolume"},{"name":"persistentvolumes/status","namespaced":false,"kind":"PersistentVolume"},{"name":"pods","namespaced":true,"kind":"Pod"},{"name":"pods/attach","namespaced":true,"kind":"Pod"},{"name":"pods/binding","namespaced":true,"kind":"Binding"},{"name":"pods/exec","namespaced":true,"kind":"Pod"},{"name":"pods/log","namespaced":true,"kind":"Pod"},{"name":"pods/portforward","namespaced":true,"kind":"Pod"},{"name":"pods/proxy","namespaced":true,"kind":"Pod"},{"name":"pods/status","namespaced":true,"kind":"Pod"},{"name":"podtemplates","namespaced":true,"kind":"PodTemplate"},{"name":"replicationcontrollers","namespaced":true,"kind":"ReplicationController"},{"name":"replicationcontrollers/scale","namespaced":true,"kind":"Scale"},{"name":"replicationcontrollers/status","namespaced":true,"kind":"ReplicationController"},{"name":"resourcequotas","namespaced":true,"kind":"ResourceQuota"},{"name":"resourcequotas/status","namespaced":true,"kind":"ResourceQuota"},{"name":"secrets","namespaced":true,"kind":"Secret"},{"name":"serviceaccounts","namespaced":true,"kind":"ServiceAccount"},{"name":"services","namespaced":true,"kind":"Service"},{"name":"services/proxy","namespaced":true,"kind":"Service"},{"name":"services/status","namespaced":true,"kind":"Service"}]}
875
+
876
+ '
877
+ http_version:
878
+ recorded_at: Mon, 29 Aug 2016 15:51:30 GMT
879
+ recorded_with: VCR 3.0.3