kubeclient 4.9.1 → 4.9.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of kubeclient might be problematic. Click here for more details.

Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/actions.yml +35 -0
  3. data/CHANGELOG.md +8 -0
  4. data/kubeclient.gemspec +3 -2
  5. data/lib/kubeclient/common.rb +2 -2
  6. data/lib/kubeclient/config.rb +6 -1
  7. data/lib/kubeclient/version.rb +1 -1
  8. metadata +8 -214
  9. data/.travis.yml +0 -29
  10. data/test/cassettes/kubernetes_guestbook.yml +0 -879
  11. data/test/config/allinone.kubeconfig +0 -20
  12. data/test/config/execauth.kubeconfig +0 -62
  13. data/test/config/external-ca.pem +0 -18
  14. data/test/config/external-cert.pem +0 -19
  15. data/test/config/external-key.rsa +0 -27
  16. data/test/config/external.kubeconfig +0 -20
  17. data/test/config/gcpauth.kubeconfig +0 -22
  18. data/test/config/gcpcmdauth.kubeconfig +0 -26
  19. data/test/config/nouser.kubeconfig +0 -16
  20. data/test/config/oidcauth.kubeconfig +0 -25
  21. data/test/config/timestamps.kubeconfig +0 -25
  22. data/test/config/userauth.kubeconfig +0 -28
  23. data/test/json/bindings_list.json +0 -10
  24. data/test/json/component_status.json +0 -17
  25. data/test/json/component_status_list.json +0 -52
  26. data/test/json/config.istio.io_api_resource_list.json +0 -679
  27. data/test/json/config_map_list.json +0 -9
  28. data/test/json/core_api_resource_list.json +0 -181
  29. data/test/json/core_api_resource_list_without_kind.json +0 -129
  30. data/test/json/core_oapi_resource_list_without_kind.json +0 -197
  31. data/test/json/created_endpoint.json +0 -28
  32. data/test/json/created_namespace.json +0 -20
  33. data/test/json/created_secret.json +0 -16
  34. data/test/json/created_security_context_constraint.json +0 -65
  35. data/test/json/created_service.json +0 -31
  36. data/test/json/empty_pod_list.json +0 -9
  37. data/test/json/endpoint_list.json +0 -48
  38. data/test/json/entity_list.json +0 -56
  39. data/test/json/event_list.json +0 -35
  40. data/test/json/extensions_v1beta1_api_resource_list.json +0 -217
  41. data/test/json/limit_range.json +0 -23
  42. data/test/json/limit_range_list.json +0 -31
  43. data/test/json/namespace.json +0 -13
  44. data/test/json/namespace_exception.json +0 -8
  45. data/test/json/namespace_list.json +0 -32
  46. data/test/json/node.json +0 -29
  47. data/test/json/node_list.json +0 -37
  48. data/test/json/node_notice.json +0 -160
  49. data/test/json/persistent_volume.json +0 -37
  50. data/test/json/persistent_volume_claim.json +0 -32
  51. data/test/json/persistent_volume_claim_list.json +0 -40
  52. data/test/json/persistent_volume_claims_nil_items.json +0 -8
  53. data/test/json/persistent_volume_list.json +0 -45
  54. data/test/json/pod.json +0 -92
  55. data/test/json/pod_list.json +0 -79
  56. data/test/json/pod_template_list.json +0 -9
  57. data/test/json/pods_1.json +0 -265
  58. data/test/json/pods_2.json +0 -102
  59. data/test/json/pods_410.json +0 -9
  60. data/test/json/processed_template.json +0 -27
  61. data/test/json/replication_controller.json +0 -57
  62. data/test/json/replication_controller_list.json +0 -66
  63. data/test/json/resource_quota.json +0 -46
  64. data/test/json/resource_quota_list.json +0 -54
  65. data/test/json/secret_list.json +0 -44
  66. data/test/json/security.openshift.io_api_resource_list.json +0 -69
  67. data/test/json/security_context_constraint_list.json +0 -375
  68. data/test/json/service.json +0 -33
  69. data/test/json/service_account.json +0 -25
  70. data/test/json/service_account_list.json +0 -82
  71. data/test/json/service_illegal_json_404.json +0 -1
  72. data/test/json/service_json_patch.json +0 -26
  73. data/test/json/service_list.json +0 -97
  74. data/test/json/service_merge_patch.json +0 -26
  75. data/test/json/service_patch.json +0 -25
  76. data/test/json/service_update.json +0 -22
  77. data/test/json/template.json +0 -27
  78. data/test/json/template.openshift.io_api_resource_list.json +0 -75
  79. data/test/json/template_list.json +0 -35
  80. data/test/json/versions_list.json +0 -6
  81. data/test/json/watch_stream.json +0 -3
  82. data/test/test_common.rb +0 -95
  83. data/test/test_common_url_handling.rb +0 -160
  84. data/test/test_component_status.rb +0 -29
  85. data/test/test_config.rb +0 -222
  86. data/test/test_endpoint.rb +0 -54
  87. data/test/test_exec_credentials.rb +0 -225
  88. data/test/test_gcp_command_credentials.rb +0 -27
  89. data/test/test_google_application_default_credentials.rb +0 -15
  90. data/test/test_guestbook_go.rb +0 -235
  91. data/test/test_helper.rb +0 -18
  92. data/test/test_kubeclient.rb +0 -881
  93. data/test/test_limit_range.rb +0 -25
  94. data/test/test_missing_methods.rb +0 -80
  95. data/test/test_namespace.rb +0 -59
  96. data/test/test_node.rb +0 -70
  97. data/test/test_oidc_auth_provider.rb +0 -103
  98. data/test/test_persistent_volume.rb +0 -29
  99. data/test/test_persistent_volume_claim.rb +0 -28
  100. data/test/test_pod.rb +0 -81
  101. data/test/test_pod_log.rb +0 -157
  102. data/test/test_process_template.rb +0 -80
  103. data/test/test_replication_controller.rb +0 -47
  104. data/test/test_resource_list_without_kind.rb +0 -78
  105. data/test/test_resource_quota.rb +0 -23
  106. data/test/test_secret.rb +0 -62
  107. data/test/test_security_context_constraint.rb +0 -62
  108. data/test/test_service.rb +0 -357
  109. data/test/test_service_account.rb +0 -26
  110. data/test/test_watch.rb +0 -195
  111. data/test/txt/pod_log.txt +0 -6
  112. data/test/valid_token_file +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ea191875dc5c9e99d49152f6615caa50478bc8604a4de9c6fdda0d46da75ea5
4
- data.tar.gz: 84214e5b1f2f3116aeb646828e0a5cf6456173493abf1fb384fe6132a723271d
3
+ metadata.gz: 9220de071696f945ccb667a13ea89c697d935f97abaabad9350bf8d39596d0b3
4
+ data.tar.gz: 508742ac151675cc00e0dda915f5f44cb5622c90ad56aa97de06967880925297
5
5
  SHA512:
6
- metadata.gz: 549974ed0fbec82aa99df19db4829af4da21eec3ab037037c9a6880ab2b7f0bbf9a854ee9e1713a9eedccf6e7fafbc593301a8e67b745e54d88f9da158f6b596
7
- data.tar.gz: 2f44720eca3c585e69c562b218f6e17c1ed0fb13dd5e26177fef6fa3ec610a6c0b1f056102ac3d3e3d9cf21801fe13d8560c509423838304cac0a40b66eedae8
6
+ metadata.gz: ab7ec603082fd9c11089e721ebb7d98bdd4092b76f9d173f3075351db41c4ab76ca2e8cf2a54818bf0f6bc5d9749ed64dc51af262acc93c527ba0a4e1b1637cb
7
+ data.tar.gz: daaf00389fbd89a5eff46397e4a176de5fb540a292a706c093c289f476c250f1cdb7caaad3fa3a865841704c1a141be6861d189f8a59bda2dcff35581742e981
@@ -0,0 +1,35 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches:
5
+ - '**'
6
+ tags:
7
+ - '**'
8
+ pull_request:
9
+ branches:
10
+ - '**'
11
+ jobs:
12
+ build:
13
+ runs-on: ${{ matrix.os }}
14
+ strategy:
15
+ matrix:
16
+ ruby: [ '2.5', '2.6', '2.7', '3.0', 'truffleruby-head' ]
17
+ os: ['ubuntu-latest', 'macos-latest']
18
+ task: [test]
19
+ include:
20
+ # run rubocop against lowest supported ruby
21
+ - os: ubuntu-latest
22
+ ruby: '2.5'
23
+ task: rubocop
24
+ name: ${{ matrix.os }} ${{ matrix.ruby }} rake ${{ matrix.task }}
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ # actions/setup-ruby did not support truffle or bundler caching
28
+ - uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ bundler-cache: false # disable running 'bundle install' and caching installed gems see https://github.com/httprb/http/issues/572
32
+ - run: gem install rake bundler
33
+ - run: bundle install
34
+ - run: bundle exec rake ${{ matrix.task }}
35
+
data/CHANGELOG.md CHANGED
@@ -4,6 +4,14 @@ Notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
5
5
  Kubeclient release versioning follows [SemVer](https://semver.org/).
6
6
 
7
+ ## 4.9.2 — 2021-05-30
8
+
9
+ ### Added
10
+ - Ruby 3.0 compatibility (#500, #505).
11
+
12
+ ### Removed
13
+ - Reduce .gem size by dropping test/ directory, it's useless at run time (#502).
14
+
7
15
  ## 4.9.1 — 2020-08-31
8
16
  ### Fixed
9
17
  - Now should work with apiserver deployed not at root of domain but a sub-path,
data/kubeclient.gemspec CHANGED
@@ -14,9 +14,10 @@ Gem::Specification.new do |spec|
14
14
  spec.homepage = 'https://github.com/abonas/kubeclient'
15
15
  spec.license = 'MIT'
16
16
 
17
- spec.files = `git ls-files -z`.split("\x0")
17
+ git_files = `git ls-files -z`.split("\x0")
18
+ spec.files = git_files.grep_v(%r{^(test|spec|features)/})
18
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
19
- spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.test_files = []
20
21
  spec.require_paths = ['lib']
21
22
  spec.required_ruby_version = '>= 2.2.0'
22
23
 
@@ -267,8 +267,8 @@ module Kubeclient
267
267
  patch_entity(entity.resource_name, name, patch, 'merge-patch', namespace)
268
268
  end
269
269
 
270
- define_singleton_method("apply_#{entity.method_names[0]}") do |*args|
271
- apply_entity(entity.resource_name, *args)
270
+ define_singleton_method("apply_#{entity.method_names[0]}") do |resource, opts = {}|
271
+ apply_entity(entity.resource_name, resource, **opts)
272
272
  end
273
273
  end
274
274
  end
@@ -30,7 +30,12 @@ module Kubeclient
30
30
 
31
31
  # Builds Config instance by parsing given file, with lookups relative to file's directory.
32
32
  def self.read(filename)
33
- parsed = YAML.safe_load(File.read(filename), [Date, Time])
33
+ parsed =
34
+ if RUBY_VERSION >= '2.6'
35
+ YAML.safe_load(File.read(filename), permitted_classes: [Date, Time])
36
+ else
37
+ YAML.safe_load(File.read(filename), [Date, Time])
38
+ end
34
39
  Config.new(parsed, File.dirname(filename))
35
40
  end
36
41
 
@@ -1,4 +1,4 @@
1
1
  # Kubernetes REST-API Client
2
2
  module Kubeclient
3
- VERSION = '4.9.1'.freeze
3
+ VERSION = '4.9.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.1
4
+ version: 4.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-31 00:00:00.000000000 Z
11
+ date: 2021-05-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -225,9 +225,9 @@ executables: []
225
225
  extensions: []
226
226
  extra_rdoc_files: []
227
227
  files:
228
+ - ".github/workflows/actions.yml"
228
229
  - ".gitignore"
229
230
  - ".rubocop.yml"
230
- - ".travis.yml"
231
231
  - CHANGELOG.md
232
232
  - Gemfile
233
233
  - LICENSE.txt
@@ -251,114 +251,11 @@ files:
251
251
  - lib/kubeclient/resource_not_found_error.rb
252
252
  - lib/kubeclient/version.rb
253
253
  - lib/kubeclient/watch_stream.rb
254
- - test/cassettes/kubernetes_guestbook.yml
255
- - test/config/allinone.kubeconfig
256
- - test/config/execauth.kubeconfig
257
- - test/config/external-ca.pem
258
- - test/config/external-cert.pem
259
- - test/config/external-key.rsa
260
- - test/config/external.kubeconfig
261
- - test/config/gcpauth.kubeconfig
262
- - test/config/gcpcmdauth.kubeconfig
263
- - test/config/nouser.kubeconfig
264
- - test/config/oidcauth.kubeconfig
265
- - test/config/timestamps.kubeconfig
266
- - test/config/userauth.kubeconfig
267
- - test/json/bindings_list.json
268
- - test/json/component_status.json
269
- - test/json/component_status_list.json
270
- - test/json/config.istio.io_api_resource_list.json
271
- - test/json/config_map_list.json
272
- - test/json/core_api_resource_list.json
273
- - test/json/core_api_resource_list_without_kind.json
274
- - test/json/core_oapi_resource_list_without_kind.json
275
- - test/json/created_endpoint.json
276
- - test/json/created_namespace.json
277
- - test/json/created_secret.json
278
- - test/json/created_security_context_constraint.json
279
- - test/json/created_service.json
280
- - test/json/empty_pod_list.json
281
- - test/json/endpoint_list.json
282
- - test/json/entity_list.json
283
- - test/json/event_list.json
284
- - test/json/extensions_v1beta1_api_resource_list.json
285
- - test/json/limit_range.json
286
- - test/json/limit_range_list.json
287
- - test/json/namespace.json
288
- - test/json/namespace_exception.json
289
- - test/json/namespace_list.json
290
- - test/json/node.json
291
- - test/json/node_list.json
292
- - test/json/node_notice.json
293
- - test/json/persistent_volume.json
294
- - test/json/persistent_volume_claim.json
295
- - test/json/persistent_volume_claim_list.json
296
- - test/json/persistent_volume_claims_nil_items.json
297
- - test/json/persistent_volume_list.json
298
- - test/json/pod.json
299
- - test/json/pod_list.json
300
- - test/json/pod_template_list.json
301
- - test/json/pods_1.json
302
- - test/json/pods_2.json
303
- - test/json/pods_410.json
304
- - test/json/processed_template.json
305
- - test/json/replication_controller.json
306
- - test/json/replication_controller_list.json
307
- - test/json/resource_quota.json
308
- - test/json/resource_quota_list.json
309
- - test/json/secret_list.json
310
- - test/json/security.openshift.io_api_resource_list.json
311
- - test/json/security_context_constraint_list.json
312
- - test/json/service.json
313
- - test/json/service_account.json
314
- - test/json/service_account_list.json
315
- - test/json/service_illegal_json_404.json
316
- - test/json/service_json_patch.json
317
- - test/json/service_list.json
318
- - test/json/service_merge_patch.json
319
- - test/json/service_patch.json
320
- - test/json/service_update.json
321
- - test/json/template.json
322
- - test/json/template.openshift.io_api_resource_list.json
323
- - test/json/template_list.json
324
- - test/json/versions_list.json
325
- - test/json/watch_stream.json
326
- - test/test_common.rb
327
- - test/test_common_url_handling.rb
328
- - test/test_component_status.rb
329
- - test/test_config.rb
330
- - test/test_endpoint.rb
331
- - test/test_exec_credentials.rb
332
- - test/test_gcp_command_credentials.rb
333
- - test/test_google_application_default_credentials.rb
334
- - test/test_guestbook_go.rb
335
- - test/test_helper.rb
336
- - test/test_kubeclient.rb
337
- - test/test_limit_range.rb
338
- - test/test_missing_methods.rb
339
- - test/test_namespace.rb
340
- - test/test_node.rb
341
- - test/test_oidc_auth_provider.rb
342
- - test/test_persistent_volume.rb
343
- - test/test_persistent_volume_claim.rb
344
- - test/test_pod.rb
345
- - test/test_pod_log.rb
346
- - test/test_process_template.rb
347
- - test/test_replication_controller.rb
348
- - test/test_resource_list_without_kind.rb
349
- - test/test_resource_quota.rb
350
- - test/test_secret.rb
351
- - test/test_security_context_constraint.rb
352
- - test/test_service.rb
353
- - test/test_service_account.rb
354
- - test/test_watch.rb
355
- - test/txt/pod_log.txt
356
- - test/valid_token_file
357
254
  homepage: https://github.com/abonas/kubeclient
358
255
  licenses:
359
256
  - MIT
360
257
  metadata: {}
361
- post_install_message:
258
+ post_install_message:
362
259
  rdoc_options: []
363
260
  require_paths:
364
261
  - lib
@@ -373,111 +270,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
373
270
  - !ruby/object:Gem::Version
374
271
  version: '0'
375
272
  requirements: []
376
- rubygems_version: 3.1.2
377
- signing_key:
273
+ rubygems_version: 3.2.3
274
+ signing_key:
378
275
  specification_version: 4
379
276
  summary: A client for Kubernetes REST api
380
- test_files:
381
- - test/cassettes/kubernetes_guestbook.yml
382
- - test/config/allinone.kubeconfig
383
- - test/config/execauth.kubeconfig
384
- - test/config/external-ca.pem
385
- - test/config/external-cert.pem
386
- - test/config/external-key.rsa
387
- - test/config/external.kubeconfig
388
- - test/config/gcpauth.kubeconfig
389
- - test/config/gcpcmdauth.kubeconfig
390
- - test/config/nouser.kubeconfig
391
- - test/config/oidcauth.kubeconfig
392
- - test/config/timestamps.kubeconfig
393
- - test/config/userauth.kubeconfig
394
- - test/json/bindings_list.json
395
- - test/json/component_status.json
396
- - test/json/component_status_list.json
397
- - test/json/config.istio.io_api_resource_list.json
398
- - test/json/config_map_list.json
399
- - test/json/core_api_resource_list.json
400
- - test/json/core_api_resource_list_without_kind.json
401
- - test/json/core_oapi_resource_list_without_kind.json
402
- - test/json/created_endpoint.json
403
- - test/json/created_namespace.json
404
- - test/json/created_secret.json
405
- - test/json/created_security_context_constraint.json
406
- - test/json/created_service.json
407
- - test/json/empty_pod_list.json
408
- - test/json/endpoint_list.json
409
- - test/json/entity_list.json
410
- - test/json/event_list.json
411
- - test/json/extensions_v1beta1_api_resource_list.json
412
- - test/json/limit_range.json
413
- - test/json/limit_range_list.json
414
- - test/json/namespace.json
415
- - test/json/namespace_exception.json
416
- - test/json/namespace_list.json
417
- - test/json/node.json
418
- - test/json/node_list.json
419
- - test/json/node_notice.json
420
- - test/json/persistent_volume.json
421
- - test/json/persistent_volume_claim.json
422
- - test/json/persistent_volume_claim_list.json
423
- - test/json/persistent_volume_claims_nil_items.json
424
- - test/json/persistent_volume_list.json
425
- - test/json/pod.json
426
- - test/json/pod_list.json
427
- - test/json/pod_template_list.json
428
- - test/json/pods_1.json
429
- - test/json/pods_2.json
430
- - test/json/pods_410.json
431
- - test/json/processed_template.json
432
- - test/json/replication_controller.json
433
- - test/json/replication_controller_list.json
434
- - test/json/resource_quota.json
435
- - test/json/resource_quota_list.json
436
- - test/json/secret_list.json
437
- - test/json/security.openshift.io_api_resource_list.json
438
- - test/json/security_context_constraint_list.json
439
- - test/json/service.json
440
- - test/json/service_account.json
441
- - test/json/service_account_list.json
442
- - test/json/service_illegal_json_404.json
443
- - test/json/service_json_patch.json
444
- - test/json/service_list.json
445
- - test/json/service_merge_patch.json
446
- - test/json/service_patch.json
447
- - test/json/service_update.json
448
- - test/json/template.json
449
- - test/json/template.openshift.io_api_resource_list.json
450
- - test/json/template_list.json
451
- - test/json/versions_list.json
452
- - test/json/watch_stream.json
453
- - test/test_common.rb
454
- - test/test_common_url_handling.rb
455
- - test/test_component_status.rb
456
- - test/test_config.rb
457
- - test/test_endpoint.rb
458
- - test/test_exec_credentials.rb
459
- - test/test_gcp_command_credentials.rb
460
- - test/test_google_application_default_credentials.rb
461
- - test/test_guestbook_go.rb
462
- - test/test_helper.rb
463
- - test/test_kubeclient.rb
464
- - test/test_limit_range.rb
465
- - test/test_missing_methods.rb
466
- - test/test_namespace.rb
467
- - test/test_node.rb
468
- - test/test_oidc_auth_provider.rb
469
- - test/test_persistent_volume.rb
470
- - test/test_persistent_volume_claim.rb
471
- - test/test_pod.rb
472
- - test/test_pod_log.rb
473
- - test/test_process_template.rb
474
- - test/test_replication_controller.rb
475
- - test/test_resource_list_without_kind.rb
476
- - test/test_resource_quota.rb
477
- - test/test_secret.rb
478
- - test/test_security_context_constraint.rb
479
- - test/test_service.rb
480
- - test/test_service_account.rb
481
- - test/test_watch.rb
482
- - test/txt/pod_log.txt
483
- - test/valid_token_file
277
+ test_files: []
data/.travis.yml DELETED
@@ -1,29 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- script: bundle exec rake $TASK
5
-
6
- os:
7
- - linux
8
- - osx
9
- rvm:
10
- - "2.2.0"
11
- - "2.3.0"
12
- - "2.4.0"
13
- - "2.5.0"
14
- - "2.6.0"
15
- - "2.7.0"
16
- env:
17
- - TASK=test
18
- matrix:
19
- exclude:
20
- - os: osx
21
- rvm: "2.2.0"
22
- - os: osx
23
- rvm: "2.3.0"
24
- # No point running Rubocop on different rubies, results will be same.
25
- # The rubies it expects the code to target are controlled in .rubocop.yml.
26
- include:
27
- - os: linux
28
- rvm: "2.5.0"
29
- env: TASK=rubocop
@@ -1,879 +0,0 @@
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