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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MWI1YmQyNDljZGFkNzA1YzgyZjE3ODk3NGI1ZTNkMGI3ZWNjYmJlZQ==
4
+ NjNjZWFmODFkZjQxMGNjNWNlYTAxNTZmNWM2NDNkM2E2NjcxNDgwNQ==
5
5
  data.tar.gz: !binary |-
6
- NWZkNGUxOTZlMjQ5MmUxZDllMjhkYTI0NmI2YmM4ZDdiZGNjZjFlYQ==
6
+ NThhYjA4Y2Y4YTk3MGY3ZTlkMDM4M2QxZTU5ODRlNmY3NzdjMWI1ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YjY0M2MwNmI0MGQzYWQzODdhMWU1ZDNjOTBiODliNThiMTdjMWY4NmQxYTll
10
- OWI1N2MzMjFmMDk5ZWI4Y2FhYWZjOTIwOGMzYjQ0N2UxZDZlZThmZjM3NmJh
11
- M2M0YTUwY2M1ZTIxOGQ1NTdlOTE0M2NmYjkwY2IzYzNhOWNhNDg=
9
+ YWUyMWMxMzU3NmQ0NDI1OGE0ZjM5NzJlZDFkMzMxMDg2MzNjNGMyNjY0ZTA4
10
+ MzJiZjliODc1NjIzODA4NjQ0YzU5ZTRjNzhkMTgzMmVhNzg4ZDRhMjNhMzBm
11
+ MDhmZDRhMTJmZmMxZWM3YTE0YjU5Y2ZkNWEzYWJmMzUxZDIwNTQ=
12
12
  data.tar.gz: !binary |-
13
- NDVlNzM4MDRmZDM5ZDc0NWQwNDlkNWFmYmU3YjBkZDcyZWZlNjk5ZmM0MDRi
14
- ZjFjZDk1ODA4ZDNkNzJkNDBmMmE4NjU1NjFjMGI1MjgyNDYxNGRhMzUwZjUx
15
- ZTZhMTM3NmU0MGQzM2Q0NDIxNzAzNDIwNmI3NjI2ZWY5ZDU0NDQ=
13
+ YTQ3ZGMyMDgxMDE0OWJhNTdlZjJjMmRhMDdjNDdiMThhZGYxZjc3MjA4YWZj
14
+ MDE5YTYzYjllNTIwNWZlMDQ5NDI4YjU1NmU2ODdjMTEzNzM1YjkwNTViOTg3
15
+ MGY4NTBjM2M4ODVhMWU5MDNhM2RhYWUzNzU5OWVhMmRkMTZhMTA=
@@ -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, method_name)
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, "underscore")) }
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, "underscore")
68
+ create_entity(result, entity)
67
69
  end
68
70
 
69
71
  define_method("delete_#{entity.underscore}") do |id|
@@ -1,3 +1,3 @@
1
1
  module Kubeclient
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kubeclient
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas