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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4eadbdf15c18c24f837159b566d886fc3d7c2ee0f3319aaf791464ae9474535a
4
- data.tar.gz: c1de255adac68b1550b379b555ba3d1c8c8fe9cdb30272344feed1a82a0a3bb3
3
+ metadata.gz: '07159856646ed2fb7cf99551fe1a559a99e840e77de8d93e1fd870250f50d028'
4
+ data.tar.gz: 5d6482b1867217f957c3cb416e4c105305d81d904878800c96428e1a65c39a2b
5
5
  SHA512:
6
- metadata.gz: 6a5e543cd9d4c310b769ed770a6d69cd27dbfd8d33af00c9b9e239a2f9277dbba450ee05d0f61c27d2940eadf8d372f053d2dec222168fbcb0d09e542236b82b
7
- data.tar.gz: d7bbfe14c6ba9686b0ae2319e2e3dea91a983974842dc6089c832c6c582a460d4b422227c8cc3bca12b5a163eeca65455c826a6d8dd010d9974ce1c4dbb72ff2
6
+ metadata.gz: 1d2b4f67c639661dba69ce55301e0ef1364765f94503108d7c3208990f78b73497d3bc651cd0a5876e513edcedda09b78dd25ae87739317a6bca4b35b53b9eac
7
+ data.tar.gz: b325bcbc0ea0abb46d6d7f6a4ba7c2449110a7465cbd3e6255f76ebe4be80f8da87f86a00f1b6ecef0eb5b224bb1caad125f018e219e5786522df236f219b241
@@ -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| api.resources(namespace: namespace) }.flatten
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.
@@ -3,6 +3,6 @@
3
3
  module K8s
4
4
  class Client
5
5
  # Updated on releases using semver.
6
- VERSION = "0.8.0"
6
+ VERSION = "0.8.1"
7
7
  end
8
8
  end
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.0
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-07 00:00:00.000000000 Z
11
+ date: 2019-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon