kubeclient 4.0.0 → 4.1.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 (39) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +11 -1
  3. data/README.md +18 -0
  4. data/RELEASING.md +40 -40
  5. data/lib/kubeclient/common.rb +57 -22
  6. data/lib/kubeclient/entity_list.rb +7 -2
  7. data/lib/kubeclient/version.rb +1 -1
  8. data/test/config/allinone.kubeconfig +3 -3
  9. data/test/config/external-ca.pem +14 -14
  10. data/test/config/external-cert.pem +17 -17
  11. data/test/config/external-key.rsa +25 -25
  12. data/test/json/config.istio.io_api_resource_list.json +679 -0
  13. data/test/json/created_security_context_constraint.json +65 -0
  14. data/test/json/pods_1.json +265 -0
  15. data/test/json/pods_2.json +102 -0
  16. data/test/json/pods_410.json +9 -0
  17. data/test/json/security.openshift.io_api_resource_list.json +69 -0
  18. data/test/json/security_context_constraint_list.json +375 -0
  19. data/test/test_common.rb +21 -2
  20. data/test/test_component_status.rb +1 -2
  21. data/test/test_config.rb +4 -4
  22. data/test/test_endpoint.rb +27 -8
  23. data/test/test_helper.rb +5 -0
  24. data/test/test_kubeclient.rb +4 -9
  25. data/test/test_limit_range.rb +1 -3
  26. data/test/test_missing_methods.rb +30 -4
  27. data/test/test_namespace.rb +3 -6
  28. data/test/test_node.rb +2 -4
  29. data/test/test_persistent_volume.rb +1 -2
  30. data/test/test_persistent_volume_claim.rb +1 -3
  31. data/test/test_pod.rb +54 -2
  32. data/test/test_replication_controller.rb +2 -7
  33. data/test/test_resource_quota.rb +1 -3
  34. data/test/test_secret.rb +3 -12
  35. data/test/test_security_context_constraint.rb +62 -0
  36. data/test/test_service.rb +10 -31
  37. data/test/test_service_account.rb +1 -3
  38. data/test/test_watch.rb +7 -16
  39. metadata +19 -3
@@ -0,0 +1,679 @@
1
+ {
2
+ "kind": "APIResourceList",
3
+ "apiVersion": "v1",
4
+ "groupVersion": "config.istio.io/v1alpha2",
5
+ "resources": [
6
+ {
7
+ "name": "metrics",
8
+ "singularName": "metric",
9
+ "namespaced": true,
10
+ "kind": "metric",
11
+ "verbs": [
12
+ "delete",
13
+ "deletecollection",
14
+ "get",
15
+ "list",
16
+ "patch",
17
+ "create",
18
+ "update",
19
+ "watch"
20
+ ]
21
+ },
22
+ {
23
+ "name": "servicecontrolreports",
24
+ "singularName": "servicecontrolreport",
25
+ "namespaced": true,
26
+ "kind": "servicecontrolreport",
27
+ "verbs": [
28
+ "delete",
29
+ "deletecollection",
30
+ "get",
31
+ "list",
32
+ "patch",
33
+ "create",
34
+ "update",
35
+ "watch"
36
+ ]
37
+ },
38
+ {
39
+ "name": "opas",
40
+ "singularName": "opa",
41
+ "namespaced": true,
42
+ "kind": "opa",
43
+ "verbs": [
44
+ "delete",
45
+ "deletecollection",
46
+ "get",
47
+ "list",
48
+ "patch",
49
+ "create",
50
+ "update",
51
+ "watch"
52
+ ]
53
+ },
54
+ {
55
+ "name": "redisquotas",
56
+ "singularName": "redisquota",
57
+ "namespaced": true,
58
+ "kind": "redisquota",
59
+ "verbs": [
60
+ "delete",
61
+ "deletecollection",
62
+ "get",
63
+ "list",
64
+ "patch",
65
+ "create",
66
+ "update",
67
+ "watch"
68
+ ]
69
+ },
70
+ {
71
+ "name": "authorizations",
72
+ "singularName": "authorization",
73
+ "namespaced": true,
74
+ "kind": "authorization",
75
+ "verbs": [
76
+ "delete",
77
+ "deletecollection",
78
+ "get",
79
+ "list",
80
+ "patch",
81
+ "create",
82
+ "update",
83
+ "watch"
84
+ ]
85
+ },
86
+ {
87
+ "name": "listentries",
88
+ "singularName": "listentry",
89
+ "namespaced": true,
90
+ "kind": "listentry",
91
+ "verbs": [
92
+ "delete",
93
+ "deletecollection",
94
+ "get",
95
+ "list",
96
+ "patch",
97
+ "create",
98
+ "update",
99
+ "watch"
100
+ ]
101
+ },
102
+ {
103
+ "name": "logentries",
104
+ "singularName": "logentry",
105
+ "namespaced": true,
106
+ "kind": "logentry",
107
+ "verbs": [
108
+ "delete",
109
+ "deletecollection",
110
+ "get",
111
+ "list",
112
+ "patch",
113
+ "create",
114
+ "update",
115
+ "watch"
116
+ ]
117
+ },
118
+ {
119
+ "name": "tracespans",
120
+ "singularName": "tracespan",
121
+ "namespaced": true,
122
+ "kind": "tracespan",
123
+ "verbs": [
124
+ "delete",
125
+ "deletecollection",
126
+ "get",
127
+ "list",
128
+ "patch",
129
+ "create",
130
+ "update",
131
+ "watch"
132
+ ]
133
+ },
134
+ {
135
+ "name": "quotaspecs",
136
+ "singularName": "quotaspec",
137
+ "namespaced": true,
138
+ "kind": "QuotaSpec",
139
+ "verbs": [
140
+ "delete",
141
+ "deletecollection",
142
+ "get",
143
+ "list",
144
+ "patch",
145
+ "create",
146
+ "update",
147
+ "watch"
148
+ ]
149
+ },
150
+ {
151
+ "name": "fluentds",
152
+ "singularName": "fluentd",
153
+ "namespaced": true,
154
+ "kind": "fluentd",
155
+ "verbs": [
156
+ "delete",
157
+ "deletecollection",
158
+ "get",
159
+ "list",
160
+ "patch",
161
+ "create",
162
+ "update",
163
+ "watch"
164
+ ]
165
+ },
166
+ {
167
+ "name": "rbacs",
168
+ "singularName": "rbac",
169
+ "namespaced": true,
170
+ "kind": "rbac",
171
+ "verbs": [
172
+ "delete",
173
+ "deletecollection",
174
+ "get",
175
+ "list",
176
+ "patch",
177
+ "create",
178
+ "update",
179
+ "watch"
180
+ ]
181
+ },
182
+ {
183
+ "name": "checknothings",
184
+ "singularName": "checknothing",
185
+ "namespaced": true,
186
+ "kind": "checknothing",
187
+ "verbs": [
188
+ "delete",
189
+ "deletecollection",
190
+ "get",
191
+ "list",
192
+ "patch",
193
+ "create",
194
+ "update",
195
+ "watch"
196
+ ]
197
+ },
198
+ {
199
+ "name": "edges",
200
+ "singularName": "edge",
201
+ "namespaced": true,
202
+ "kind": "edge",
203
+ "verbs": [
204
+ "delete",
205
+ "deletecollection",
206
+ "get",
207
+ "list",
208
+ "patch",
209
+ "create",
210
+ "update",
211
+ "watch"
212
+ ]
213
+ },
214
+ {
215
+ "name": "apikeys",
216
+ "singularName": "apikey",
217
+ "namespaced": true,
218
+ "kind": "apikey",
219
+ "verbs": [
220
+ "delete",
221
+ "deletecollection",
222
+ "get",
223
+ "list",
224
+ "patch",
225
+ "create",
226
+ "update",
227
+ "watch"
228
+ ]
229
+ },
230
+ {
231
+ "name": "kuberneteses",
232
+ "singularName": "kubernetes",
233
+ "namespaced": true,
234
+ "kind": "kubernetes",
235
+ "verbs": [
236
+ "delete",
237
+ "deletecollection",
238
+ "get",
239
+ "list",
240
+ "patch",
241
+ "create",
242
+ "update",
243
+ "watch"
244
+ ]
245
+ },
246
+ {
247
+ "name": "httpapispecs",
248
+ "singularName": "httpapispec",
249
+ "namespaced": true,
250
+ "kind": "HTTPAPISpec",
251
+ "verbs": [
252
+ "delete",
253
+ "deletecollection",
254
+ "get",
255
+ "list",
256
+ "patch",
257
+ "create",
258
+ "update",
259
+ "watch"
260
+ ]
261
+ },
262
+ {
263
+ "name": "attributemanifests",
264
+ "singularName": "attributemanifest",
265
+ "namespaced": true,
266
+ "kind": "attributemanifest",
267
+ "verbs": [
268
+ "delete",
269
+ "deletecollection",
270
+ "get",
271
+ "list",
272
+ "patch",
273
+ "create",
274
+ "update",
275
+ "watch"
276
+ ]
277
+ },
278
+ {
279
+ "name": "kubernetesenvs",
280
+ "singularName": "kubernetesenv",
281
+ "namespaced": true,
282
+ "kind": "kubernetesenv",
283
+ "verbs": [
284
+ "delete",
285
+ "deletecollection",
286
+ "get",
287
+ "list",
288
+ "patch",
289
+ "create",
290
+ "update",
291
+ "watch"
292
+ ]
293
+ },
294
+ {
295
+ "name": "listcheckers",
296
+ "singularName": "listchecker",
297
+ "namespaced": true,
298
+ "kind": "listchecker",
299
+ "verbs": [
300
+ "delete",
301
+ "deletecollection",
302
+ "get",
303
+ "list",
304
+ "patch",
305
+ "create",
306
+ "update",
307
+ "watch"
308
+ ]
309
+ },
310
+ {
311
+ "name": "quotas",
312
+ "singularName": "quota",
313
+ "namespaced": true,
314
+ "kind": "quota",
315
+ "verbs": [
316
+ "delete",
317
+ "deletecollection",
318
+ "get",
319
+ "list",
320
+ "patch",
321
+ "create",
322
+ "update",
323
+ "watch"
324
+ ]
325
+ },
326
+ {
327
+ "name": "instances",
328
+ "singularName": "instance",
329
+ "namespaced": true,
330
+ "kind": "instance",
331
+ "verbs": [
332
+ "delete",
333
+ "deletecollection",
334
+ "get",
335
+ "list",
336
+ "patch",
337
+ "create",
338
+ "update",
339
+ "watch"
340
+ ]
341
+ },
342
+ {
343
+ "name": "memquotas",
344
+ "singularName": "memquota",
345
+ "namespaced": true,
346
+ "kind": "memquota",
347
+ "verbs": [
348
+ "delete",
349
+ "deletecollection",
350
+ "get",
351
+ "list",
352
+ "patch",
353
+ "create",
354
+ "update",
355
+ "watch"
356
+ ]
357
+ },
358
+ {
359
+ "name": "noops",
360
+ "singularName": "noop",
361
+ "namespaced": true,
362
+ "kind": "noop",
363
+ "verbs": [
364
+ "delete",
365
+ "deletecollection",
366
+ "get",
367
+ "list",
368
+ "patch",
369
+ "create",
370
+ "update",
371
+ "watch"
372
+ ]
373
+ },
374
+ {
375
+ "name": "prometheuses",
376
+ "singularName": "prometheus",
377
+ "namespaced": true,
378
+ "kind": "prometheus",
379
+ "verbs": [
380
+ "delete",
381
+ "deletecollection",
382
+ "get",
383
+ "list",
384
+ "patch",
385
+ "create",
386
+ "update",
387
+ "watch"
388
+ ]
389
+ },
390
+ {
391
+ "name": "solarwindses",
392
+ "singularName": "solarwinds",
393
+ "namespaced": true,
394
+ "kind": "solarwinds",
395
+ "verbs": [
396
+ "delete",
397
+ "deletecollection",
398
+ "get",
399
+ "list",
400
+ "patch",
401
+ "create",
402
+ "update",
403
+ "watch"
404
+ ]
405
+ },
406
+ {
407
+ "name": "cloudwatches",
408
+ "singularName": "cloudwatch",
409
+ "namespaced": true,
410
+ "kind": "cloudwatch",
411
+ "verbs": [
412
+ "delete",
413
+ "deletecollection",
414
+ "get",
415
+ "list",
416
+ "patch",
417
+ "create",
418
+ "update",
419
+ "watch"
420
+ ]
421
+ },
422
+ {
423
+ "name": "reportnothings",
424
+ "singularName": "reportnothing",
425
+ "namespaced": true,
426
+ "kind": "reportnothing",
427
+ "verbs": [
428
+ "delete",
429
+ "deletecollection",
430
+ "get",
431
+ "list",
432
+ "patch",
433
+ "create",
434
+ "update",
435
+ "watch"
436
+ ]
437
+ },
438
+ {
439
+ "name": "stackdrivers",
440
+ "singularName": "stackdriver",
441
+ "namespaced": true,
442
+ "kind": "stackdriver",
443
+ "verbs": [
444
+ "delete",
445
+ "deletecollection",
446
+ "get",
447
+ "list",
448
+ "patch",
449
+ "create",
450
+ "update",
451
+ "watch"
452
+ ]
453
+ },
454
+ {
455
+ "name": "statsds",
456
+ "singularName": "statsd",
457
+ "namespaced": true,
458
+ "kind": "statsd",
459
+ "verbs": [
460
+ "delete",
461
+ "deletecollection",
462
+ "get",
463
+ "list",
464
+ "patch",
465
+ "create",
466
+ "update",
467
+ "watch"
468
+ ]
469
+ },
470
+ {
471
+ "name": "httpapispecbindings",
472
+ "singularName": "httpapispecbinding",
473
+ "namespaced": true,
474
+ "kind": "HTTPAPISpecBinding",
475
+ "verbs": [
476
+ "delete",
477
+ "deletecollection",
478
+ "get",
479
+ "list",
480
+ "patch",
481
+ "create",
482
+ "update",
483
+ "watch"
484
+ ]
485
+ },
486
+ {
487
+ "name": "quotaspecbindings",
488
+ "singularName": "quotaspecbinding",
489
+ "namespaced": true,
490
+ "kind": "QuotaSpecBinding",
491
+ "verbs": [
492
+ "delete",
493
+ "deletecollection",
494
+ "get",
495
+ "list",
496
+ "patch",
497
+ "create",
498
+ "update",
499
+ "watch"
500
+ ]
501
+ },
502
+ {
503
+ "name": "bypasses",
504
+ "singularName": "bypass",
505
+ "namespaced": true,
506
+ "kind": "bypass",
507
+ "verbs": [
508
+ "delete",
509
+ "deletecollection",
510
+ "get",
511
+ "list",
512
+ "patch",
513
+ "create",
514
+ "update",
515
+ "watch"
516
+ ]
517
+ },
518
+ {
519
+ "name": "circonuses",
520
+ "singularName": "circonus",
521
+ "namespaced": true,
522
+ "kind": "circonus",
523
+ "verbs": [
524
+ "delete",
525
+ "deletecollection",
526
+ "get",
527
+ "list",
528
+ "patch",
529
+ "create",
530
+ "update",
531
+ "watch"
532
+ ]
533
+ },
534
+ {
535
+ "name": "deniers",
536
+ "singularName": "denier",
537
+ "namespaced": true,
538
+ "kind": "denier",
539
+ "verbs": [
540
+ "delete",
541
+ "deletecollection",
542
+ "get",
543
+ "list",
544
+ "patch",
545
+ "create",
546
+ "update",
547
+ "watch"
548
+ ]
549
+ },
550
+ {
551
+ "name": "signalfxs",
552
+ "singularName": "signalfx",
553
+ "namespaced": true,
554
+ "kind": "signalfx",
555
+ "verbs": [
556
+ "delete",
557
+ "deletecollection",
558
+ "get",
559
+ "list",
560
+ "patch",
561
+ "create",
562
+ "update",
563
+ "watch"
564
+ ]
565
+ },
566
+ {
567
+ "name": "adapters",
568
+ "singularName": "adapter",
569
+ "namespaced": true,
570
+ "kind": "adapter",
571
+ "verbs": [
572
+ "delete",
573
+ "deletecollection",
574
+ "get",
575
+ "list",
576
+ "patch",
577
+ "create",
578
+ "update",
579
+ "watch"
580
+ ]
581
+ },
582
+ {
583
+ "name": "servicecontrols",
584
+ "singularName": "servicecontrol",
585
+ "namespaced": true,
586
+ "kind": "servicecontrol",
587
+ "verbs": [
588
+ "delete",
589
+ "deletecollection",
590
+ "get",
591
+ "list",
592
+ "patch",
593
+ "create",
594
+ "update",
595
+ "watch"
596
+ ]
597
+ },
598
+ {
599
+ "name": "templates",
600
+ "singularName": "template",
601
+ "namespaced": true,
602
+ "kind": "template",
603
+ "verbs": [
604
+ "delete",
605
+ "deletecollection",
606
+ "get",
607
+ "list",
608
+ "patch",
609
+ "create",
610
+ "update",
611
+ "watch"
612
+ ]
613
+ },
614
+ {
615
+ "name": "handlers",
616
+ "singularName": "handler",
617
+ "namespaced": true,
618
+ "kind": "handler",
619
+ "verbs": [
620
+ "delete",
621
+ "deletecollection",
622
+ "get",
623
+ "list",
624
+ "patch",
625
+ "create",
626
+ "update",
627
+ "watch"
628
+ ]
629
+ },
630
+ {
631
+ "name": "rules",
632
+ "singularName": "rule",
633
+ "namespaced": true,
634
+ "kind": "rule",
635
+ "verbs": [
636
+ "delete",
637
+ "deletecollection",
638
+ "get",
639
+ "list",
640
+ "patch",
641
+ "create",
642
+ "update",
643
+ "watch"
644
+ ]
645
+ },
646
+ {
647
+ "name": "dogstatsds",
648
+ "singularName": "dogstatsd",
649
+ "namespaced": true,
650
+ "kind": "dogstatsd",
651
+ "verbs": [
652
+ "delete",
653
+ "deletecollection",
654
+ "get",
655
+ "list",
656
+ "patch",
657
+ "create",
658
+ "update",
659
+ "watch"
660
+ ]
661
+ },
662
+ {
663
+ "name": "stdios",
664
+ "singularName": "stdio",
665
+ "namespaced": true,
666
+ "kind": "stdio",
667
+ "verbs": [
668
+ "delete",
669
+ "deletecollection",
670
+ "get",
671
+ "list",
672
+ "patch",
673
+ "create",
674
+ "update",
675
+ "watch"
676
+ ]
677
+ }
678
+ ]
679
+ }