kubeclient 0.1.2 → 0.1.3
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 +4 -4
- data/lib/kubeclient.rb +1 -3
- data/lib/kubeclient/version.rb +1 -1
- data/test/kubeclient_test.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca55a9d279694fdfe302e2c0ed579b0d861a4e30
|
4
|
+
data.tar.gz: 20451ff5f5f26f4faac84bdc25a1593fb665c275
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e881043d6da7b76e7e649af1e69c463f1c367c78329d674fc498ac6030424a7a6258940b5a0932981d2bd20812946c5511022a8946bf3049d7d0045a34f5287
|
7
|
+
data.tar.gz: c86dde3beaa0b4cf0418a36177586cc342cfc28fd6ad6a198ae4098efd95873d21f00dbfa64bd62243c47e1fffd916b2ad1aaf733ba58980fd4eed867487998d
|
data/lib/kubeclient.rb
CHANGED
@@ -128,9 +128,7 @@ module Kubeclient
|
|
128
128
|
|
129
129
|
public
|
130
130
|
|
131
|
-
|
132
|
-
# rubocop:disable Style/AccessorMethodName
|
133
|
-
def get_all_entities
|
131
|
+
def all_entities
|
134
132
|
ENTITIES.each_with_object({}) do |entity, result_hash|
|
135
133
|
# method call for get each entities
|
136
134
|
# build hash of entity name to array of the entities
|
data/lib/kubeclient/version.rb
CHANGED
data/test/kubeclient_test.rb
CHANGED
@@ -82,7 +82,7 @@ class KubeClientTest < MiniTest::Test
|
|
82
82
|
.to_return(body: open_test_json_file('event_list_b3.json'), status: 200)
|
83
83
|
|
84
84
|
client = Kubeclient::Client.new 'http://localhost:8080/api/', 'v1beta1'
|
85
|
-
result = client.
|
85
|
+
result = client.all_entities
|
86
86
|
assert_equal(5, result.keys.size)
|
87
87
|
assert_instance_of(EntityList, result['node'])
|
88
88
|
assert_instance_of(EntityList, result['service'])
|