kubeclient 2.5.2 → 3.0.0

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 (43) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +13 -5
  3. data/.travis.yml +2 -10
  4. data/CHANGELOG.md +21 -2
  5. data/README.md +112 -46
  6. data/Rakefile +2 -5
  7. data/kubeclient.gemspec +9 -7
  8. data/lib/kubeclient.rb +8 -8
  9. data/lib/kubeclient/common.rb +88 -105
  10. data/lib/kubeclient/config.rb +10 -10
  11. data/lib/kubeclient/http_error.rb +25 -0
  12. data/lib/kubeclient/missing_kind_compatibility.rb +1 -1
  13. data/lib/kubeclient/resource.rb +11 -0
  14. data/lib/kubeclient/resource_not_found_error.rb +4 -0
  15. data/lib/kubeclient/version.rb +1 -1
  16. data/lib/kubeclient/watch_stream.rb +17 -10
  17. data/test/test_common.rb +3 -3
  18. data/test/test_component_status.rb +16 -14
  19. data/test/test_config.rb +11 -11
  20. data/test/test_endpoint.rb +16 -12
  21. data/test/test_guestbook_go.rb +64 -62
  22. data/test/test_helper.rb +2 -0
  23. data/test/test_kubeclient.rb +268 -282
  24. data/test/test_limit_range.rb +11 -11
  25. data/test/test_missing_methods.rb +3 -3
  26. data/test/test_namespace.rb +27 -27
  27. data/test/test_node.rb +17 -15
  28. data/test/test_persistent_volume.rb +16 -14
  29. data/test/test_persistent_volume_claim.rb +16 -14
  30. data/test/test_pod.rb +16 -14
  31. data/test/test_pod_log.rb +4 -4
  32. data/test/test_process_template.rb +7 -7
  33. data/test/test_replication_controller.rb +29 -4
  34. data/test/test_resource_list_without_kind.rb +7 -7
  35. data/test/test_resource_quota.rb +4 -4
  36. data/test/test_secret.rb +11 -10
  37. data/test/test_service.rb +36 -31
  38. data/test/test_service_account.rb +4 -4
  39. data/test/test_watch.rb +52 -29
  40. data/test/test_watch_notice.rb +1 -1
  41. metadata +35 -26
  42. data/Gemfile-rest-client-1.8.rb +0 -11
  43. data/lib/kubeclient/kube_exception.rb +0 -14
@@ -1,4 +1,4 @@
1
- require 'test_helper'
1
+ require_relative 'test_helper'
2
2
 
3
3
  class TestWatchNotice < MiniTest::Test
4
4
  #
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +52,34 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest-rg
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: webmock
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
73
  - - "~>"
60
74
  - !ruby/object:Gem::Version
61
- version: 1.24.2
75
+ version: 3.0.1
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
80
  - - "~>"
67
81
  - !ruby/object:Gem::Version
68
- version: 1.24.2
82
+ version: 3.0.1
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: vcr
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -86,62 +100,56 @@ dependencies:
86
100
  requirements:
87
101
  - - '='
88
102
  - !ruby/object:Gem::Version
89
- version: 0.30.0
103
+ version: 0.49.1
90
104
  type: :development
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - '='
95
109
  - !ruby/object:Gem::Version
96
- version: 0.30.0
110
+ version: 0.49.1
97
111
  - !ruby/object:Gem::Dependency
98
112
  name: rest-client
99
113
  requirement: !ruby/object:Gem::Requirement
100
114
  requirements:
101
- - - ">="
115
+ - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0'
117
+ version: '2.0'
104
118
  type: :runtime
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
- - - ">="
122
+ - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0'
124
+ version: '2.0'
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: recursive-open-struct
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: 1.0.0
131
+ version: 1.0.4
118
132
  type: :runtime
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: 1.0.0
138
+ version: 1.0.4
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: http
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - "<"
130
- - !ruby/object:Gem::Version
131
- version: '3'
132
- - - ">="
143
+ - - "~>"
133
144
  - !ruby/object:Gem::Version
134
- version: '0.98'
145
+ version: 2.2.2
135
146
  type: :runtime
136
147
  prerelease: false
137
148
  version_requirements: !ruby/object:Gem::Requirement
138
149
  requirements:
139
- - - "<"
140
- - !ruby/object:Gem::Version
141
- version: '3'
142
- - - ">="
150
+ - - "~>"
143
151
  - !ruby/object:Gem::Version
144
- version: '0.98'
152
+ version: 2.2.2
145
153
  description: A client for Kubernetes REST api
146
154
  email:
147
155
  - abonas@redhat.com
@@ -154,7 +162,6 @@ files:
154
162
  - ".travis.yml"
155
163
  - CHANGELOG.md
156
164
  - Gemfile
157
- - Gemfile-rest-client-1.8.rb
158
165
  - LICENSE.txt
159
166
  - README.md
160
167
  - Rakefile
@@ -163,8 +170,10 @@ files:
163
170
  - lib/kubeclient/common.rb
164
171
  - lib/kubeclient/config.rb
165
172
  - lib/kubeclient/entity_list.rb
166
- - lib/kubeclient/kube_exception.rb
173
+ - lib/kubeclient/http_error.rb
167
174
  - lib/kubeclient/missing_kind_compatibility.rb
175
+ - lib/kubeclient/resource.rb
176
+ - lib/kubeclient/resource_not_found_error.rb
168
177
  - lib/kubeclient/version.rb
169
178
  - lib/kubeclient/watch_notice.rb
170
179
  - lib/kubeclient/watch_stream.rb
@@ -260,7 +269,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
260
269
  requirements:
261
270
  - - ">="
262
271
  - !ruby/object:Gem::Version
263
- version: 2.0.0
272
+ version: 2.2.0
264
273
  required_rubygems_version: !ruby/object:Gem::Requirement
265
274
  requirements:
266
275
  - - ">="
@@ -1,11 +0,0 @@
1
- # For travis to additionally test rest-client 1.x.
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in kubeclient.gemspec
6
- gemspec
7
-
8
- if dependencies.any? # needed for overriding with recent bundler (1.13 ?)
9
- dependencies.delete('rest-client')
10
- gem 'rest-client', '= 1.8.0'
11
- end
@@ -1,14 +0,0 @@
1
- # Kubernetes HTTP Exceptions
2
- class KubeException < StandardError
3
- attr_reader :error_code, :message, :response
4
-
5
- def initialize(error_code, message, response)
6
- @error_code = error_code
7
- @message = message
8
- @response = response
9
- end
10
-
11
- def to_s
12
- 'HTTP status code ' + @error_code.to_s + ', ' + @message
13
- end
14
- end