biosphere 0.2.13 → 0.2.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1502995009f69c7c5443594f62ffd8a13737a470
4
- data.tar.gz: f2f605a347d1535e1ac33414abf27abeb6b25073
3
+ metadata.gz: 503fe6f7ce0893d592c091476ad1713993007b4b
4
+ data.tar.gz: 2cff76a658d968277319a0f67adb2539c490dded
5
5
  SHA512:
6
- metadata.gz: 56e6151183ca3d81ab3fb2b70478f289dc4c0a8664212bbcd55c4b6ecd183a430855c97cd46a89a2d2746d34f1d567e693d4775f13f429da76f6a40a075a24e1
7
- data.tar.gz: 34ae7d91b1b20c289f4633bd68c53752120501083e4eecac1c5df66d786be06a525c063868c1ca0548c90d71f0353b37727045b8e9b1523bea9d854aff1397a2
6
+ metadata.gz: 2f47c9ff8a72bcb892b8e5c77c8aaf638c9db55117f8ed2bc3f0946bd77684a1e055a7ea9360ec3d7f3f8866b841fb25854d11713c3d82d4e15c2591099bd188
7
+ data.tar.gz: 6afcf43b0e4e4d5dd8ca2f0c2c7df4c8fa20b81fd0c6be9977031f26d8e16adf0641a444ad805b3cdaa7d6f1a149e99b89ad4573571d3f4091c4581d7adba4aa
@@ -37,7 +37,13 @@ class Biosphere
37
37
  @clients << ::Kubeclient::Client.new("#{hostname}/apis/storage.k8s.io/" , "v1", ssl_options: ssl_options)
38
38
  @clients << ::Kubeclient::Client.new("#{hostname}/apis/autoscaling/" , "v1", ssl_options: ssl_options)
39
39
 
40
- @clients.each { |c| c.discover }
40
+ @clients.each do |c|
41
+ begin
42
+ c.discover
43
+ rescue KubeException => e
44
+ puts "Could not discover api #{c.api_endpoint} - maybe this kube version is too old."
45
+ end
46
+ end
41
47
  end
42
48
 
43
49
  def get_resource_name(resource)
@@ -1,3 +1,3 @@
1
1
  class Biosphere
2
- Version = "0.2.13"
2
+ Version = "0.2.14"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: biosphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juho Mäkinen