kubeclient-rollback-dev 2.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +15 -0
  3. data/.rubocop.yml +16 -0
  4. data/.travis.yml +12 -0
  5. data/Gemfile +4 -0
  6. data/LICENSE.txt +22 -0
  7. data/README.md +428 -0
  8. data/Rakefile +12 -0
  9. data/kubeclient.gemspec +29 -0
  10. data/lib/kubeclient/common.rb +512 -0
  11. data/lib/kubeclient/config.rb +126 -0
  12. data/lib/kubeclient/entity_list.rb +16 -0
  13. data/lib/kubeclient/kube_exception.rb +14 -0
  14. data/lib/kubeclient/missing_kind_compatibility.rb +68 -0
  15. data/lib/kubeclient/version.rb +4 -0
  16. data/lib/kubeclient/watch_notice.rb +7 -0
  17. data/lib/kubeclient/watch_stream.rb +80 -0
  18. data/lib/kubeclient.rb +32 -0
  19. data/test/cassettes/kubernetes_guestbook.yml +879 -0
  20. data/test/config/allinone.kubeconfig +20 -0
  21. data/test/config/external-ca.pem +18 -0
  22. data/test/config/external-cert.pem +19 -0
  23. data/test/config/external-key.rsa +27 -0
  24. data/test/config/external.kubeconfig +20 -0
  25. data/test/config/nouser.kubeconfig +16 -0
  26. data/test/config/userauth.kubeconfig +28 -0
  27. data/test/json/bindings_list.json +10 -0
  28. data/test/json/component_status.json +17 -0
  29. data/test/json/component_status_list.json +52 -0
  30. data/test/json/config_map_list.json +9 -0
  31. data/test/json/core_api_resource_list.json +181 -0
  32. data/test/json/core_api_resource_list_without_kind.json +129 -0
  33. data/test/json/core_oapi_resource_list_without_kind.json +197 -0
  34. data/test/json/created_endpoint.json +28 -0
  35. data/test/json/created_namespace.json +20 -0
  36. data/test/json/created_secret.json +16 -0
  37. data/test/json/created_service.json +31 -0
  38. data/test/json/empty_pod_list.json +9 -0
  39. data/test/json/endpoint_list.json +48 -0
  40. data/test/json/entity_list.json +56 -0
  41. data/test/json/event_list.json +35 -0
  42. data/test/json/limit_range.json +23 -0
  43. data/test/json/limit_range_list.json +31 -0
  44. data/test/json/namespace.json +13 -0
  45. data/test/json/namespace_exception.json +8 -0
  46. data/test/json/namespace_list.json +32 -0
  47. data/test/json/node.json +29 -0
  48. data/test/json/node_list.json +37 -0
  49. data/test/json/persistent_volume.json +37 -0
  50. data/test/json/persistent_volume_claim.json +32 -0
  51. data/test/json/persistent_volume_claim_list.json +40 -0
  52. data/test/json/persistent_volume_claims_nil_items.json +8 -0
  53. data/test/json/persistent_volume_list.json +45 -0
  54. data/test/json/pod.json +92 -0
  55. data/test/json/pod_list.json +79 -0
  56. data/test/json/pod_template_list.json +9 -0
  57. data/test/json/processed_template.json +27 -0
  58. data/test/json/replication_controller.json +57 -0
  59. data/test/json/replication_controller_list.json +66 -0
  60. data/test/json/resource_quota.json +46 -0
  61. data/test/json/resource_quota_list.json +54 -0
  62. data/test/json/secret_list.json +44 -0
  63. data/test/json/service.json +33 -0
  64. data/test/json/service_account.json +25 -0
  65. data/test/json/service_account_list.json +82 -0
  66. data/test/json/service_illegal_json_404.json +1 -0
  67. data/test/json/service_list.json +97 -0
  68. data/test/json/service_patch.json +25 -0
  69. data/test/json/service_update.json +22 -0
  70. data/test/json/versions_list.json +6 -0
  71. data/test/json/watch_stream.json +3 -0
  72. data/test/test_common.rb +32 -0
  73. data/test/test_component_status.rb +30 -0
  74. data/test/test_config.rb +72 -0
  75. data/test/test_endpoint.rb +35 -0
  76. data/test/test_guestbook_go.rb +238 -0
  77. data/test/test_helper.rb +10 -0
  78. data/test/test_kubeclient.rb +611 -0
  79. data/test/test_limit_range.rb +27 -0
  80. data/test/test_missing_methods.rb +42 -0
  81. data/test/test_namespace.rb +61 -0
  82. data/test/test_node.rb +33 -0
  83. data/test/test_persistent_volume.rb +30 -0
  84. data/test/test_persistent_volume_claim.rb +30 -0
  85. data/test/test_pod.rb +29 -0
  86. data/test/test_pod_log.rb +50 -0
  87. data/test/test_process_template.rb +44 -0
  88. data/test/test_replication_controller.rb +27 -0
  89. data/test/test_resource_list_without_kind.rb +78 -0
  90. data/test/test_resource_quota.rb +25 -0
  91. data/test/test_secret.rb +70 -0
  92. data/test/test_service.rb +293 -0
  93. data/test/test_service_account.rb +28 -0
  94. data/test/test_watch.rb +119 -0
  95. data/test/txt/pod_log.txt +6 -0
  96. data/test/valid_token_file +1 -0
  97. metadata +343 -0
@@ -0,0 +1,32 @@
1
+ {
2
+ "kind": "PersistentVolumeClaim",
3
+ "apiVersion": "v1",
4
+ "metadata": {
5
+ "name": "myclaim-1",
6
+ "namespace": "default",
7
+ "selfLink": "/api/v1/namespaces/default/persistentvolumeclaims/myclaim-1",
8
+ "uid": "d47384a3-4b38-11e5-8d27-28d2447dcefe",
9
+ "resourceVersion": "1584",
10
+ "creationTimestamp": "2015-08-25T14:51:55Z"
11
+ },
12
+ "spec": {
13
+ "accessModes": [
14
+ "ReadWriteOnce"
15
+ ],
16
+ "resources": {
17
+ "requests": {
18
+ "storage": "3Gi"
19
+ }
20
+ },
21
+ "volumeName": "pv0001"
22
+ },
23
+ "status": {
24
+ "phase": "Bound",
25
+ "accessModes": [
26
+ "ReadWriteOnce"
27
+ ],
28
+ "capacity": {
29
+ "storage": "10Gi"
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "kind": "PersistentVolumeClaimList",
3
+ "apiVersion": "v1",
4
+ "metadata": {
5
+ "selfLink": "/api/v1/persistentvolumeclaims",
6
+ "resourceVersion": "3188"
7
+ },
8
+ "items": [
9
+ {
10
+ "metadata": {
11
+ "name": "myclaim-1",
12
+ "namespace": "default",
13
+ "selfLink": "/api/v1/namespaces/default/persistentvolumeclaims/myclaim-1",
14
+ "uid": "d47384a3-4b38-11e5-8d27-28d2447dcefe",
15
+ "resourceVersion": "1584",
16
+ "creationTimestamp": "2015-08-25T14:51:55Z"
17
+ },
18
+ "spec": {
19
+ "accessModes": [
20
+ "ReadWriteOnce"
21
+ ],
22
+ "resources": {
23
+ "requests": {
24
+ "storage": "3Gi"
25
+ }
26
+ },
27
+ "volumeName": "pv0001"
28
+ },
29
+ "status": {
30
+ "phase": "Bound",
31
+ "accessModes": [
32
+ "ReadWriteOnce"
33
+ ],
34
+ "capacity": {
35
+ "storage": "10Gi"
36
+ }
37
+ }
38
+ }
39
+ ]
40
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "kind": "PersistentVolumeClaimList",
3
+ "apiVersion": "v1",
4
+ "metadata": {
5
+ "selfLink": "/api/v1/persistentvolumeclaims",
6
+ "resourceVersion": "1089012"
7
+ }
8
+ }
@@ -0,0 +1,45 @@
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
+ }
@@ -0,0 +1,92 @@
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
+ }
@@ -0,0 +1,79 @@
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
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "kind": "PodTemplateList",
3
+ "apiVersion": "v1",
4
+ "metadata": {
5
+ "selfLink": "/api/v1/podtemplates",
6
+ "resourceVersion": "672"
7
+ },
8
+ "items": []
9
+ }
@@ -0,0 +1,27 @@
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
+ }
@@ -0,0 +1,57 @@
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
+ }
@@ -0,0 +1,66 @@
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
+ }
@@ -0,0 +1,46 @@
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
+ }
@@ -0,0 +1,54 @@
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
+ }
@@ -0,0 +1,44 @@
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
+
@@ -0,0 +1,33 @@
1
+ {
2
+ "kind": "Service",
3
+ "apiVersion": "v1",
4
+ "metadata": {
5
+ "name": "redis-slave",
6
+ "namespace": "development",
7
+ "selfLink": "/api/v1/namespaces/development/services/redis-slave",
8
+ "uid": "bdb80a8f-db93-11e4-b293-f8b156af4ae1",
9
+ "resourceVersion": "2815",
10
+ "creationTimestamp": "2015-04-05T13:00:31Z",
11
+ "labels": {
12
+ "name": "redis",
13
+ "role": "slave"
14
+ }
15
+ },
16
+ "spec": {
17
+ "ports": [
18
+ {
19
+ "name": "",
20
+ "protocol": "TCP",
21
+ "port": 6379,
22
+ "targetPort": "redis-server"
23
+ }
24
+ ],
25
+ "selector": {
26
+ "name": "redis",
27
+ "role": "slave"
28
+ },
29
+ "clusterIP": "10.0.0.140",
30
+ "sessionAffinity": "None"
31
+ },
32
+ "status": {}
33
+ }
@@ -0,0 +1,25 @@
1
+ {
2
+ "kind": "ServiceAccount",
3
+ "apiVersion": "v1",
4
+ "metadata": {
5
+ "name": "default",
6
+ "namespace": "default",
7
+ "selfLink": "/api/v1/namespaces/default/serviceaccounts/default",
8
+ "uid": "d3d773f4-6bf0-11e5-843a-525400f8b93e",
9
+ "resourceVersion": "94",
10
+ "creationTimestamp": "2015-10-06T06:09:39Z"
11
+ },
12
+ "secrets": [
13
+ {
14
+ "name": "default-token-6s23q"
15
+ },
16
+ {
17
+ "name": "default-dockercfg-62tf3"
18
+ }
19
+ ],
20
+ "imagePullSecrets": [
21
+ {
22
+ "name": "default-dockercfg-62tf3"
23
+ }
24
+ ]
25
+ }