kubeclient-rollback-dev 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rubocop.yml +16 -0
- data/.travis.yml +12 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +428 -0
- data/Rakefile +12 -0
- data/kubeclient.gemspec +29 -0
- data/lib/kubeclient/common.rb +512 -0
- data/lib/kubeclient/config.rb +126 -0
- data/lib/kubeclient/entity_list.rb +16 -0
- data/lib/kubeclient/kube_exception.rb +14 -0
- data/lib/kubeclient/missing_kind_compatibility.rb +68 -0
- data/lib/kubeclient/version.rb +4 -0
- data/lib/kubeclient/watch_notice.rb +7 -0
- data/lib/kubeclient/watch_stream.rb +80 -0
- data/lib/kubeclient.rb +32 -0
- data/test/cassettes/kubernetes_guestbook.yml +879 -0
- data/test/config/allinone.kubeconfig +20 -0
- data/test/config/external-ca.pem +18 -0
- data/test/config/external-cert.pem +19 -0
- data/test/config/external-key.rsa +27 -0
- data/test/config/external.kubeconfig +20 -0
- data/test/config/nouser.kubeconfig +16 -0
- data/test/config/userauth.kubeconfig +28 -0
- data/test/json/bindings_list.json +10 -0
- data/test/json/component_status.json +17 -0
- data/test/json/component_status_list.json +52 -0
- data/test/json/config_map_list.json +9 -0
- data/test/json/core_api_resource_list.json +181 -0
- data/test/json/core_api_resource_list_without_kind.json +129 -0
- data/test/json/core_oapi_resource_list_without_kind.json +197 -0
- data/test/json/created_endpoint.json +28 -0
- data/test/json/created_namespace.json +20 -0
- data/test/json/created_secret.json +16 -0
- data/test/json/created_service.json +31 -0
- data/test/json/empty_pod_list.json +9 -0
- data/test/json/endpoint_list.json +48 -0
- data/test/json/entity_list.json +56 -0
- data/test/json/event_list.json +35 -0
- data/test/json/limit_range.json +23 -0
- data/test/json/limit_range_list.json +31 -0
- data/test/json/namespace.json +13 -0
- data/test/json/namespace_exception.json +8 -0
- data/test/json/namespace_list.json +32 -0
- data/test/json/node.json +29 -0
- data/test/json/node_list.json +37 -0
- data/test/json/persistent_volume.json +37 -0
- data/test/json/persistent_volume_claim.json +32 -0
- data/test/json/persistent_volume_claim_list.json +40 -0
- data/test/json/persistent_volume_claims_nil_items.json +8 -0
- data/test/json/persistent_volume_list.json +45 -0
- data/test/json/pod.json +92 -0
- data/test/json/pod_list.json +79 -0
- data/test/json/pod_template_list.json +9 -0
- data/test/json/processed_template.json +27 -0
- data/test/json/replication_controller.json +57 -0
- data/test/json/replication_controller_list.json +66 -0
- data/test/json/resource_quota.json +46 -0
- data/test/json/resource_quota_list.json +54 -0
- data/test/json/secret_list.json +44 -0
- data/test/json/service.json +33 -0
- data/test/json/service_account.json +25 -0
- data/test/json/service_account_list.json +82 -0
- data/test/json/service_illegal_json_404.json +1 -0
- data/test/json/service_list.json +97 -0
- data/test/json/service_patch.json +25 -0
- data/test/json/service_update.json +22 -0
- data/test/json/versions_list.json +6 -0
- data/test/json/watch_stream.json +3 -0
- data/test/test_common.rb +32 -0
- data/test/test_component_status.rb +30 -0
- data/test/test_config.rb +72 -0
- data/test/test_endpoint.rb +35 -0
- data/test/test_guestbook_go.rb +238 -0
- data/test/test_helper.rb +10 -0
- data/test/test_kubeclient.rb +611 -0
- data/test/test_limit_range.rb +27 -0
- data/test/test_missing_methods.rb +42 -0
- data/test/test_namespace.rb +61 -0
- data/test/test_node.rb +33 -0
- data/test/test_persistent_volume.rb +30 -0
- data/test/test_persistent_volume_claim.rb +30 -0
- data/test/test_pod.rb +29 -0
- data/test/test_pod_log.rb +50 -0
- data/test/test_process_template.rb +44 -0
- data/test/test_replication_controller.rb +27 -0
- data/test/test_resource_list_without_kind.rb +78 -0
- data/test/test_resource_quota.rb +25 -0
- data/test/test_secret.rb +70 -0
- data/test/test_service.rb +293 -0
- data/test/test_service_account.rb +28 -0
- data/test/test_watch.rb +119 -0
- data/test/txt/pod_log.txt +6 -0
- data/test/valid_token_file +1 -0
- metadata +343 -0
@@ -0,0 +1,197 @@
|
|
1
|
+
{
|
2
|
+
"groupVersion": "v1",
|
3
|
+
"resources": [
|
4
|
+
{
|
5
|
+
"name": "buildconfigs",
|
6
|
+
"namespaced": true
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"name": "buildconfigs/instantiate",
|
10
|
+
"namespaced": true
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"name": "buildconfigs/instantiatebinary",
|
14
|
+
"namespaced": true
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"name": "buildconfigs/webhooks",
|
18
|
+
"namespaced": true
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "builds",
|
22
|
+
"namespaced": true
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"name": "builds/clone",
|
26
|
+
"namespaced": true
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"name": "builds/details",
|
30
|
+
"namespaced": true
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "builds/log",
|
34
|
+
"namespaced": true
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"name": "clusternetworks",
|
38
|
+
"namespaced": false
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"name": "clusterpolicies",
|
42
|
+
"namespaced": false
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"name": "clusterpolicybindings",
|
46
|
+
"namespaced": false
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"name": "clusterrolebindings",
|
50
|
+
"namespaced": false
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"name": "clusterroles",
|
54
|
+
"namespaced": false
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"name": "deploymentconfigrollbacks",
|
58
|
+
"namespaced": true
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"name": "deploymentconfigs",
|
62
|
+
"namespaced": true
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"name": "deploymentconfigs/log",
|
66
|
+
"namespaced": true
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"name": "deploymentconfigs/scale",
|
70
|
+
"namespaced": true
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"name": "generatedeploymentconfigs",
|
74
|
+
"namespaced": true
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"name": "groups",
|
78
|
+
"namespaced": false
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"name": "hostsubnets",
|
82
|
+
"namespaced": false
|
83
|
+
},
|
84
|
+
{
|
85
|
+
"name": "identities",
|
86
|
+
"namespaced": false
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"name": "images",
|
90
|
+
"namespaced": false
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"name": "imagestreamimages",
|
94
|
+
"namespaced": true
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"name": "imagestreammappings",
|
98
|
+
"namespaced": true
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"name": "imagestreams",
|
102
|
+
"namespaced": true
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"name": "imagestreams/status",
|
106
|
+
"namespaced": true
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"name": "imagestreamtags",
|
110
|
+
"namespaced": true
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"name": "localresourceaccessreviews",
|
114
|
+
"namespaced": true
|
115
|
+
},
|
116
|
+
{
|
117
|
+
"name": "localsubjectaccessreviews",
|
118
|
+
"namespaced": true
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"name": "netnamespaces",
|
122
|
+
"namespaced": false
|
123
|
+
},
|
124
|
+
{
|
125
|
+
"name": "oauthaccesstokens",
|
126
|
+
"namespaced": false
|
127
|
+
},
|
128
|
+
{
|
129
|
+
"name": "oauthauthorizetokens",
|
130
|
+
"namespaced": false
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"name": "oauthclientauthorizations",
|
134
|
+
"namespaced": false
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"name": "oauthclients",
|
138
|
+
"namespaced": false
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"name": "policies",
|
142
|
+
"namespaced": true
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"name": "policybindings",
|
146
|
+
"namespaced": true
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"name": "processedtemplates",
|
150
|
+
"namespaced": true
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"name": "projectrequests",
|
154
|
+
"namespaced": false
|
155
|
+
},
|
156
|
+
{
|
157
|
+
"name": "projects",
|
158
|
+
"namespaced": false
|
159
|
+
},
|
160
|
+
{
|
161
|
+
"name": "resourceaccessreviews",
|
162
|
+
"namespaced": true
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"name": "rolebindings",
|
166
|
+
"namespaced": true
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"name": "roles",
|
170
|
+
"namespaced": true
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"name": "routes",
|
174
|
+
"namespaced": true
|
175
|
+
},
|
176
|
+
{
|
177
|
+
"name": "routes/status",
|
178
|
+
"namespaced": true
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"name": "subjectaccessreviews",
|
182
|
+
"namespaced": true
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"name": "templates",
|
186
|
+
"namespaced": true
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"name": "useridentitymappings",
|
190
|
+
"namespaced": false
|
191
|
+
},
|
192
|
+
{
|
193
|
+
"name": "users",
|
194
|
+
"namespaced": false
|
195
|
+
}
|
196
|
+
]
|
197
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"kind": "Endpoints",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "myendpoint",
|
6
|
+
"namespace": "default",
|
7
|
+
"selfLink": "/api/v1/namespaces/default/endpoints/myendpoint",
|
8
|
+
"uid": "59d05b48-dadb-11e5-937e-18037327aaeb",
|
9
|
+
"resourceVersion": "393",
|
10
|
+
"creationTimestamp": "2016-02-24T09:45:34Z"
|
11
|
+
},
|
12
|
+
"subsets": [
|
13
|
+
{
|
14
|
+
"addresses": [
|
15
|
+
{
|
16
|
+
"ip": "172.17.0.25"
|
17
|
+
}
|
18
|
+
],
|
19
|
+
"ports": [
|
20
|
+
{
|
21
|
+
"name": "https",
|
22
|
+
"port": 6443,
|
23
|
+
"protocol": "TCP"
|
24
|
+
}
|
25
|
+
]
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
"kind": "Namespace",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "development",
|
6
|
+
"selfLink": "/api/v1/namespaces/development",
|
7
|
+
"uid": "13d820d6-df5b-11e4-bd42-f8b156af4ae1",
|
8
|
+
"resourceVersion": "2533",
|
9
|
+
"creationTimestamp": "2015-04-10T08:24:59Z"
|
10
|
+
},
|
11
|
+
"spec": {
|
12
|
+
"finalizers": [
|
13
|
+
"kubernetes"
|
14
|
+
]
|
15
|
+
},
|
16
|
+
"status": {
|
17
|
+
"phase": "Active"
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
{
|
2
|
+
"kind": "Secret",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "test-secret",
|
6
|
+
"namespace": "dev",
|
7
|
+
"selfLink": "/api/v1/namespaces/dev/secrets/test-secret",
|
8
|
+
"uid": "4e38a198-2bcb-11e5-a483-0e840567604d",
|
9
|
+
"resourceVersion": "245569",
|
10
|
+
"creationTimestamp": "2015-07-16T14:59:49Z"
|
11
|
+
},
|
12
|
+
"data": {
|
13
|
+
"super-secret": "Y2F0J3MgYXJlIGF3ZXNvbWUK"
|
14
|
+
},
|
15
|
+
"type": "Opaque"
|
16
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"kind": "Service",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "guestbook",
|
6
|
+
"namespace": "staging",
|
7
|
+
"selfLink": "/api/v1/namespaces/staging/services/guestbook",
|
8
|
+
"uid": "29885239-df58-11e4-bd42-f8b156af4ae1",
|
9
|
+
"resourceVersion": "1908",
|
10
|
+
"creationTimestamp": "2015-04-10T08:04:07Z",
|
11
|
+
"labels": {
|
12
|
+
"name": "guestbook"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
"spec": {
|
16
|
+
"ports": [
|
17
|
+
{
|
18
|
+
"name": "",
|
19
|
+
"protocol": "TCP",
|
20
|
+
"port": 3000,
|
21
|
+
"targetPort": "http-server"
|
22
|
+
}
|
23
|
+
],
|
24
|
+
"selector": {
|
25
|
+
"name": "guestbook"
|
26
|
+
},
|
27
|
+
"clusterIP": "10.0.0.99",
|
28
|
+
"sessionAffinity": "None"
|
29
|
+
},
|
30
|
+
"status": {}
|
31
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
{
|
2
|
+
"kind": "EndpointsList",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"selfLink": "/api/v1/namespaces/endpoints",
|
6
|
+
"resourceVersion": "39"
|
7
|
+
},
|
8
|
+
"items": [
|
9
|
+
{
|
10
|
+
"metadata": {
|
11
|
+
"name": "example",
|
12
|
+
"namespace": "default",
|
13
|
+
"selfLink": "/api/v1/namespaces/default/endpoints/example",
|
14
|
+
"uid": "db467530-b6aa-11e4-974a-525400c903c1",
|
15
|
+
"resourceVersion": "38",
|
16
|
+
"creationTimestamp": "2015-02-17T08:42:46-05:00"
|
17
|
+
},
|
18
|
+
"endpoints": [
|
19
|
+
"172.17.0.63:80",
|
20
|
+
"172.17.0.64:80"
|
21
|
+
]
|
22
|
+
},
|
23
|
+
{
|
24
|
+
"metadata": {
|
25
|
+
"name": "kubernetes",
|
26
|
+
"namespace": "default",
|
27
|
+
"selfLink": "/api/v1/namespaces/default/endpoints/kubernetes",
|
28
|
+
"resourceVersion": "8",
|
29
|
+
"creationTimestamp": null
|
30
|
+
},
|
31
|
+
"endpoints": [
|
32
|
+
"192.168.122.4:6443"
|
33
|
+
]
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"metadata": {
|
37
|
+
"name": "kubernetes-ro",
|
38
|
+
"namespace": "default",
|
39
|
+
"selfLink": "/api/v1/namespaces/default/endpoints/kubernetes-ro",
|
40
|
+
"resourceVersion": "7",
|
41
|
+
"creationTimestamp": null
|
42
|
+
},
|
43
|
+
"endpoints": [
|
44
|
+
"192.168.122.4:7080"
|
45
|
+
]
|
46
|
+
}
|
47
|
+
]
|
48
|
+
}
|
@@ -0,0 +1,56 @@
|
|
1
|
+
{
|
2
|
+
"kind": "ServiceList",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"selfLink": "/api/v1/services",
|
6
|
+
"resourceVersion": "59"
|
7
|
+
},
|
8
|
+
"items": [
|
9
|
+
{
|
10
|
+
"metadata": {
|
11
|
+
"name": "kubernetes",
|
12
|
+
"namespace": "default",
|
13
|
+
"selfLink": "/api/v1/services/kubernetes?namespace=default",
|
14
|
+
"uid": "016e9dcd-ce39-11e4-ac24-3c970e4a436a",
|
15
|
+
"resourceVersion": "6",
|
16
|
+
"creationTimestamp": "2015-03-19T15:08:16+02:00",
|
17
|
+
"labels": {
|
18
|
+
"component": "apiserver",
|
19
|
+
"provider": "kubernetes"
|
20
|
+
}
|
21
|
+
},
|
22
|
+
"spec": {
|
23
|
+
"port": 443,
|
24
|
+
"protocol": "TCP",
|
25
|
+
"selector": null,
|
26
|
+
"clusterIP": "10.0.0.2",
|
27
|
+
"containerPort": 0,
|
28
|
+
"sessionAffinity": "None"
|
29
|
+
},
|
30
|
+
"status": {}
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"metadata": {
|
34
|
+
"name": "kubernetes-ro",
|
35
|
+
"namespace": "default",
|
36
|
+
"selfLink": "/api/v1/services/kubernetes-ro?namespace=default",
|
37
|
+
"uid": "015b78bf-ce39-11e4-ac24-3c970e4a436a",
|
38
|
+
"resourceVersion": "5",
|
39
|
+
"creationTimestamp": "2015-03-19T15:08:15+02:00",
|
40
|
+
"labels": {
|
41
|
+
"component": "apiserver",
|
42
|
+
"provider": "kubernetes"
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"spec": {
|
46
|
+
"port": 80,
|
47
|
+
"protocol": "TCP",
|
48
|
+
"selector": null,
|
49
|
+
"clusterIP": "10.0.0.1",
|
50
|
+
"containerPort": 0,
|
51
|
+
"sessionAffinity": "None"
|
52
|
+
},
|
53
|
+
"status": {}
|
54
|
+
}
|
55
|
+
]
|
56
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
{
|
2
|
+
"kind": "EventList",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"selfLink": "/api/v1/events",
|
6
|
+
"resourceVersion": "152"
|
7
|
+
},
|
8
|
+
"items": [
|
9
|
+
{
|
10
|
+
"metadata": {
|
11
|
+
"name": "php.13c130f78da4641e",
|
12
|
+
"namespace": "default",
|
13
|
+
"selfLink": "/api/v1/events/php.13c130f78da4641e?namespace=default",
|
14
|
+
"uid": "f3a454d2-b03a-11e4-89e4-525400c903c1",
|
15
|
+
"resourceVersion": "178",
|
16
|
+
"creationTimestamp": "2015-02-09T04:06:37-05:00"
|
17
|
+
},
|
18
|
+
"involvedObject": {
|
19
|
+
"kind": "BoundPod",
|
20
|
+
"namespace": "default",
|
21
|
+
"name": "php",
|
22
|
+
"uid": "64273d20-b03a-11e4-89e4-525400c903c1",
|
23
|
+
"apiVersion": "v1beta1",
|
24
|
+
"fieldPath": "spec.containers{nginx}"
|
25
|
+
},
|
26
|
+
"reason": "created",
|
27
|
+
"message": "Created with docker id 9ba2a714411d2d0dd1e826b2fe5c3222b5cbfd9dd9133c841585cbb96b8c2c0f",
|
28
|
+
"source": {
|
29
|
+
"component": "kubelet",
|
30
|
+
"host": "127.0.0.1"
|
31
|
+
},
|
32
|
+
"timestamp": "2015-02-09T04:06:37-05:00"
|
33
|
+
}
|
34
|
+
]
|
35
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"kind": "LimitRange",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "limits",
|
6
|
+
"namespace": "quota-example",
|
7
|
+
"selfLink": "/api/v1/namespaces/quota-example/limitranges/limits",
|
8
|
+
"uid": "7a76a44c-3e9d-11e5-8214-0aaeec44370e",
|
9
|
+
"resourceVersion": "103384",
|
10
|
+
"creationTimestamp": "2015-08-09T13:49:39Z"
|
11
|
+
},
|
12
|
+
"spec": {
|
13
|
+
"limits": [
|
14
|
+
{
|
15
|
+
"type": "Container",
|
16
|
+
"default": {
|
17
|
+
"cpu": "100m",
|
18
|
+
"memory": "512Mi"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
]
|
22
|
+
}
|
23
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
{
|
2
|
+
"kind": "LimitRangeList",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"selfLink": "/api/v1/namespaces/quota-example/limitranges/",
|
6
|
+
"resourceVersion": "103421"
|
7
|
+
},
|
8
|
+
"items": [
|
9
|
+
{
|
10
|
+
"metadata": {
|
11
|
+
"name": "limits",
|
12
|
+
"namespace": "quota-example",
|
13
|
+
"selfLink": "/api/v1/namespaces/quota-example/limitranges/limits",
|
14
|
+
"uid": "7a76a44c-3e9d-11e5-8214-0aaeec44370e",
|
15
|
+
"resourceVersion": "103384",
|
16
|
+
"creationTimestamp": "2015-08-09T13:49:39Z"
|
17
|
+
},
|
18
|
+
"spec": {
|
19
|
+
"limits": [
|
20
|
+
{
|
21
|
+
"type": "Container",
|
22
|
+
"default": {
|
23
|
+
"cpu": "100m",
|
24
|
+
"memory": "512Mi"
|
25
|
+
}
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
29
|
+
}
|
30
|
+
]
|
31
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"kind": "Namespace",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "staging",
|
6
|
+
"selfLink": "/api/v1/namespaces/staging",
|
7
|
+
"uid": "e388bc10-c021-11e4-a514-3c970e4a436a",
|
8
|
+
"resourceVersion": "1168",
|
9
|
+
"creationTimestamp": "2015-03-01T16:47:31+02:00"
|
10
|
+
},
|
11
|
+
"spec": {},
|
12
|
+
"status": {}
|
13
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"kind": "NamespaceList",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"selfLink": "/api/v1/namespaces",
|
6
|
+
"resourceVersion": "1707"
|
7
|
+
},
|
8
|
+
"items": [
|
9
|
+
{
|
10
|
+
"metadata": {
|
11
|
+
"name": "default",
|
12
|
+
"selfLink": "/api/v1/namespaces/default",
|
13
|
+
"uid": "56c3eb7c-c009-11e4-a514-3c970e4a436a",
|
14
|
+
"resourceVersion": "4",
|
15
|
+
"creationTimestamp": "2015-03-01T13:51:47+02:00"
|
16
|
+
},
|
17
|
+
"spec": {},
|
18
|
+
"status": {}
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"metadata": {
|
22
|
+
"name": "staging",
|
23
|
+
"selfLink": "/api/v1/namespaces/staging",
|
24
|
+
"uid": "e388bc10-c021-11e4-a514-3c970e4a436a",
|
25
|
+
"resourceVersion": "1168",
|
26
|
+
"creationTimestamp": "2015-03-01T16:47:31+02:00"
|
27
|
+
},
|
28
|
+
"spec": {},
|
29
|
+
"status": {}
|
30
|
+
}
|
31
|
+
]
|
32
|
+
}
|
data/test/json/node.json
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"kind": "Node",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "127.0.0.1",
|
6
|
+
"selfLink": "/api/v1/nodes/127.0.0.1",
|
7
|
+
"uid": "041143c5-ce39-11e4-ac24-3c970e4a436a",
|
8
|
+
"resourceVersion": "1724",
|
9
|
+
"creationTimestamp": "2015-03-19T15:08:20+02:00"
|
10
|
+
},
|
11
|
+
"spec": {
|
12
|
+
"capacity": {
|
13
|
+
"cpu": "1",
|
14
|
+
"memory": "3Gi"
|
15
|
+
}
|
16
|
+
},
|
17
|
+
"status": {
|
18
|
+
"hostIP": "127.0.0.1",
|
19
|
+
"conditions": [
|
20
|
+
{
|
21
|
+
"kind": "Ready",
|
22
|
+
"status": "None",
|
23
|
+
"lastProbeTime": "2015-03-20T14:16:52+02:00",
|
24
|
+
"lastTransitionTime": "2015-03-19T15:08:20+02:00",
|
25
|
+
"reason": "Node health check failed: kubelet /healthz endpoint returns not ok"
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"kind": "NodeList",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"selfLink": "/api/v1/nodes",
|
6
|
+
"resourceVersion": "137"
|
7
|
+
},
|
8
|
+
"items": [
|
9
|
+
{
|
10
|
+
"metadata": {
|
11
|
+
"name": "127.0.0.1",
|
12
|
+
"selfLink": "/api/v1/nodes/127.0.0.1",
|
13
|
+
"uid": "041143c5-ce39-11e4-ac24-3c970e4a436a",
|
14
|
+
"resourceVersion": "137",
|
15
|
+
"creationTimestamp": "2015-03-19T15:08:20+02:00"
|
16
|
+
},
|
17
|
+
"spec": {
|
18
|
+
"capacity": {
|
19
|
+
"cpu": "1",
|
20
|
+
"memory": "3Gi"
|
21
|
+
}
|
22
|
+
},
|
23
|
+
"status": {
|
24
|
+
"hostIP": "127.0.0.1",
|
25
|
+
"conditions": [
|
26
|
+
{
|
27
|
+
"kind": "Ready",
|
28
|
+
"status": "None",
|
29
|
+
"lastProbeTime": "2015-03-19T15:29:33+02:00",
|
30
|
+
"lastTransitionTime": "2015-03-19T15:08:20+02:00",
|
31
|
+
"reason": "Node health check failed: kubelet /healthz endpoint returns not ok"
|
32
|
+
}
|
33
|
+
]
|
34
|
+
}
|
35
|
+
}
|
36
|
+
]
|
37
|
+
}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
{
|
2
|
+
"kind": "PersistentVolume",
|
3
|
+
"apiVersion": "v1",
|
4
|
+
"metadata": {
|
5
|
+
"name": "pv0001",
|
6
|
+
"selfLink": "/api/v1/persistentvolumes/pv0001",
|
7
|
+
"uid": "c83eece1-4b38-11e5-8d27-28d2447dcefe",
|
8
|
+
"resourceVersion": "1585",
|
9
|
+
"creationTimestamp": "2015-08-25T14:51:35Z",
|
10
|
+
"labels": {
|
11
|
+
"type": "local"
|
12
|
+
}
|
13
|
+
},
|
14
|
+
"spec": {
|
15
|
+
"capacity": {
|
16
|
+
"storage": "10Gi"
|
17
|
+
},
|
18
|
+
"hostPath": {
|
19
|
+
"path": "/tmp/data01"
|
20
|
+
},
|
21
|
+
"accessModes": [
|
22
|
+
"ReadWriteOnce"
|
23
|
+
],
|
24
|
+
"claimRef": {
|
25
|
+
"kind": "PersistentVolumeClaim",
|
26
|
+
"namespace": "default",
|
27
|
+
"name": "myclaim-1",
|
28
|
+
"uid": "d47384a3-4b38-11e5-8d27-28d2447dcefe",
|
29
|
+
"apiVersion": "v1",
|
30
|
+
"resourceVersion": "1582"
|
31
|
+
},
|
32
|
+
"persistentVolumeReclaimPolicy": "Retain"
|
33
|
+
},
|
34
|
+
"status": {
|
35
|
+
"phase": "Bound"
|
36
|
+
}
|
37
|
+
}
|