kubeclient 0.1.5 → 0.1.6
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 +4 -4
- data/lib/kubeclient.rb +10 -7
- data/lib/kubeclient/version.rb +1 -1
- data/lib/kubeclient/{watch.rb → watch_notice.rb} +0 -0
- data/test/namespace_test.rb +0 -1
- data/test/node_test.rb +0 -1
- data/test/pod_test.rb +0 -1
- data/test/replication_controller_test.rb +0 -1
- data/test/service_test.rb +0 -1
- data/test/watch_test.rb +0 -1
- metadata +3 -10
- data/lib/kubeclient/endpoint.rb +0 -4
- data/lib/kubeclient/event.rb +0 -4
- data/lib/kubeclient/namespace.rb +0 -4
- data/lib/kubeclient/node.rb +0 -4
- data/lib/kubeclient/pod.rb +0 -4
- data/lib/kubeclient/replication_controller.rb +0 -4
- data/lib/kubeclient/service.rb +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9172bf5d56e7437d23e93ba1e6280af446e87282
|
4
|
+
data.tar.gz: 271517b25926b62222e193e3d722f18a24e1df6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dca5eb07416265317c30e4e2e35578bdb1d2dc7ea2971df475e295b685dc935e82ea643fdfa503b0d3f30fb0dc9ce0f1983f1bdbe59c912fc097680de52e560
|
7
|
+
data.tar.gz: 5bdc07a1ed661cb51c5cdf37ef7e410416f44a319707654660d639ab64b1d5c462d483ae4f0152471a9e7be08b11a3151761238cb66b346635f3d9be4a6202a2
|
data/lib/kubeclient.rb
CHANGED
@@ -2,15 +2,9 @@ require 'kubeclient/version'
|
|
2
2
|
require 'json'
|
3
3
|
require 'rest-client'
|
4
4
|
require 'active_support/inflector'
|
5
|
-
require 'kubeclient/event'
|
6
|
-
require 'kubeclient/pod'
|
7
|
-
require 'kubeclient/node'
|
8
|
-
require 'kubeclient/service'
|
9
|
-
require 'kubeclient/replication_controller'
|
10
|
-
require 'kubeclient/endpoint'
|
11
5
|
require 'kubeclient/entity_list'
|
12
6
|
require 'kubeclient/kube_exception'
|
13
|
-
require 'kubeclient/
|
7
|
+
require 'kubeclient/watch_notice'
|
14
8
|
require 'kubeclient/watch_stream'
|
15
9
|
|
16
10
|
module Kubeclient
|
@@ -21,6 +15,15 @@ module Kubeclient
|
|
21
15
|
ENTITY_TYPES = %w(Pod Service ReplicationController Node Event Endpoint
|
22
16
|
Namespace)
|
23
17
|
|
18
|
+
# Dynamically creating classes definitions (class Pod, class Service, etc.),
|
19
|
+
# The classes are extending RecursiveOpenStruct.
|
20
|
+
# This cancels the need to define the classes
|
21
|
+
# manually on every new entity addition,
|
22
|
+
# and especially since currently the class body is empty
|
23
|
+
ENTITY_TYPES.each do |entity_type|
|
24
|
+
Object.const_set(entity_type, Class.new(RecursiveOpenStruct))
|
25
|
+
end
|
26
|
+
|
24
27
|
def initialize(uri, version)
|
25
28
|
@api_endpoint = (uri.is_a? URI) ? uri : URI.parse(uri)
|
26
29
|
@api_endpoint.merge!(File.join(@api_endpoint.path, version))
|
data/lib/kubeclient/version.rb
CHANGED
File without changes
|
data/test/namespace_test.rb
CHANGED
data/test/node_test.rb
CHANGED
data/test/pod_test.rb
CHANGED
data/test/service_test.rb
CHANGED
data/test/watch_test.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.1.
|
4
|
+
version: 0.1.6
|
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-03-
|
11
|
+
date: 2015-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -152,17 +152,10 @@ files:
|
|
152
152
|
- Rakefile
|
153
153
|
- kubeclient.gemspec
|
154
154
|
- lib/kubeclient.rb
|
155
|
-
- lib/kubeclient/endpoint.rb
|
156
155
|
- lib/kubeclient/entity_list.rb
|
157
|
-
- lib/kubeclient/event.rb
|
158
156
|
- lib/kubeclient/kube_exception.rb
|
159
|
-
- lib/kubeclient/namespace.rb
|
160
|
-
- lib/kubeclient/node.rb
|
161
|
-
- lib/kubeclient/pod.rb
|
162
|
-
- lib/kubeclient/replication_controller.rb
|
163
|
-
- lib/kubeclient/service.rb
|
164
157
|
- lib/kubeclient/version.rb
|
165
|
-
- lib/kubeclient/
|
158
|
+
- lib/kubeclient/watch_notice.rb
|
166
159
|
- lib/kubeclient/watch_stream.rb
|
167
160
|
- test/json/endpoint_list_b3.json
|
168
161
|
- test/json/entity_list_b1.json
|
data/lib/kubeclient/endpoint.rb
DELETED
data/lib/kubeclient/event.rb
DELETED
data/lib/kubeclient/namespace.rb
DELETED
data/lib/kubeclient/node.rb
DELETED
data/lib/kubeclient/pod.rb
DELETED
data/lib/kubeclient/service.rb
DELETED