dapp 0.13.20 → 0.13.21
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6fe51938164442f3a4d1c70c954505de2a819b2
|
|
4
|
+
data.tar.gz: 301499af3fb80b51c4a059134a897be3ea966e6c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ec4a97af9ac3c47067e8fc3ca2cea6b17b1beb309fe778a7ff4ed150c4ee1d2034dbaf4cb0e5ce24bd68d6bfb9f056f7f49a864564bf19f44acd4b35a1d45519
|
|
7
|
+
data.tar.gz: d045312a3c0b9292bfa1dd930ac9ce0b0ed1c5759aefeadc05211933ffe3903857728ac91ca8962553a2e25ad2de12a5f79ed8e5034c174f5f69ebcbe4e8b567
|
|
@@ -106,16 +106,13 @@ module Dapp
|
|
|
106
106
|
rescue Excon::Error::Timeout
|
|
107
107
|
raise Error::Timeout
|
|
108
108
|
rescue Error::Base => err
|
|
109
|
-
if err.net_status[:code] == :bad_request and
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
end
|
|
109
|
+
if err.net_status[:code] == :bad_request and
|
|
110
|
+
err.net_status[:data][:response_body] and
|
|
111
|
+
err.net_status[:data][:response_body]['message'].end_with? 'ContainerCreating'
|
|
112
|
+
raise Error::Pod::ContainerCreating, data: err.net_status[:data]
|
|
113
|
+
else
|
|
114
|
+
raise
|
|
116
115
|
end
|
|
117
|
-
|
|
118
|
-
raise
|
|
119
116
|
end
|
|
120
117
|
|
|
121
118
|
def event_list(**query_parameters)
|
|
@@ -19,18 +19,11 @@ module Dapp
|
|
|
19
19
|
|
|
20
20
|
module Pod
|
|
21
21
|
class NotFound < Kubernetes::Client::Error::NotFound ; end
|
|
22
|
-
|
|
23
22
|
class ContainerCreating < Kubernetes::Client::Error::Base
|
|
24
23
|
def initialize(**net_status)
|
|
25
24
|
super({code: :container_creating}.merge(net_status))
|
|
26
25
|
end
|
|
27
26
|
end
|
|
28
|
-
|
|
29
|
-
class PodInitializing < Kubernetes::Client::Error::Base
|
|
30
|
-
def initialize(**net_status)
|
|
31
|
-
super({code: :pod_initializing}.merge(net_status))
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
27
|
end # Pod
|
|
35
28
|
end # Kubernetes::Client::Error
|
|
36
29
|
end # Kube
|
|
@@ -38,7 +38,7 @@ module Dapp
|
|
|
38
38
|
[timestamp, data]
|
|
39
39
|
end
|
|
40
40
|
.reject {|timestamp, _| @processed_log_timestamps.include? timestamp}
|
|
41
|
-
rescue Kubernetes::Client::Error::Pod::ContainerCreating
|
|
41
|
+
rescue Kubernetes::Client::Error::Pod::ContainerCreating
|
|
42
42
|
sleep 0.1
|
|
43
43
|
next
|
|
44
44
|
end
|
data/lib/dapp/version.rb
CHANGED