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 +4 -4
- data/lib/biosphere/kube.rb +7 -1
- data/lib/biosphere/version.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: 503fe6f7ce0893d592c091476ad1713993007b4b
|
|
4
|
+
data.tar.gz: 2cff76a658d968277319a0f67adb2539c490dded
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f47c9ff8a72bcb892b8e5c77c8aaf638c9db55117f8ed2bc3f0946bd77684a1e055a7ea9360ec3d7f3f8866b841fb25854d11713c3d82d4e15c2591099bd188
|
|
7
|
+
data.tar.gz: 6afcf43b0e4e4d5dd8ca2f0c2c7df4c8fa20b81fd0c6be9977031f26d8e16adf0641a444ad805b3cdaa7d6f1a149e99b89ad4573571d3f4091c4581d7adba4aa
|
data/lib/biosphere/kube.rb
CHANGED
|
@@ -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
|
|
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)
|
data/lib/biosphere/version.rb
CHANGED