kubernetes-probes
Advanced tools
Comparing version 0.2.0 to 0.2.1
12
app.js
@@ -8,3 +8,3 @@ 'use strict'; | ||
var livenessFunctions = []; | ||
var readinessState = null; | ||
var readinessState = false; | ||
@@ -76,14 +76,12 @@ module.exports = { | ||
}); | ||
} else if (readinessState !== null) { | ||
} else { | ||
if (readinessState == true) { | ||
res.header("Content-Type", "text/plain"); | ||
res.status(200); | ||
res.send(JSON.stringify(results)); | ||
res.send("ready"); | ||
}else { | ||
res.header("Content-Type", "text/plain"); | ||
res.status(400); | ||
res.send(JSON.stringify(results)); | ||
res.send("not ready"); | ||
} | ||
} else { | ||
res.status(400); | ||
res.send("no readiness functions defined."); | ||
} | ||
@@ -90,0 +88,0 @@ }); |
{ | ||
"name": "kubernetes-probes", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Listener for health probes from kubernetes.", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63397
12
105
3