kubeclient 0.0.8 → 0.0.9
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.
- checksums.yaml +8 -8
- data/lib/kubeclient.rb +5 -3
- data/lib/kubeclient/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NjNjZWFmODFkZjQxMGNjNWNlYTAxNTZmNWM2NDNkM2E2NjcxNDgwNQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NThhYjA4Y2Y4YTk3MGY3ZTlkMDM4M2QxZTU5ODRlNmY3NzdjMWI1ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YWUyMWMxMzU3NmQ0NDI1OGE0ZjM5NzJlZDFkMzMxMDg2MzNjNGMyNjY0ZTA4
|
10
|
+
MzJiZjliODc1NjIzODA4NjQ0YzU5ZTRjNzhkMTgzMmVhNzg4ZDRhMjNhMzBm
|
11
|
+
MDhmZDRhMTJmZmMxZWM3YTE0YjU5Y2ZkNWEzYWJmMzUxZDIwNTQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTQ3ZGMyMDgxMDE0OWJhNTdlZjJjMmRhMDdjNDdiMThhZGYxZjc3MjA4YWZj
|
14
|
+
MDE5YTYzYjllNTIwNWZlMDQ5NDI4YjU1NmU2ODdjMTEzNzM1YjkwNTViOTg3
|
15
|
+
MGY4NTBjM2M4ODVhMWU5MDNhM2RhYWUzNzU5OWVhMmRkMTZhMTA=
|
data/lib/kubeclient.rb
CHANGED
@@ -20,6 +20,8 @@ module Kubeclient
|
|
20
20
|
api_endpoint = api_endpoint + "/"
|
21
21
|
end
|
22
22
|
@api_endpoint = api_endpoint+version
|
23
|
+
#version flag is needed to take care of the differences between versions
|
24
|
+
@api_version = version
|
23
25
|
end
|
24
26
|
|
25
27
|
private
|
@@ -29,7 +31,7 @@ module Kubeclient
|
|
29
31
|
end
|
30
32
|
|
31
33
|
protected
|
32
|
-
def create_entity(hash, entity
|
34
|
+
def create_entity(hash, entity)
|
33
35
|
entity.classify.constantize.new(hash)
|
34
36
|
end
|
35
37
|
|
@@ -50,7 +52,7 @@ module Kubeclient
|
|
50
52
|
end
|
51
53
|
result = JSON.parse(response)
|
52
54
|
collection = EntityList.new(entity,result["resourceVersion"])
|
53
|
-
result["items"].each { |item | collection.push(create_entity(item, entity
|
55
|
+
result["items"].each { |item | collection.push(create_entity(item, entity)) }
|
54
56
|
collection
|
55
57
|
end
|
56
58
|
|
@@ -63,7 +65,7 @@ module Kubeclient
|
|
63
65
|
raise exception
|
64
66
|
end
|
65
67
|
result = JSON.parse(response)
|
66
|
-
create_entity(result, entity
|
68
|
+
create_entity(result, entity)
|
67
69
|
end
|
68
70
|
|
69
71
|
define_method("delete_#{entity.underscore}") do |id|
|
data/lib/kubeclient/version.rb
CHANGED