kubernetes-health 3.0.3 → 3.0.4
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f6652ceb0de891915e55a34edf552781090d114e054fc94d9d3a2b44ace54ab
|
4
|
+
data.tar.gz: 5dab2e26584268bfa8f4001dbf740f520a67135f9fe559ff9c0b7a002abca3a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbb0743d9d9b85392908464dc528406dce953d26a4b058745e9fa68cded4dbd96fb4f20e21948dd2245765ef0e5277df552d0ec863b288a294d7f60db4ddd0ae
|
7
|
+
data.tar.gz: dbd17d495c5c44b25ac18cc593a1c329ec5cf012db45ef97bd4d26d1cecc548d8c734bc4f366f6c5d455317b8b050982559ae4daba6154623cdd91b98d57797d
|
data/lib/puma/kubernetes/app.rb
CHANGED
@@ -17,10 +17,10 @@ module Puma
|
|
17
17
|
type = {}
|
18
18
|
content = []
|
19
19
|
case req.path_info
|
20
|
-
when ::Kubernetes::Health::Config.
|
20
|
+
when ::Kubernetes::Health::Config.route_liveness
|
21
21
|
i_am_live = ::Kubernetes::Health::Config.live_if.arity == 0 ? ::Kubernetes::Health::Config.live_if.call : ::Kubernetes::Health::Config.live_if.call(req.params)
|
22
22
|
http_code = i_am_live ? 200 : 503
|
23
|
-
when ::Kubernetes::Health::Config.
|
23
|
+
when ::Kubernetes::Health::Config.route_readiness
|
24
24
|
i_am_ready = ::Kubernetes::Health::Config.ready_if.arity == 0 ? ::Kubernetes::Health::Config.ready_if.call : ::Kubernetes::Health::Config.ready_if.call(req.params)
|
25
25
|
http_code = i_am_ready ? 200 : 503
|
26
26
|
when ::Kubernetes::Health::Config.route_metrics
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubernetes-health
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wagner Caixeta
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-10-
|
11
|
+
date: 2019-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|