kubeclient 0.1.0 → 0.1.1

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
- ZTU4ZWFlNzhiODQ2M2ViM2JiNjJhOGYyMWUzMDVmZGI1MzU1ZjcxYw==
4
+ MGQ5MGYzNzY1NzNiZGYyYTVkN2JjNmM3ZTIxNDNjMDc4ZjEwYTNkYQ==
5
5
  data.tar.gz: !binary |-
6
- Nzg4ZTc2OTlhOGVjZTZjN2MzYWU1ZWZlYTZhMmU5MDQwNTM3MDI2NA==
6
+ MDkzZTkyYzhlNzViMDdiYmFlMjRjNTM4YmRkNjViYWYyNTZjNzNmMA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDE4OTkyNmE4NjIwMDVjM2QyOGI3YmE4MTU0ODllMDFlZTU4NGMyNzA3OWY2
10
- N2EzMGY3OGZhNGQ4MTk1OWM2NDY5MWNhMWRlY2E4MTNjZjQ4NmI3NjVjMWJi
11
- OTliYjZlZGUyMWU1MDQzNWY2MGRlMjI1Y2RhMGE1NDBiMWQzYzk=
9
+ MzcwYjI4NTFkMTFlOTMyMDljYTAzYWFhNTI4ZGMwNTg3ZWY5ZDY1MDgxNjBh
10
+ ZjZhNmM0ZmIwYWM5NDVkZjA3MzAyNjNhNDkwY2RhYmJmMTc2ZGY5OGM5NjQ1
11
+ ZjJiODA4ODg3YjZiOTIzODU2YzgxMjgxM2M0YmY1ZmY1YjgyZmM=
12
12
  data.tar.gz: !binary |-
13
- YWE1OGYzYTdjNTYyYzAxMDNmOTk0YTdmNzA5NGE0OGYwODI2MGZkMGVjYTgx
14
- YTI0OGEzM2QxNmRhMTA0OWY5OTZkMjU0OWZmMjY4NDAyMzI0N2EzZGZmZDUw
15
- OTBjOGNjZjAxYjdmMmU1NjY1NjU5YTYzYjQ4NWU5ZWMyNWZlMzY=
13
+ ZmFjNzNjYTc3OGUwYWU1NGRmNzRhNjIxOWZjMmVkZTVhZDAzYzg1YTI3MjZl
14
+ ZTRkNTcxYTk4N2RmOWQyMDhhMjYzZGZhZWY3N2IyNzIwYTZiYzVkMmU5ZjU0
15
+ YzhkOGFjYTk2ZjE5MzFlYTlhYmRkYzkwYTYyOWZiM2UwOGQ5YTI=
data/lib/kubeclient.rb CHANGED
@@ -60,7 +60,11 @@ module Kubeclient
60
60
  raise exception
61
61
  end
62
62
  result = JSON.parse(response)
63
- collection = EntityList.new(entity,result["resourceVersion"])
63
+ if @api_version == "v1beta1"
64
+ collection = EntityList.new(entity,result["resourceVersion"])
65
+ else
66
+ collection = EntityList.new(entity,result["metadata"]["resourceVersion"])
67
+ end
64
68
  result["items"].each { |item | collection.push(create_entity(item, entity)) }
65
69
  collection
66
70
  end
@@ -1,9 +1,9 @@
1
1
  class EntityList < Array
2
- attr_reader :kind, :resource_version
2
+ attr_reader :kind, :resourceVersion
3
3
 
4
4
  def initialize(kind,resource_version)
5
5
  @kind = kind
6
- @resource_version = resource_version
6
+ @resourceVersion = resource_version
7
7
  super()
8
8
  end
9
9
 
@@ -1,3 +1,3 @@
1
1
  module Kubeclient
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alissa Bonas