kubeclient 4.9.1 → 4.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/actions.yml +43 -0
  3. data/CHANGELOG.md +65 -0
  4. data/README.md +6 -0
  5. data/kubeclient.gemspec +7 -3
  6. data/lib/kubeclient/common.rb +31 -19
  7. data/lib/kubeclient/config.rb +22 -10
  8. data/lib/kubeclient/version.rb +1 -1
  9. data/lib/kubeclient/watch_stream.rb +1 -0
  10. metadata +40 -218
  11. data/.travis.yml +0 -29
  12. data/test/cassettes/kubernetes_guestbook.yml +0 -879
  13. data/test/config/allinone.kubeconfig +0 -20
  14. data/test/config/execauth.kubeconfig +0 -62
  15. data/test/config/external-ca.pem +0 -18
  16. data/test/config/external-cert.pem +0 -19
  17. data/test/config/external-key.rsa +0 -27
  18. data/test/config/external.kubeconfig +0 -20
  19. data/test/config/gcpauth.kubeconfig +0 -22
  20. data/test/config/gcpcmdauth.kubeconfig +0 -26
  21. data/test/config/nouser.kubeconfig +0 -16
  22. data/test/config/oidcauth.kubeconfig +0 -25
  23. data/test/config/timestamps.kubeconfig +0 -25
  24. data/test/config/userauth.kubeconfig +0 -28
  25. data/test/json/bindings_list.json +0 -10
  26. data/test/json/component_status.json +0 -17
  27. data/test/json/component_status_list.json +0 -52
  28. data/test/json/config.istio.io_api_resource_list.json +0 -679
  29. data/test/json/config_map_list.json +0 -9
  30. data/test/json/core_api_resource_list.json +0 -181
  31. data/test/json/core_api_resource_list_without_kind.json +0 -129
  32. data/test/json/core_oapi_resource_list_without_kind.json +0 -197
  33. data/test/json/created_endpoint.json +0 -28
  34. data/test/json/created_namespace.json +0 -20
  35. data/test/json/created_secret.json +0 -16
  36. data/test/json/created_security_context_constraint.json +0 -65
  37. data/test/json/created_service.json +0 -31
  38. data/test/json/empty_pod_list.json +0 -9
  39. data/test/json/endpoint_list.json +0 -48
  40. data/test/json/entity_list.json +0 -56
  41. data/test/json/event_list.json +0 -35
  42. data/test/json/extensions_v1beta1_api_resource_list.json +0 -217
  43. data/test/json/limit_range.json +0 -23
  44. data/test/json/limit_range_list.json +0 -31
  45. data/test/json/namespace.json +0 -13
  46. data/test/json/namespace_exception.json +0 -8
  47. data/test/json/namespace_list.json +0 -32
  48. data/test/json/node.json +0 -29
  49. data/test/json/node_list.json +0 -37
  50. data/test/json/node_notice.json +0 -160
  51. data/test/json/persistent_volume.json +0 -37
  52. data/test/json/persistent_volume_claim.json +0 -32
  53. data/test/json/persistent_volume_claim_list.json +0 -40
  54. data/test/json/persistent_volume_claims_nil_items.json +0 -8
  55. data/test/json/persistent_volume_list.json +0 -45
  56. data/test/json/pod.json +0 -92
  57. data/test/json/pod_list.json +0 -79
  58. data/test/json/pod_template_list.json +0 -9
  59. data/test/json/pods_1.json +0 -265
  60. data/test/json/pods_2.json +0 -102
  61. data/test/json/pods_410.json +0 -9
  62. data/test/json/processed_template.json +0 -27
  63. data/test/json/replication_controller.json +0 -57
  64. data/test/json/replication_controller_list.json +0 -66
  65. data/test/json/resource_quota.json +0 -46
  66. data/test/json/resource_quota_list.json +0 -54
  67. data/test/json/secret_list.json +0 -44
  68. data/test/json/security.openshift.io_api_resource_list.json +0 -69
  69. data/test/json/security_context_constraint_list.json +0 -375
  70. data/test/json/service.json +0 -33
  71. data/test/json/service_account.json +0 -25
  72. data/test/json/service_account_list.json +0 -82
  73. data/test/json/service_illegal_json_404.json +0 -1
  74. data/test/json/service_json_patch.json +0 -26
  75. data/test/json/service_list.json +0 -97
  76. data/test/json/service_merge_patch.json +0 -26
  77. data/test/json/service_patch.json +0 -25
  78. data/test/json/service_update.json +0 -22
  79. data/test/json/template.json +0 -27
  80. data/test/json/template.openshift.io_api_resource_list.json +0 -75
  81. data/test/json/template_list.json +0 -35
  82. data/test/json/versions_list.json +0 -6
  83. data/test/json/watch_stream.json +0 -3
  84. data/test/test_common.rb +0 -95
  85. data/test/test_common_url_handling.rb +0 -160
  86. data/test/test_component_status.rb +0 -29
  87. data/test/test_config.rb +0 -222
  88. data/test/test_endpoint.rb +0 -54
  89. data/test/test_exec_credentials.rb +0 -225
  90. data/test/test_gcp_command_credentials.rb +0 -27
  91. data/test/test_google_application_default_credentials.rb +0 -15
  92. data/test/test_guestbook_go.rb +0 -235
  93. data/test/test_helper.rb +0 -18
  94. data/test/test_kubeclient.rb +0 -881
  95. data/test/test_limit_range.rb +0 -25
  96. data/test/test_missing_methods.rb +0 -80
  97. data/test/test_namespace.rb +0 -59
  98. data/test/test_node.rb +0 -70
  99. data/test/test_oidc_auth_provider.rb +0 -103
  100. data/test/test_persistent_volume.rb +0 -29
  101. data/test/test_persistent_volume_claim.rb +0 -28
  102. data/test/test_pod.rb +0 -81
  103. data/test/test_pod_log.rb +0 -157
  104. data/test/test_process_template.rb +0 -80
  105. data/test/test_replication_controller.rb +0 -47
  106. data/test/test_resource_list_without_kind.rb +0 -78
  107. data/test/test_resource_quota.rb +0 -23
  108. data/test/test_secret.rb +0 -62
  109. data/test/test_security_context_constraint.rb +0 -62
  110. data/test/test_service.rb +0 -357
  111. data/test/test_service_account.rb +0 -26
  112. data/test/test_watch.rb +0 -195
  113. data/test/txt/pod_log.txt +0 -6
  114. data/test/valid_token_file +0 -1
@@ -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
- }
@@ -1,102 +0,0 @@
1
- {
2
- "kind":"PodList",
3
- "apiVersion":"v1",
4
- "metadata":{
5
- "selfLink":"/api/v1/pods",
6
- "resourceVersion":"53226147"
7
- },
8
- "items":[
9
- {
10
- "metadata":{
11
- "name":"topological-inventory-persister-9-hznds",
12
- "generateName":"topological-inventory-persister-9-",
13
- "namespace":"topological-inventory-ci",
14
- "selfLink":"/api/v1/namespaces/topological-inventory-ci/pods/topological-inventory-persister-9-hznds",
15
- "uid":"0c114dde-d865-11e8-ba7e-d094660d31fb",
16
- "resourceVersion":"51987342",
17
- "creationTimestamp":"2018-10-25T14:48:34Z",
18
- "labels":{
19
- "name":"topological-inventory-persister"
20
- }
21
- },
22
- "spec":{
23
- "volumes":[
24
- {
25
- "name":"default-token-5pdjl",
26
- "secret":{
27
- "secretName":"default-token-5pdjl",
28
- "defaultMode":420
29
- }
30
- }
31
- ],
32
- "containers":[
33
- {
34
- "name":"topological-inventory-persister",
35
- "image":"docker-registry.default.svc:5000/topological-inventory-ci/topological-inventory-persister@sha256:0f654ea09e749019cf3bcc4b8ee43b8dd813fcbf487843b917cf190213741927",
36
- "resources":{
37
- }
38
- }
39
- ],
40
- "restartPolicy":"Always",
41
- "terminationGracePeriodSeconds":30,
42
- "dnsPolicy":"ClusterFirst",
43
- "nodeSelector":{
44
- "node-role.kubernetes.io/compute":"true"
45
- },
46
- "serviceAccountName":"default",
47
- "serviceAccount":"default",
48
- "nodeName":"dell-r430-20.example.com",
49
- "schedulerName":"default-scheduler"
50
- },
51
- "status":{
52
- "phase":"Running",
53
- "hostIP":"10.8.96.55",
54
- "podIP":"10.129.1.108",
55
- "startTime":"2018-10-25T14:48:34Z",
56
- "qosClass":"BestEffort"
57
- }
58
- },
59
- {
60
- "metadata":{
61
- "name":"topological-inventory-persister-9-vzr6h",
62
- "generateName":"topological-inventory-persister-9-",
63
- "namespace":"topological-inventory-ci",
64
- "selfLink":"/api/v1/namespaces/topological-inventory-ci/pods/topological-inventory-persister-9-vzr6h",
65
- "uid":"3065d8ce-d86a-11e8-ba7e-d094660d31fb",
66
- "resourceVersion":"51996115",
67
- "creationTimestamp":"2018-10-25T15:25:22Z",
68
- "labels":{
69
- "name":"topological-inventory-persister"
70
- }
71
- },
72
- "spec":{
73
- "volumes":null,
74
- "containers":[
75
- {
76
- "name":"topological-inventory-persister",
77
- "image":"docker-registry.default.svc:5000/topological-inventory-ci/topological-inventory-persister@sha256:0f654ea09e749019cf3bcc4b8ee43b8dd813fcbf487843b917cf190213741927",
78
- "resources":{
79
- }
80
- }
81
- ],
82
- "restartPolicy":"Always",
83
- "terminationGracePeriodSeconds":30,
84
- "dnsPolicy":"ClusterFirst",
85
- "nodeSelector":{
86
- "node-role.kubernetes.io/compute":"true"
87
- },
88
- "serviceAccountName":"default",
89
- "serviceAccount":"default",
90
- "nodeName":"dell-r430-20.example.com",
91
- "schedulerName":"default-scheduler"
92
- },
93
- "status":{
94
- "phase":"Running",
95
- "hostIP":"10.8.96.55",
96
- "podIP":"10.129.1.168",
97
- "startTime":"2018-10-25T15:25:22Z",
98
- "qosClass":"BestEffort"
99
- }
100
- }
101
- ]
102
- }
@@ -1,9 +0,0 @@
1
- {
2
- "kind":"Status",
3
- "apiVersion":"v1",
4
- "metadata":{},
5
- "status":"Failure",
6
- "message":"The provided from parameter is too old to display a consistent list result. You must start a new list without the from.",
7
- "reason":"Expired",
8
- "code":410
9
- }
@@ -1,27 +0,0 @@
1
- {
2
- "kind": "Template",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "name": "my-templtae",
6
- "namespace": "default",
7
- "selfLink": "/oapi/v1/namespaces/default/processedtemplates/my-templtae",
8
- "uid": "2240c61c-8f70-11e5-a806-001a4a231290",
9
- "resourceVersion": "1399",
10
- "creationTimestamp": "2015-11-20T10:19:07Z"
11
- },
12
- "objects": [
13
- {
14
- "apiVersion": "v1",
15
- "kind": "Service",
16
- "metadata": {
17
- "name": "test/my-service"
18
- }
19
- }
20
- ],
21
- "parameters": [
22
- {
23
- "name": "NAME_PREFIX",
24
- "value": "test/"
25
- }
26
- ]
27
- }
@@ -1,57 +0,0 @@
1
- {
2
- "kind": "ReplicationController",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "name": "guestbook-controller",
6
- "namespace": "default",
7
- "selfLink": "/api/v1/replicationcontrollers/guestbook-controller?namespace=default",
8
- "uid": "c71aa4c0-a240-11e4-a265-3c970e4a436a",
9
- "resourceVersion": "8",
10
- "creationTimestamp": "2015-01-22T16:13:02+02:00",
11
- "labels": {
12
- "name": "guestbook"
13
- }
14
- },
15
- "spec": {
16
- "replicas": 3,
17
- "selector": {
18
- "name": "guestbook"
19
- },
20
- "template": {
21
- "metadata": {
22
- "creationTimestamp": null,
23
- "labels": {
24
- "name": "guestbook"
25
- }
26
- },
27
- "spec": {
28
- "volumes": null,
29
- "containers": [
30
- {
31
- "name": "guestbook",
32
- "image": "kubernetes/guestbook",
33
- "ports": [
34
- {
35
- "name": "http-server",
36
- "containerPort": 3000,
37
- "protocol": "TCP"
38
- }
39
- ],
40
- "memory": "0",
41
- "cpu": "0m",
42
- "imagePullPolicy": ""
43
- }
44
- ],
45
- "restartPolicy": {
46
- "always": {
47
-
48
- }
49
- },
50
- "dnsPolicy": "ClusterFirst"
51
- }
52
- }
53
- },
54
- "status": {
55
- "replicas": 3
56
- }
57
- }
@@ -1,66 +0,0 @@
1
- {
2
- "kind": "ReplicationControllerList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/namespaces/default/replicationcontrollers",
6
- "resourceVersion": "1636"
7
- },
8
- "items": [
9
- {
10
- "metadata": {
11
- "name": "redis-master-controller",
12
- "namespace": "default",
13
- "selfLink": "/api/v1/namespaces/default/replicationcontrollers/redis-master-controller?namespace=default",
14
- "uid": "108eb547-cefa-11e4-ac24-3c970e4a436a",
15
- "resourceVersion": "1631",
16
- "creationTimestamp": "2015-03-20T14:10:14+02:00",
17
- "labels": {
18
- "name": "redis-master"
19
- }
20
- },
21
- "spec": {
22
- "replicas": 1,
23
- "selector": {
24
- "name": "redis-master"
25
- },
26
- "template": {
27
- "metadata": {
28
- "creationTimestamp": null,
29
- "labels": {
30
- "app": "redis",
31
- "name": "redis-master"
32
- }
33
- },
34
- "spec": {
35
- "volumes": null,
36
- "containers": [
37
- {
38
- "name": "redis-master",
39
- "image": "dockerfile/redis",
40
- "ports": [
41
- {
42
- "containerPort": 6379,
43
- "protocol": "TCP"
44
- }
45
- ],
46
- "resources": {},
47
- "terminationMessagePath": "/dev/termination-log",
48
- "imagePullPolicy": "IfNotPresent",
49
- "securityContext": {
50
- "capabilities": {}
51
- }
52
- }
53
- ],
54
- "restartPolicy": {
55
- "always": {}
56
- },
57
- "dnsPolicy": "ClusterFirst"
58
- }
59
- }
60
- },
61
- "status": {
62
- "replicas": 1
63
- }
64
- }
65
- ]
66
- }
@@ -1,46 +0,0 @@
1
- {
2
- "kind": "ResourceQuota",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "name": "quota",
6
- "namespace": "quota-example",
7
- "selfLink": "/api/v1/namespaces/quota-example/resourcequotas/quota",
8
- "uid": "ab9f24a4-3c43-11e5-8214-0aaeec44370e",
9
- "resourceVersion": "12919",
10
- "creationTimestamp": "2015-08-06T14:01:44Z"
11
- },
12
- "spec": {
13
- "hard": {
14
- "cpu": "20",
15
- "memory": "1Gi",
16
- "persistentvolumeclaims": "10",
17
- "pods": "10",
18
- "replicationcontrollers": "20",
19
- "resourcequotas": "1",
20
- "secrets": "10",
21
- "services": "5"
22
- }
23
- },
24
- "status": {
25
- "hard": {
26
- "cpu": "20",
27
- "memory": "1Gi",
28
- "persistentvolumeclaims": "10",
29
- "pods": "10",
30
- "replicationcontrollers": "20",
31
- "resourcequotas": "1",
32
- "secrets": "10",
33
- "services": "5"
34
- },
35
- "used": {
36
- "cpu": "0",
37
- "memory": "0",
38
- "persistentvolumeclaims": "0",
39
- "pods": "0",
40
- "replicationcontrollers": "1",
41
- "resourcequotas": "1",
42
- "secrets": "9",
43
- "services": "0"
44
- }
45
- }
46
- }
@@ -1,54 +0,0 @@
1
- {
2
- "kind": "ResourceQuotaList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/namespaces/quota-example/resourcequotas/",
6
- "resourceVersion": "102452"
7
- },
8
- "items": [
9
- {
10
- "metadata": {
11
- "name": "quota",
12
- "namespace": "quota-example",
13
- "selfLink": "/api/v1/namespaces/quota-example/resourcequotas/quota",
14
- "uid": "ab9f24a4-3c43-11e5-8214-0aaeec44370e",
15
- "resourceVersion": "12919",
16
- "creationTimestamp": "2015-08-06T14:01:44Z"
17
- },
18
- "spec": {
19
- "hard": {
20
- "cpu": "20",
21
- "memory": "1Gi",
22
- "persistentvolumeclaims": "10",
23
- "pods": "10",
24
- "replicationcontrollers": "20",
25
- "resourcequotas": "1",
26
- "secrets": "10",
27
- "services": "5"
28
- }
29
- },
30
- "status": {
31
- "hard": {
32
- "cpu": "20",
33
- "memory": "1Gi",
34
- "persistentvolumeclaims": "10",
35
- "pods": "10",
36
- "replicationcontrollers": "20",
37
- "resourcequotas": "1",
38
- "secrets": "10",
39
- "services": "5"
40
- },
41
- "used": {
42
- "cpu": "0",
43
- "memory": "0",
44
- "persistentvolumeclaims": "0",
45
- "pods": "0",
46
- "replicationcontrollers": "1",
47
- "resourcequotas": "1",
48
- "secrets": "9",
49
- "services": "0"
50
- }
51
- }
52
- }
53
- ]
54
- }
@@ -1,44 +0,0 @@
1
- {
2
- "kind": "SecretList",
3
- "apiVersion":"v1",
4
- "metadata":{
5
- "selfLink":"/api/v1/secrets",
6
- "resourceVersion":"256788"
7
- },
8
- "items": [
9
- {
10
- "metadata": {
11
- "name":"default-token-my2pi",
12
- "namespace":"default",
13
- "selfLink":"/api/v1/namespaces/default/secrets/default-token-my2pi",
14
- "uid":"07b60654-2a65-11e5-a483-0e840567604d",
15
- "resourceVersion":"11",
16
- "creationTimestamp":"2015-07-14T20:15:11Z",
17
- "annotations": {
18
- "kubernetes.io/service-account.name":"default",
19
- "kubernetes.io/service-account.uid":"07b350a0-2a65-11e5-a483-0e840567604d"
20
- }
21
- },
22
- "data":{
23
- "ca.crt":"Y2F0J3MgYXJlIGF3ZXNvbWUK",
24
- "token":"Y2F0J3MgYXJlIGF3ZXNvbWUK"
25
- },
26
- "type":"kubernetes.io/service-account-token"
27
- },
28
- {
29
- "metadata": {
30
- "name": "test-secret",
31
- "namespace": "dev",
32
- "selfLink": "/api/v1/namespaces/dev/secrets/test-secret",
33
- "uid": "4e38a198-2bcb-11e5-a483-0e840567604d",
34
- "resourceVersion": "245569",
35
- "creationTimestamp": "2015-07-16T14:59:49Z"
36
- },
37
- "data": {
38
- "super-secret": "Y2F0J3MgYXJlIGF3ZXNvbWUK"
39
- },
40
- "type": "Opaque"
41
- }
42
- ]
43
- }
44
-