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,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
-
@@ -1,69 +0,0 @@
1
- {
2
- "kind": "APIResourceList",
3
- "apiVersion": "v1",
4
- "groupVersion": "security.openshift.io/v1",
5
- "resources": [
6
- {
7
- "name": "podsecuritypolicyreviews",
8
- "singularName": "",
9
- "namespaced": true,
10
- "kind": "PodSecurityPolicyReview",
11
- "verbs": [
12
- "create"
13
- ]
14
- },
15
- {
16
- "name": "podsecuritypolicyselfsubjectreviews",
17
- "singularName": "",
18
- "namespaced": true,
19
- "kind": "PodSecurityPolicySelfSubjectReview",
20
- "verbs": [
21
- "create"
22
- ]
23
- },
24
- {
25
- "name": "podsecuritypolicysubjectreviews",
26
- "singularName": "",
27
- "namespaced": true,
28
- "kind": "PodSecurityPolicySubjectReview",
29
- "verbs": [
30
- "create"
31
- ]
32
- },
33
- {
34
- "name": "rangeallocations",
35
- "singularName": "",
36
- "namespaced": false,
37
- "kind": "RangeAllocation",
38
- "verbs": [
39
- "create",
40
- "delete",
41
- "deletecollection",
42
- "get",
43
- "list",
44
- "patch",
45
- "update",
46
- "watch"
47
- ]
48
- },
49
- {
50
- "name": "securitycontextconstraints",
51
- "singularName": "",
52
- "namespaced": false,
53
- "kind": "SecurityContextConstraints",
54
- "verbs": [
55
- "create",
56
- "delete",
57
- "deletecollection",
58
- "get",
59
- "list",
60
- "patch",
61
- "update",
62
- "watch"
63
- ],
64
- "shortNames": [
65
- "scc"
66
- ]
67
- }
68
- ]
69
- }