kubeclient 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of kubeclient might be problematic. Click here for more details.
- checksums.yaml +8 -8
- data/README.md +7 -2
- data/lib/kubeclient.rb +3 -2
- data/lib/kubeclient/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmU2NTVjYTgwYmZhYTZjMmYzYzAyYjkxY2RiMDI1ZGFlNDk3MmJhOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzFhNmU3ZGJkMjY2NWU5ZWIyODUxNTk4ZDJiYjhmYjc0ZjY1MGUzMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OWNhMmM5NjE2MDk2MTRmOWE1MzMzNjVmODczNmQxNDk4Zjc1NzM2MTZkMjY5
|
10
|
+
NTQ3MTk5MzIzMTFiZmZhODMzZWQwNWNmOGMwYTM0YWNlMTc3YmNiMjk4Yzk4
|
11
|
+
ZGQxMTk0MzEwMTExYTgwYzgyY2Q3Y2E5NmMyNGQ5NzA5NjYzNjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2Q5NTkwMDE1MzlkY2VjZGVjMDNiMjI3NDQ4NzZiNzQ4NTQ2ODY2Y2UxYWIw
|
14
|
+
M2NhZjQ5NTY1NzY4YWRkMjY5ZjE0ZTEyOTUxZWEzNWI5ODM1ZmRhYmQ2Zjk4
|
15
|
+
Y2VjMWJkYjhkZjU5ZjI2NDMwZWUwMWZmZTQ5NTFhZDk4ZTVlZmU=
|
data/README.md
CHANGED
@@ -63,11 +63,16 @@ Input parameter - object of type Service, Pod, ReplicationController
|
|
63
63
|
`service.selector.name = "redis"`<br>
|
64
64
|
`service.selector.role = "master"`<br>
|
65
65
|
`client.create_service service`<br>
|
66
|
-
|
66
|
+
<br>
|
67
67
|
|
68
68
|
5. Update entity (update pod, service, replication controller) <br>
|
69
69
|
Input parameter - object of type Service, Pod, ReplicationController <br>
|
70
|
-
`client.update_service
|
70
|
+
`client.update_service service1`
|
71
|
+
<br>
|
72
|
+
|
73
|
+
6. Get all entities - Returns a hash with 4 keys (node, service,pod, replication_controller). Each key points to an EntityList of same type. This method
|
74
|
+
is a convenience method instead of calling each entity's get method separately. <br>
|
75
|
+
`client.get_all_entities`
|
71
76
|
|
72
77
|
## Contributing
|
73
78
|
|
data/lib/kubeclient.rb
CHANGED
@@ -22,8 +22,9 @@ module Kubeclient
|
|
22
22
|
@api_endpoint = api_endpoint+version
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
private
|
26
26
|
def rest_client
|
27
|
+
#todo should a new one be created for every request?
|
27
28
|
RestClient::Resource.new(@api_endpoint)
|
28
29
|
end
|
29
30
|
|
@@ -132,7 +133,7 @@ module Kubeclient
|
|
132
133
|
def get_all_entities
|
133
134
|
result_hash = {}
|
134
135
|
ENTITIES.each do |entity|
|
135
|
-
#
|
136
|
+
# method call for get each entities
|
136
137
|
# build hash of entity name to array of the entities
|
137
138
|
method_name = "get_#{entity.underscore.pluralize}"
|
138
139
|
key_name = entity.underscore
|
data/lib/kubeclient/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubeclient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alissa Bonas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|