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
@@ -1,8 +0,0 @@
1
- {
2
- "kind": "PersistentVolumeClaimList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/persistentvolumeclaims",
6
- "resourceVersion": "1089012"
7
- }
8
- }
@@ -1,45 +0,0 @@
1
- {
2
- "kind": "PersistentVolumeList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/persistentvolumes",
6
- "resourceVersion": "2999"
7
- },
8
- "items": [
9
- {
10
- "metadata": {
11
- "name": "pv0001",
12
- "selfLink": "/api/v1/persistentvolumes/pv0001",
13
- "uid": "c83eece1-4b38-11e5-8d27-28d2447dcefe",
14
- "resourceVersion": "1585",
15
- "creationTimestamp": "2015-08-25T14:51:35Z",
16
- "labels": {
17
- "type": "local"
18
- }
19
- },
20
- "spec": {
21
- "capacity": {
22
- "storage": "10Gi"
23
- },
24
- "hostPath": {
25
- "path": "/tmp/data01"
26
- },
27
- "accessModes": [
28
- "ReadWriteOnce"
29
- ],
30
- "claimRef": {
31
- "kind": "PersistentVolumeClaim",
32
- "namespace": "default",
33
- "name": "myclaim-1",
34
- "uid": "d47384a3-4b38-11e5-8d27-28d2447dcefe",
35
- "apiVersion": "v1",
36
- "resourceVersion": "1582"
37
- },
38
- "persistentVolumeReclaimPolicy": "Retain"
39
- },
40
- "status": {
41
- "phase": "Bound"
42
- }
43
- }
44
- ]
45
- }
data/test/json/pod.json DELETED
@@ -1,92 +0,0 @@
1
- {
2
- "kind": "Pod",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "name": "redis-master3",
6
- "namespace": "default",
7
- "selfLink": "/api/v1/pods/redis-master3?namespace=default",
8
- "uid": "a344023f-a23c-11e4-a36b-3c970e4a436a",
9
- "resourceVersion": "9",
10
- "creationTimestamp": "2015-01-22T15:43:24+02:00",
11
- "labels": {
12
- "name": "redis-master"
13
- }
14
- },
15
- "spec": {
16
- "volumes": null,
17
- "containers": [
18
- {
19
- "name": "master",
20
- "image": "dockerfile/redis",
21
- "ports": [
22
- {
23
- "hostPort": 6379,
24
- "containerPort": 6379,
25
- "protocol": "TCP"
26
- }
27
- ],
28
- "memory": "0",
29
- "cpu": "100m",
30
- "imagePullPolicy": ""
31
- },
32
- {
33
- "name": "php-redis",
34
- "image": "kubernetes/example-guestbook-php-redis",
35
- "ports": [
36
- {
37
- "hostPort": 8000,
38
- "containerPort": 80,
39
- "protocol": "TCP"
40
- }
41
- ],
42
- "memory": "50000000",
43
- "cpu": "100m",
44
- "imagePullPolicy": ""
45
- }
46
- ],
47
- "restartPolicy": {
48
- "always": {
49
-
50
- }
51
- },
52
- "dnsPolicy": "ClusterFirst"
53
- },
54
- "status": {
55
- "phase": "Running",
56
- "host": "127.0.0.1",
57
- "podIP": "172.17.0.2",
58
- "info": {
59
- "master": {
60
- "state": {
61
- "running": {
62
- "startedAt": "2015-01-22T13:43:29Z"
63
- }
64
- },
65
- "restartCount": 0,
66
- "containerID": "docker://87458d9a12f9dc9a01b52c1eee5f09cf48939380271c0eaf31af298ce67b125e",
67
- "image": "dockerfile/redis"
68
- },
69
- "net": {
70
- "state": {
71
- "running": {
72
- "startedAt": "2015-01-22T13:43:27Z"
73
- }
74
- },
75
- "restartCount": 0,
76
- "containerID": "docker://3bb5ced1f831322d370f70b58137e1dd41216c2960b7a99394542b5230cbd259",
77
- "podIP": "172.17.0.2",
78
- "image": "kubernetes/pause:latest"
79
- },
80
- "php-redis": {
81
- "state": {
82
- "running": {
83
- "startedAt": "2015-01-22T13:43:31Z"
84
- }
85
- },
86
- "restartCount": 0,
87
- "containerID": "docker://5f08685c0a7a5c974d438a52c6560d72bb0aae7e805d2a34302b9b460f1297c7",
88
- "image": "kubernetes/example-guestbook-php-redis"
89
- }
90
- }
91
- }
92
- }
@@ -1,79 +0,0 @@
1
- {
2
- "kind": "PodList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/pods",
6
- "resourceVersion": "1315"
7
- },
8
- "items": [
9
- {
10
- "metadata": {
11
- "name": "redis-master3",
12
- "namespace": "default",
13
- "selfLink": "/api/v1/pods/redis-master3?namespace=default",
14
- "uid": "1da148b4-cef5-11e4-ac24-3c970e4a436a",
15
- "resourceVersion": "1301",
16
- "creationTimestamp": "2015-03-20T13:34:48+02:00",
17
- "labels": {
18
- "mylabel": "mylabelvalue",
19
- "role": "pod"
20
- }
21
- },
22
- "spec": {
23
- "volumes": null,
24
- "containers": [
25
- {
26
- "name": "master",
27
- "image": "dockerfile/redis",
28
- "ports": [
29
- {
30
- "hostPort": 6379,
31
- "containerPort": 6379,
32
- "protocol": "TCP"
33
- }
34
- ],
35
- "resources": {
36
- "limits": {
37
- "cpu": "100m"
38
- }
39
- },
40
- "terminationMessagePath": "/dev/termination-log",
41
- "imagePullPolicy": "IfNotPresent",
42
- "securityContext": {
43
- "capabilities": {}
44
- }
45
- },
46
- {
47
- "name": "php-redis",
48
- "image": "kubernetes/example-guestbook-php-redis",
49
- "ports": [
50
- {
51
- "hostPort": 8000,
52
- "containerPort": 80,
53
- "protocol": "TCP"
54
- }
55
- ],
56
- "resources": {
57
- "limits": {
58
- "cpu": "100m",
59
- "memory": "50000000"
60
- }
61
- },
62
- "terminationMessagePath": "/dev/termination-log",
63
- "imagePullPolicy": "IfNotPresent",
64
- "securityContext": {
65
- "capabilities": {}
66
- }
67
- }
68
- ],
69
- "restartPolicy": {
70
- "always": {}
71
- },
72
- "dnsPolicy": "ClusterFirst"
73
- },
74
- "status": {
75
- "phase": "Pending"
76
- }
77
- }
78
- ]
79
- }
@@ -1,9 +0,0 @@
1
- {
2
- "kind": "PodTemplateList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/podtemplates",
6
- "resourceVersion": "672"
7
- },
8
- "items": []
9
- }
@@ -1,265 +0,0 @@
1
- {
2
- "kind":"PodList",
3
- "apiVersion":"v1",
4
- "metadata":{
5
- "selfLink":"/api/v1/pods",
6
- "resourceVersion":"53225946",
7
- "continue":"eyJ2IjoibWV0YS5rOHMua"
8
- },
9
- "items":[
10
- {
11
- "metadata":{
12
- "name":"my-ruby-project-2-build",
13
- "namespace":"my-project",
14
- "selfLink":"/api/v1/namespaces/my-project/pods/my-ruby-project-2-build",
15
- "uid":"0c478b50-babb-11e8-ba7e-d094660d31fb",
16
- "resourceVersion":"42398462",
17
- "creationTimestamp":"2018-09-17T20:48:36Z",
18
- "deletionTimestamp":"2018-09-19T13:22:50Z",
19
- "deletionGracePeriodSeconds":0,
20
- "labels":{
21
- "openshift.io/build.name":"my-ruby-project-2"
22
- },
23
- "annotations":{
24
- "openshift.io/build.name":"my-ruby-project-2",
25
- "openshift.io/scc":"privileged"
26
- },
27
- "ownerReferences":[
28
- {
29
- "apiVersion":"build.openshift.io/v1",
30
- "kind":"Build",
31
- "name":"my-ruby-project-2",
32
- "uid":"0c450e6d-babb-11e8-ba7e-d094660d31fb",
33
- "controller":true
34
- }
35
- ],
36
- "finalizers":[
37
- "foregroundDeletion"
38
- ]
39
- },
40
- "spec":{
41
- "volumes":[
42
- {
43
- "name":"buildworkdir",
44
- "emptyDir":{
45
-
46
- }
47
- },
48
- {
49
- "name":"docker-socket",
50
- "hostPath":{
51
- "path":"/var/run/docker.sock",
52
- "type":""
53
- }
54
- },
55
- {
56
- "name":"crio-socket",
57
- "hostPath":{
58
- "path":"/var/run/crio/crio.sock",
59
- "type":""
60
- }
61
- },
62
- {
63
- "name":"builder-dockercfg-rjgnm-push",
64
- "secret":{
65
- "secretName":"builder-dockercfg-rjgnm",
66
- "defaultMode":384
67
- }
68
- },
69
- {
70
- "name":"builder-token-zkpb6",
71
- "secret":{
72
- "secretName":"builder-token-zkpb6",
73
- "defaultMode":420
74
- }
75
- }
76
- ],
77
- "containers":[
78
- {
79
- "name":"sti-build",
80
- "image":"openshift3/ose-sti-builder:v3.9.25",
81
- "command":[
82
- "openshift-sti-build"
83
- ]
84
- }
85
- ],
86
- "restartPolicy":"Never",
87
- "terminationGracePeriodSeconds":30,
88
- "dnsPolicy":"ClusterFirst",
89
- "nodeSelector":{
90
- "node-role.kubernetes.io/compute":"true"
91
- },
92
- "serviceAccountName":"builder",
93
- "serviceAccount":"builder",
94
- "nodeName":"dell-r430-20.example.com",
95
- "securityContext":{
96
-
97
- },
98
- "imagePullSecrets":[
99
- {
100
- "name":"builder-dockercfg-rjgnm"
101
- }
102
- ],
103
- "schedulerName":"default-scheduler"
104
- },
105
- "status":{
106
- "phase":"Failed",
107
- "conditions":[
108
- {
109
- "type":"Initialized",
110
- "status":"True",
111
- "lastProbeTime":null,
112
- "lastTransitionTime":"2018-09-17T20:48:49Z"
113
- },
114
- {
115
- "type":"Ready",
116
- "status":"False",
117
- "lastProbeTime":null,
118
- "lastTransitionTime":"2018-09-17T20:49:08Z",
119
- "reason":"ContainersNotReady",
120
- "message":"containers with unready status: [sti-build]"
121
- },
122
- {
123
- "type":"PodScheduled",
124
- "status":"True",
125
- "lastProbeTime":null,
126
- "lastTransitionTime":"2018-09-17T20:48:36Z"
127
- }
128
- ],
129
- "hostIP":"10.8.96.55",
130
- "podIP":"10.129.0.207",
131
- "startTime":"2018-09-17T20:48:36Z",
132
- "qosClass":"BestEffort"
133
- }
134
- },
135
- {
136
- "metadata":{
137
- "name":"redis-1-94zxb",
138
- "generateName":"redis-1-",
139
- "namespace":"customer-logging",
140
- "selfLink":"/api/v1/namespaces/customer-logging/pods/redis-1-94zxb",
141
- "uid":"a8aea5f4-5f91-11e8-ba7e-d094660d31fb",
142
- "resourceVersion":"47622190",
143
- "creationTimestamp":"2018-05-24T20:33:03Z",
144
- "labels":{
145
- "app":"elastic-log-ripper",
146
- "deployment":"redis-1",
147
- "deploymentconfig":"redis",
148
- "name":"redis"
149
- },
150
- "annotations":{
151
- "openshift.io/deployment-config.latest-version":"1",
152
- "openshift.io/deployment-config.name":"redis",
153
- "openshift.io/deployment.name":"redis-1",
154
- "openshift.io/generated-by":"OpenShiftNewApp",
155
- "openshift.io/scc":"restricted"
156
- },
157
- "ownerReferences":[
158
- {
159
- "apiVersion":"v1",
160
- "kind":"ReplicationController",
161
- "name":"redis-1",
162
- "uid":"9e2e46b3-5f91-11e8-ba7e-d094660d31fb",
163
- "controller":true,
164
- "blockOwnerDeletion":true
165
- }
166
- ]
167
- },
168
- "spec":{
169
- "volumes":[
170
- {
171
- "name":"default-token-n2wzs",
172
- "secret":{
173
- "secretName":"default-token-n2wzs",
174
- "defaultMode":420
175
- }
176
- }
177
- ],
178
- "containers":[
179
- {
180
- "name":"redis",
181
- "image":"manageiq/redis:latest",
182
- "ports":[
183
- {
184
- "containerPort":6379,
185
- "protocol":"TCP"
186
- }
187
- ],
188
- "resources":{
189
-
190
- },
191
- "volumeMounts":[
192
- {
193
- "name":"default-token-n2wzs",
194
- "readOnly":true,
195
- "mountPath":"/var/run/secrets/kubernetes.io/serviceaccount"
196
- }
197
- ],
198
- "terminationMessagePath":"/dev/termination-log",
199
- "terminationMessagePolicy":"File",
200
- "imagePullPolicy":"Always",
201
- "securityContext":{
202
- "capabilities":{
203
- "drop":[
204
- "KILL",
205
- "MKNOD",
206
- "SETGID",
207
- "SETUID"
208
- ]
209
- },
210
- "runAsUser":1000260000
211
- }
212
- }
213
- ],
214
- "restartPolicy":"Always",
215
- "terminationGracePeriodSeconds":30,
216
- "dnsPolicy":"ClusterFirst",
217
- "nodeSelector":{
218
- "node-role.kubernetes.io/compute":"true"
219
- },
220
- "serviceAccountName":"default",
221
- "serviceAccount":"default",
222
- "nodeName":"dell-r430-20.example.com",
223
- "securityContext":{
224
- "seLinuxOptions":{
225
- "level":"s0:c16,c10"
226
- },
227
- "fsGroup":1000260000
228
- },
229
- "imagePullSecrets":[
230
- {
231
- "name":"default-dockercfg-ck286"
232
- }
233
- ],
234
- "schedulerName":"default-scheduler"
235
- },
236
- "status":{
237
- "phase":"Running",
238
- "conditions":[
239
- {
240
- "type":"Initialized",
241
- "status":"True",
242
- "lastProbeTime":null,
243
- "lastTransitionTime":"2018-05-24T20:33:04Z"
244
- },
245
- {
246
- "type":"Ready",
247
- "status":"True",
248
- "lastProbeTime":null,
249
- "lastTransitionTime":"2018-09-18T12:06:18Z"
250
- },
251
- {
252
- "type":"PodScheduled",
253
- "status":"True",
254
- "lastProbeTime":null,
255
- "lastTransitionTime":"2018-05-24T20:33:03Z"
256
- }
257
- ],
258
- "hostIP":"10.8.96.55",
259
- "podIP":"10.129.0.222",
260
- "startTime":"2018-05-24T20:33:04Z",
261
- "qosClass":"BestEffort"
262
- }
263
- }
264
- ]
265
- }