kubeclient 4.6.0 → 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 (116) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/actions.yml +35 -0
  3. data/CHANGELOG.md +37 -0
  4. data/README.md +155 -37
  5. data/RELEASING.md +3 -1
  6. data/kubeclient.gemspec +5 -4
  7. data/lib/kubeclient.rb +1 -1
  8. data/lib/kubeclient/common.rb +35 -6
  9. data/lib/kubeclient/config.rb +17 -4
  10. data/lib/kubeclient/exec_credentials.rb +33 -4
  11. data/lib/kubeclient/google_application_default_credentials.rb +6 -1
  12. data/lib/kubeclient/version.rb +1 -1
  13. metadata +13 -217
  14. data/.travis.yml +0 -26
  15. data/test/cassettes/kubernetes_guestbook.yml +0 -879
  16. data/test/config/allinone.kubeconfig +0 -20
  17. data/test/config/execauth.kubeconfig +0 -62
  18. data/test/config/external-ca.pem +0 -18
  19. data/test/config/external-cert.pem +0 -19
  20. data/test/config/external-key.rsa +0 -27
  21. data/test/config/external.kubeconfig +0 -20
  22. data/test/config/gcpauth.kubeconfig +0 -22
  23. data/test/config/gcpcmdauth.kubeconfig +0 -26
  24. data/test/config/nouser.kubeconfig +0 -16
  25. data/test/config/oidcauth.kubeconfig +0 -25
  26. data/test/config/timestamps.kubeconfig +0 -25
  27. data/test/config/userauth.kubeconfig +0 -28
  28. data/test/json/bindings_list.json +0 -10
  29. data/test/json/component_status.json +0 -17
  30. data/test/json/component_status_list.json +0 -52
  31. data/test/json/config.istio.io_api_resource_list.json +0 -679
  32. data/test/json/config_map_list.json +0 -9
  33. data/test/json/core_api_resource_list.json +0 -181
  34. data/test/json/core_api_resource_list_without_kind.json +0 -129
  35. data/test/json/core_oapi_resource_list_without_kind.json +0 -197
  36. data/test/json/created_endpoint.json +0 -28
  37. data/test/json/created_namespace.json +0 -20
  38. data/test/json/created_secret.json +0 -16
  39. data/test/json/created_security_context_constraint.json +0 -65
  40. data/test/json/created_service.json +0 -31
  41. data/test/json/empty_pod_list.json +0 -9
  42. data/test/json/endpoint_list.json +0 -48
  43. data/test/json/entity_list.json +0 -56
  44. data/test/json/event_list.json +0 -35
  45. data/test/json/extensions_v1beta1_api_resource_list.json +0 -217
  46. data/test/json/limit_range.json +0 -23
  47. data/test/json/limit_range_list.json +0 -31
  48. data/test/json/namespace.json +0 -13
  49. data/test/json/namespace_exception.json +0 -8
  50. data/test/json/namespace_list.json +0 -32
  51. data/test/json/node.json +0 -29
  52. data/test/json/node_list.json +0 -37
  53. data/test/json/node_notice.json +0 -160
  54. data/test/json/persistent_volume.json +0 -37
  55. data/test/json/persistent_volume_claim.json +0 -32
  56. data/test/json/persistent_volume_claim_list.json +0 -40
  57. data/test/json/persistent_volume_claims_nil_items.json +0 -8
  58. data/test/json/persistent_volume_list.json +0 -45
  59. data/test/json/pod.json +0 -92
  60. data/test/json/pod_list.json +0 -79
  61. data/test/json/pod_template_list.json +0 -9
  62. data/test/json/pods_1.json +0 -265
  63. data/test/json/pods_2.json +0 -102
  64. data/test/json/pods_410.json +0 -9
  65. data/test/json/processed_template.json +0 -27
  66. data/test/json/replication_controller.json +0 -57
  67. data/test/json/replication_controller_list.json +0 -66
  68. data/test/json/resource_quota.json +0 -46
  69. data/test/json/resource_quota_list.json +0 -54
  70. data/test/json/secret_list.json +0 -44
  71. data/test/json/security.openshift.io_api_resource_list.json +0 -69
  72. data/test/json/security_context_constraint_list.json +0 -375
  73. data/test/json/service.json +0 -33
  74. data/test/json/service_account.json +0 -25
  75. data/test/json/service_account_list.json +0 -82
  76. data/test/json/service_illegal_json_404.json +0 -1
  77. data/test/json/service_json_patch.json +0 -26
  78. data/test/json/service_list.json +0 -97
  79. data/test/json/service_merge_patch.json +0 -26
  80. data/test/json/service_patch.json +0 -25
  81. data/test/json/service_update.json +0 -22
  82. data/test/json/template.json +0 -27
  83. data/test/json/template.openshift.io_api_resource_list.json +0 -75
  84. data/test/json/template_list.json +0 -35
  85. data/test/json/versions_list.json +0 -6
  86. data/test/json/watch_stream.json +0 -3
  87. data/test/test_common.rb +0 -95
  88. data/test/test_component_status.rb +0 -29
  89. data/test/test_config.rb +0 -222
  90. data/test/test_endpoint.rb +0 -54
  91. data/test/test_exec_credentials.rb +0 -125
  92. data/test/test_gcp_command_credentials.rb +0 -27
  93. data/test/test_google_application_default_credentials.rb +0 -15
  94. data/test/test_guestbook_go.rb +0 -235
  95. data/test/test_helper.rb +0 -18
  96. data/test/test_kubeclient.rb +0 -881
  97. data/test/test_limit_range.rb +0 -25
  98. data/test/test_missing_methods.rb +0 -80
  99. data/test/test_namespace.rb +0 -59
  100. data/test/test_node.rb +0 -70
  101. data/test/test_oidc_auth_provider.rb +0 -103
  102. data/test/test_persistent_volume.rb +0 -29
  103. data/test/test_persistent_volume_claim.rb +0 -28
  104. data/test/test_pod.rb +0 -81
  105. data/test/test_pod_log.rb +0 -157
  106. data/test/test_process_template.rb +0 -80
  107. data/test/test_replication_controller.rb +0 -47
  108. data/test/test_resource_list_without_kind.rb +0 -78
  109. data/test/test_resource_quota.rb +0 -23
  110. data/test/test_secret.rb +0 -62
  111. data/test/test_security_context_constraint.rb +0 -62
  112. data/test/test_service.rb +0 -330
  113. data/test/test_service_account.rb +0 -26
  114. data/test/test_watch.rb +0 -195
  115. data/test/txt/pod_log.txt +0 -6
  116. data/test/valid_token_file +0 -1
@@ -1,28 +0,0 @@
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
- }
@@ -1,20 +0,0 @@
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
-
@@ -1,16 +0,0 @@
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
- }
@@ -1,65 +0,0 @@
1
- {
2
- "allowHostDirVolumePlugin": false,
3
- "allowHostIPC": false,
4
- "allowHostNetwork": false,
5
- "allowHostPID": false,
6
- "allowHostPorts": false,
7
- "allowPrivilegedContainer": false,
8
- "allowedCapabilities": null,
9
- "allowedFlexVolumes": null,
10
- "apiVersion": "security.openshift.io/v1",
11
- "defaultAddCapabilities": null,
12
- "fsGroup": {
13
- "type": "RunAsAny"
14
- },
15
- "groups": [],
16
- "kind": "SecurityContextConstraints",
17
- "metadata": {
18
- "creationTimestamp": "2018-11-23T10:01:42Z",
19
- "name": "teleportation",
20
- "resourceVersion": "5274",
21
- "selfLink": "/apis/security.openshift.io/v1/securitycontextconstraints/teleportation",
22
- "uid": "c6e8e2ec-ef06-11e8-b4c0-68f728fac3ab"
23
- },
24
- "priority": null,
25
- "readOnlyRootFilesystem": false,
26
- "requiredDropCapabilities": null,
27
- "runAsUser": {
28
- "type": "MustRunAs"
29
- },
30
- "seLinuxContext": {
31
- "type": "MustRunAs"
32
- },
33
- "supplementalGroups": {
34
- "type": "RunAsAny"
35
- },
36
- "users": [],
37
- "volumes": [
38
- "awsElasticBlockStore",
39
- "azureDisk",
40
- "azureFile",
41
- "cephFS",
42
- "cinder",
43
- "configMap",
44
- "downwardAPI",
45
- "emptyDir",
46
- "fc",
47
- "flexVolume",
48
- "flocker",
49
- "gcePersistentDisk",
50
- "gitRepo",
51
- "glusterfs",
52
- "iscsi",
53
- "nfs",
54
- "persistentVolumeClaim",
55
- "photonPersistentDisk",
56
- "portworxVolume",
57
- "projected",
58
- "quobyte",
59
- "rbd",
60
- "scaleIO",
61
- "secret",
62
- "storageOS",
63
- "vsphere"
64
- ]
65
- }
@@ -1,31 +0,0 @@
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
- }
@@ -1,9 +0,0 @@
1
- {
2
- "kind": "PodList",
3
- "apiVersion": "v1",
4
- "metadata": {
5
- "selfLink": "/api/v1/pods",
6
- "resourceVersion": "565"
7
- },
8
- "items": []
9
- }
@@ -1,48 +0,0 @@
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
- }
@@ -1,56 +0,0 @@
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
- }
@@ -1,35 +0,0 @@
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
- }
@@ -1,217 +0,0 @@
1
- {
2
- "kind": "APIResourceList",
3
- "groupVersion": "extensions/v1beta1",
4
- "resources": [
5
- {
6
- "name": "daemonsets",
7
- "singularName": "",
8
- "namespaced": true,
9
- "kind": "DaemonSet",
10
- "verbs": [
11
- "create",
12
- "delete",
13
- "deletecollection",
14
- "get",
15
- "list",
16
- "patch",
17
- "update",
18
- "watch"
19
- ],
20
- "shortNames": [
21
- "ds"
22
- ]
23
- },
24
- {
25
- "name": "daemonsets/status",
26
- "singularName": "",
27
- "namespaced": true,
28
- "kind": "DaemonSet",
29
- "verbs": [
30
- "get",
31
- "patch",
32
- "update"
33
- ]
34
- },
35
- {
36
- "name": "deployments",
37
- "singularName": "",
38
- "namespaced": true,
39
- "kind": "Deployment",
40
- "verbs": [
41
- "create",
42
- "delete",
43
- "deletecollection",
44
- "get",
45
- "list",
46
- "patch",
47
- "update",
48
- "watch"
49
- ],
50
- "shortNames": [
51
- "deploy"
52
- ]
53
- },
54
- {
55
- "name": "deployments/rollback",
56
- "singularName": "",
57
- "namespaced": true,
58
- "kind": "DeploymentRollback",
59
- "verbs": [
60
- "create"
61
- ]
62
- },
63
- {
64
- "name": "deployments/scale",
65
- "singularName": "",
66
- "namespaced": true,
67
- "group": "extensions",
68
- "version": "v1beta1",
69
- "kind": "Scale",
70
- "verbs": [
71
- "get",
72
- "patch",
73
- "update"
74
- ]
75
- },
76
- {
77
- "name": "deployments/status",
78
- "singularName": "",
79
- "namespaced": true,
80
- "kind": "Deployment",
81
- "verbs": [
82
- "get",
83
- "patch",
84
- "update"
85
- ]
86
- },
87
- {
88
- "name": "ingresses",
89
- "singularName": "",
90
- "namespaced": true,
91
- "kind": "Ingress",
92
- "verbs": [
93
- "create",
94
- "delete",
95
- "deletecollection",
96
- "get",
97
- "list",
98
- "patch",
99
- "update",
100
- "watch"
101
- ],
102
- "shortNames": [
103
- "ing"
104
- ]
105
- },
106
- {
107
- "name": "ingresses/status",
108
- "singularName": "",
109
- "namespaced": true,
110
- "kind": "Ingress",
111
- "verbs": [
112
- "get",
113
- "patch",
114
- "update"
115
- ]
116
- },
117
- {
118
- "name": "networkpolicies",
119
- "singularName": "",
120
- "namespaced": true,
121
- "kind": "NetworkPolicy",
122
- "verbs": [
123
- "create",
124
- "delete",
125
- "deletecollection",
126
- "get",
127
- "list",
128
- "patch",
129
- "update",
130
- "watch"
131
- ],
132
- "shortNames": [
133
- "netpol"
134
- ]
135
- },
136
- {
137
- "name": "podsecuritypolicies",
138
- "singularName": "",
139
- "namespaced": false,
140
- "kind": "PodSecurityPolicy",
141
- "verbs": [
142
- "create",
143
- "delete",
144
- "deletecollection",
145
- "get",
146
- "list",
147
- "patch",
148
- "update",
149
- "watch"
150
- ],
151
- "shortNames": [
152
- "psp"
153
- ]
154
- },
155
- {
156
- "name": "replicasets",
157
- "singularName": "",
158
- "namespaced": true,
159
- "kind": "ReplicaSet",
160
- "verbs": [
161
- "create",
162
- "delete",
163
- "deletecollection",
164
- "get",
165
- "list",
166
- "patch",
167
- "update",
168
- "watch"
169
- ],
170
- "shortNames": [
171
- "rs"
172
- ]
173
- },
174
- {
175
- "name": "replicasets/scale",
176
- "singularName": "",
177
- "namespaced": true,
178
- "group": "extensions",
179
- "version": "v1beta1",
180
- "kind": "Scale",
181
- "verbs": [
182
- "get",
183
- "patch",
184
- "update"
185
- ]
186
- },
187
- {
188
- "name": "replicasets/status",
189
- "singularName": "",
190
- "namespaced": true,
191
- "kind": "ReplicaSet",
192
- "verbs": [
193
- "get",
194
- "patch",
195
- "update"
196
- ]
197
- },
198
- {
199
- "name": "replicationcontrollers",
200
- "singularName": "",
201
- "namespaced": true,
202
- "kind": "ReplicationControllerDummy",
203
- "verbs": []
204
- },
205
- {
206
- "name": "replicationcontrollers/scale",
207
- "singularName": "",
208
- "namespaced": true,
209
- "kind": "Scale",
210
- "verbs": [
211
- "get",
212
- "patch",
213
- "update"
214
- ]
215
- }
216
- ]
217
- }