k8s-client 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/k8s/client.rb +7 -1
- data/lib/k8s/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '07159856646ed2fb7cf99551fe1a559a99e840e77de8d93e1fd870250f50d028'
|
4
|
+
data.tar.gz: 5d6482b1867217f957c3cb416e4c105305d81d904878800c96428e1a65c39a2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d2b4f67c639661dba69ce55301e0ef1364765f94503108d7c3208990f78b73497d3bc651cd0a5876e513edcedda09b78dd25ae87739317a6bca4b35b53b9eac
|
7
|
+
data.tar.gz: b325bcbc0ea0abb46d6d7f6a4ba7c2449110a7465cbd3e6255f76ebe4be80f8da87f86a00f1b6ecef0eb5b224bb1caad125f018e219e5786522df236f219b241
|
data/lib/k8s/client.rb
CHANGED
@@ -162,7 +162,13 @@ module K8s
|
|
162
162
|
# @param namespace [String, nil]
|
163
163
|
# @return [Array<K8s::ResourceClient>]
|
164
164
|
def resources(namespace: nil)
|
165
|
-
apis(prefetch_resources: true).map { |api|
|
165
|
+
apis(prefetch_resources: true).map { |api|
|
166
|
+
begin
|
167
|
+
api.resources(namespace: namespace)
|
168
|
+
rescue K8s::Error::ServiceUnavailable, K8s::Error::NotFound
|
169
|
+
[]
|
170
|
+
end
|
171
|
+
}.flatten
|
166
172
|
end
|
167
173
|
|
168
174
|
# Pipeline list requests for multiple resource types.
|
data/lib/k8s/client/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: k8s-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontena, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|