kubernetes-health 3.4.0 → 3.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kubernetes/health/version.rb +1 -1
- data/lib/puma/kubernetes/app.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e002184325d2c508f38c8fc4c73532d748046664fcc65764e345d0119734d066
|
4
|
+
data.tar.gz: 85419dad18b1fe9df0d0fcdcbbf1686f0e7233497bc1685f2a1182baba7cceb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b3cc913270ba83fda812e464bbcd3469e6949778059e707b6de62f4b2391747ade9f957c12062c0f98c42fbd0beb421403caed4c0bd6c15acc553edb917f560
|
7
|
+
data.tar.gz: b147c8e17cee0c3648116ac10eb1e9e6cfa89d1f78a5d03815629d2aa0d27b8b066fb4abcf70b6ea3b0595de36828911b8959c1cf2a0bd9f3077c0f9d1d8a6af
|
data/lib/puma/kubernetes/app.rb
CHANGED
@@ -16,7 +16,7 @@ module Puma
|
|
16
16
|
begin
|
17
17
|
req = ::Rack::Request.new(_env)
|
18
18
|
type = {}
|
19
|
-
content =
|
19
|
+
content = ''
|
20
20
|
type = ::Kubernetes::Health::Config.response_format == 'json' ? { 'Content-Type' => 'application/json' } : { 'Content-Type' => 'text/plain' }
|
21
21
|
case req.path_info
|
22
22
|
when ::Kubernetes::Health::Config.route_liveness
|
@@ -38,7 +38,7 @@ module Puma
|
|
38
38
|
end
|
39
39
|
rescue
|
40
40
|
http_code = 500
|
41
|
-
content =
|
41
|
+
content = ''
|
42
42
|
end
|
43
43
|
::Kubernetes::Health::Config.request_log_callback.call(req, http_code, content)
|
44
44
|
[http_code, type, [content]]
|