kubeclient 4.2.2 → 4.7.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.

@@ -27,6 +27,19 @@ class TestWatch < MiniTest::Test
27
27
  end
28
28
  end
29
29
 
30
+ def test_watch_pod_block
31
+ stub_core_api_list
32
+ stub_request(:get, %r{/watch/pods})
33
+ .to_return(body: open_test_file('watch_stream.json'),
34
+ status: 200)
35
+
36
+ client = Kubeclient::Client.new('http://localhost:8080/api/', 'v1')
37
+ yielded = []
38
+ client.watch_pods { |notice| yielded << notice.type }
39
+
40
+ assert_equal %w[ADDED MODIFIED DELETED], yielded
41
+ end
42
+
30
43
  def test_watch_pod_raw
31
44
  stub_core_api_list
32
45
 
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-09 00:00:00.000000000 Z
11
+ date: 2020-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
@@ -122,6 +122,48 @@ dependencies:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.5.1
125
+ - !ruby/object:Gem::Dependency
126
+ name: mocha
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '1.5'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '1.5'
139
+ - !ruby/object:Gem::Dependency
140
+ name: openid_connect
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.1'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '1.1'
153
+ - !ruby/object:Gem::Dependency
154
+ name: jsonpath
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.0'
125
167
  - !ruby/object:Gem::Dependency
126
168
  name: rest-client
127
169
  requirement: !ruby/object:Gem::Requirement
@@ -142,34 +184,40 @@ dependencies:
142
184
  requirements:
143
185
  - - "~>"
144
186
  - !ruby/object:Gem::Version
145
- version: '1.0'
187
+ version: '1.1'
146
188
  - - ">="
147
189
  - !ruby/object:Gem::Version
148
- version: 1.0.4
190
+ version: 1.1.1
149
191
  type: :runtime
150
192
  prerelease: false
151
193
  version_requirements: !ruby/object:Gem::Requirement
152
194
  requirements:
153
195
  - - "~>"
154
196
  - !ruby/object:Gem::Version
155
- version: '1.0'
197
+ version: '1.1'
156
198
  - - ">="
157
199
  - !ruby/object:Gem::Version
158
- version: 1.0.4
200
+ version: 1.1.1
159
201
  - !ruby/object:Gem::Dependency
160
202
  name: http
161
203
  requirement: !ruby/object:Gem::Requirement
162
204
  requirements:
163
- - - "~>"
205
+ - - ">="
164
206
  - !ruby/object:Gem::Version
165
207
  version: '3.0'
208
+ - - "<"
209
+ - !ruby/object:Gem::Version
210
+ version: '5.0'
166
211
  type: :runtime
167
212
  prerelease: false
168
213
  version_requirements: !ruby/object:Gem::Requirement
169
214
  requirements:
170
- - - "~>"
215
+ - - ">="
171
216
  - !ruby/object:Gem::Version
172
217
  version: '3.0'
218
+ - - "<"
219
+ - !ruby/object:Gem::Version
220
+ version: '5.0'
173
221
  description: A client for Kubernetes REST api
174
222
  email:
175
223
  - abonas@redhat.com
@@ -188,13 +236,17 @@ files:
188
236
  - Rakefile
189
237
  - kubeclient.gemspec
190
238
  - lib/kubeclient.rb
239
+ - lib/kubeclient/aws_eks_credentials.rb
191
240
  - lib/kubeclient/common.rb
192
241
  - lib/kubeclient/config.rb
193
242
  - lib/kubeclient/entity_list.rb
194
243
  - lib/kubeclient/exec_credentials.rb
244
+ - lib/kubeclient/gcp_auth_provider.rb
245
+ - lib/kubeclient/gcp_command_credentials.rb
195
246
  - lib/kubeclient/google_application_default_credentials.rb
196
247
  - lib/kubeclient/http_error.rb
197
248
  - lib/kubeclient/missing_kind_compatibility.rb
249
+ - lib/kubeclient/oidc_auth_provider.rb
198
250
  - lib/kubeclient/resource.rb
199
251
  - lib/kubeclient/resource_not_found_error.rb
200
252
  - lib/kubeclient/version.rb
@@ -206,7 +258,10 @@ files:
206
258
  - test/config/external-cert.pem
207
259
  - test/config/external-key.rsa
208
260
  - test/config/external.kubeconfig
261
+ - test/config/gcpauth.kubeconfig
262
+ - test/config/gcpcmdauth.kubeconfig
209
263
  - test/config/nouser.kubeconfig
264
+ - test/config/oidcauth.kubeconfig
210
265
  - test/config/timestamps.kubeconfig
211
266
  - test/config/userauth.kubeconfig
212
267
  - test/json/bindings_list.json
@@ -258,7 +313,9 @@ files:
258
313
  - test/json/service_account.json
259
314
  - test/json/service_account_list.json
260
315
  - test/json/service_illegal_json_404.json
316
+ - test/json/service_json_patch.json
261
317
  - test/json/service_list.json
318
+ - test/json/service_merge_patch.json
262
319
  - test/json/service_patch.json
263
320
  - test/json/service_update.json
264
321
  - test/json/template.json
@@ -271,6 +328,7 @@ files:
271
328
  - test/test_config.rb
272
329
  - test/test_endpoint.rb
273
330
  - test/test_exec_credentials.rb
331
+ - test/test_gcp_command_credentials.rb
274
332
  - test/test_google_application_default_credentials.rb
275
333
  - test/test_guestbook_go.rb
276
334
  - test/test_helper.rb
@@ -279,6 +337,7 @@ files:
279
337
  - test/test_missing_methods.rb
280
338
  - test/test_namespace.rb
281
339
  - test/test_node.rb
340
+ - test/test_oidc_auth_provider.rb
282
341
  - test/test_persistent_volume.rb
283
342
  - test/test_persistent_volume_claim.rb
284
343
  - test/test_pod.rb
@@ -313,8 +372,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
313
372
  - !ruby/object:Gem::Version
314
373
  version: '0'
315
374
  requirements: []
316
- rubyforge_project:
317
- rubygems_version: 2.7.6
375
+ rubygems_version: 3.1.2
318
376
  signing_key:
319
377
  specification_version: 4
320
378
  summary: A client for Kubernetes REST api
@@ -326,7 +384,10 @@ test_files:
326
384
  - test/config/external-cert.pem
327
385
  - test/config/external-key.rsa
328
386
  - test/config/external.kubeconfig
387
+ - test/config/gcpauth.kubeconfig
388
+ - test/config/gcpcmdauth.kubeconfig
329
389
  - test/config/nouser.kubeconfig
390
+ - test/config/oidcauth.kubeconfig
330
391
  - test/config/timestamps.kubeconfig
331
392
  - test/config/userauth.kubeconfig
332
393
  - test/json/bindings_list.json
@@ -378,7 +439,9 @@ test_files:
378
439
  - test/json/service_account.json
379
440
  - test/json/service_account_list.json
380
441
  - test/json/service_illegal_json_404.json
442
+ - test/json/service_json_patch.json
381
443
  - test/json/service_list.json
444
+ - test/json/service_merge_patch.json
382
445
  - test/json/service_patch.json
383
446
  - test/json/service_update.json
384
447
  - test/json/template.json
@@ -391,6 +454,7 @@ test_files:
391
454
  - test/test_config.rb
392
455
  - test/test_endpoint.rb
393
456
  - test/test_exec_credentials.rb
457
+ - test/test_gcp_command_credentials.rb
394
458
  - test/test_google_application_default_credentials.rb
395
459
  - test/test_guestbook_go.rb
396
460
  - test/test_helper.rb
@@ -399,6 +463,7 @@ test_files:
399
463
  - test/test_missing_methods.rb
400
464
  - test/test_namespace.rb
401
465
  - test/test_node.rb
466
+ - test/test_oidc_auth_provider.rb
402
467
  - test/test_persistent_volume.rb
403
468
  - test/test_persistent_volume_claim.rb
404
469
  - test/test_pod.rb