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,23 +0,0 @@
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
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,13 +0,0 @@
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
- }
@@ -1,8 +0,0 @@
1
- {
2
- "kind": "Status",
3
- "apiVersion": "v1",
4
- "metadata": {},
5
- "status": "Failure",
6
- "message": "converting to : type names don't match (Pod, Namespace)",
7
- "code": 500
8
- }
@@ -1,32 +0,0 @@
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 DELETED
@@ -1,29 +0,0 @@
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
- }
@@ -1,37 +0,0 @@
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
- }
@@ -1,160 +0,0 @@
1
- {
2
- "type": "ADDED",
3
- "object": {
4
- "apiVersion": "v1",
5
- "kind": "Node",
6
- "metadata": {
7
- "annotations": {
8
- "volumes.kubernetes.io/controller-managed-attach-detach": "true"
9
- },
10
- "creationTimestamp": "2017-12-11T12:00:13Z",
11
- "labels": {
12
- "beta.kubernetes.io/arch": "amd64",
13
- "beta.kubernetes.io/os": "linux",
14
- "kubernetes.io/hostname": "openshift.local",
15
- "openshift-infra": "apiserver"
16
- },
17
- "name": "openshift.local",
18
- "resourceVersion": "367410",
19
- "selfLink": "/api/v1/nodes/openshift.local",
20
- "uid": "d88c7af6-de6a-11e7-8725-52540080f1d2"
21
- },
22
- "spec": {
23
- "externalID": "openshift.local"
24
- },
25
- "status": {
26
- "addresses": [
27
- {
28
- "address": "192.168.122.40",
29
- "type": "InternalIP"
30
- },
31
- {
32
- "address": "openshift.local",
33
- "type": "Hostname"
34
- }
35
- ],
36
- "allocatable": {
37
- "cpu": "2",
38
- "memory": "8072896Ki",
39
- "pods": "20"
40
- },
41
- "capacity": {
42
- "cpu": "2",
43
- "memory": "8175296Ki",
44
- "pods": "20"
45
- },
46
- "conditions": [
47
- {
48
- "lastHeartbeatTime": "2017-12-15T00:36:13Z",
49
- "lastTransitionTime": "2017-12-11T12:00:13Z",
50
- "message": "kubelet has sufficient disk space available",
51
- "reason": "KubeletHasSufficientDisk",
52
- "status": "False",
53
- "type": "OutOfDisk"
54
- },
55
- {
56
- "lastHeartbeatTime": "2017-12-15T00:36:13Z",
57
- "lastTransitionTime": "2017-12-11T12:00:13Z",
58
- "message": "kubelet has sufficient memory available",
59
- "reason": "KubeletHasSufficientMemory",
60
- "status": "False",
61
- "type": "MemoryPressure"
62
- },
63
- {
64
- "lastHeartbeatTime": "2017-12-15T00:36:13Z",
65
- "lastTransitionTime": "2017-12-11T12:00:13Z",
66
- "message": "kubelet has no disk pressure",
67
- "reason": "KubeletHasNoDiskPressure",
68
- "status": "False",
69
- "type": "DiskPressure"
70
- },
71
- {
72
- "lastHeartbeatTime": "2017-12-15T00:36:13Z",
73
- "lastTransitionTime": "2017-12-14T15:43:39Z",
74
- "message": "kubelet is posting ready status",
75
- "reason": "KubeletReady",
76
- "status": "True",
77
- "type": "Ready"
78
- }
79
- ],
80
- "daemonEndpoints": {
81
- "kubeletEndpoint": {
82
- "Port": 10250
83
- }
84
- },
85
- "images": [
86
- {
87
- "names": [
88
- "docker.io/openshift/origin@sha256:908c6c9ccf0e0feefe2658899656c6e73d2854777fa340738fb903f0a40c328d",
89
- "docker.io/openshift/origin:latest"
90
- ],
91
- "sizeBytes": 1222636603
92
- },
93
- {
94
- "names": [
95
- "docker.io/openshift/origin-deployer@sha256:3d324bce1870047edc418041cefdec88e0a5bbb5b3b9f6fd35b43f14919a656c",
96
- "docker.io/openshift/origin-deployer:v3.7.0"
97
- ],
98
- "sizeBytes": 1098951248
99
- },
100
- {
101
- "names": [
102
- "docker.io/cockpit/kubernetes@sha256:a8e58cd5e6f5a4d12d1e2dfd339686b74f3c22586952ca7aa184dc254ab49714",
103
- "docker.io/cockpit/kubernetes:latest"
104
- ],
105
- "sizeBytes": 375926556
106
- },
107
- {
108
- "names": [
109
- "docker.io/cockpit/kubernetes@sha256:0745b3823efc57e03a5ef378614dfcb6c2b1e3964220bbf908fb3046a91cef70"
110
- ],
111
- "sizeBytes": 350062743
112
- },
113
- {
114
- "names": [
115
- "docker.io/openshift/origin-service-catalog@sha256:ef851e06276af96838a93320d0e4be51cc8de6e5afb2fb0efd4e56cec114b937"
116
- ],
117
- "sizeBytes": 284732029
118
- },
119
- {
120
- "names": [
121
- "docker.io/openshift/origin-service-catalog@sha256:8addfd742d92d8da819b091d6bda40edc45e88d1446ffd1ad658b6d21b3c36fd"
122
- ],
123
- "sizeBytes": 284731998
124
- },
125
- {
126
- "names": [
127
- "docker.io/openshift/origin-service-catalog@sha256:b3a737cc346b3cae85ef2f5d020b607781a1cac38fe70678cb78fee2c2a3bf8a"
128
- ],
129
- "sizeBytes": 284731943
130
- },
131
- {
132
- "names": [
133
- "docker.io/openshift/origin-service-catalog@sha256:957934537721da33362693d4f1590dc79dc5da7438799bf14d645165768e53ef",
134
- "docker.io/openshift/origin-service-catalog:latest"
135
- ],
136
- "sizeBytes": 283929631
137
- },
138
- {
139
- "names": [
140
- "docker.io/openshift/origin-pod@sha256:2c257d83a01607b229ef5e3dca09f52c3a2a2788c09dc33f0444ec4e572a9e1d",
141
- "docker.io/openshift/origin-pod:v3.7.0"
142
- ],
143
- "sizeBytes": 218423400
144
- }
145
- ],
146
- "nodeInfo": {
147
- "architecture": "amd64",
148
- "bootID": "75be791d-88a2-4f56-a588-c071a80bf7cf",
149
- "containerRuntimeVersion": "docker://1.12.6",
150
- "kernelVersion": "3.10.0-693.11.1.el7.x86_64",
151
- "kubeProxyVersion": "v1.7.6+a08f5eeb62",
152
- "kubeletVersion": "v1.7.6+a08f5eeb62",
153
- "machineID": "adf09ffc2de2624aa5ed335727c7400d",
154
- "operatingSystem": "linux",
155
- "osImage": "CentOS Linux 7 (Core)",
156
- "systemUUID": "FC9FF0AD-E22D-4A62-A5ED-335727C7400D"
157
- }
158
- }
159
- }
160
- }
@@ -1,37 +0,0 @@
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
- }
@@ -1,32 +0,0 @@
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
- }
@@ -1,40 +0,0 @@
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
- }