Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

kubernetes-probes

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kubernetes-probes - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

kubernetes-probes-0.2.0.tgz

11

app.js

@@ -8,4 +8,6 @@ 'use strict';

var livenessFunctions = [];
var readinessState = null;
module.exports = {
setReadiness: function(ready) {readinessState = ready;},
addReadinessFunction: function(readinessFunction, name) {

@@ -74,2 +76,11 @@ if (!name) {name = "All";}

});
} else if (readinessState !== null) {
if (readinessState == true) {
res.header("Content-Type", "text/plain");
res.status(200);
res.send(JSON.stringify(results));
}else {
res.status(400);
res.send(JSON.stringify(results));
}
} else {

@@ -76,0 +87,0 @@ res.status(400);

2

package.json
{
"name": "kubernetes-probes",
"version": "0.1.3",
"version": "0.2.0",
"description": "Listener for health probes from kubernetes.",

@@ -5,0 +5,0 @@ "private": false,

@@ -74,2 +74,6 @@ # kubernetes-probes

Name of this particular aspect of being lively. Default is "All".
* `setReadiness(ready)`
* `ready` - [REQUIRED] - boolean.
If this function has been called, and `addReadinessFunction()` has not been called,
then the most recent value of `ready` will be used to respond to a readiness probe.
* `listen(port)`

@@ -76,0 +80,0 @@ * `port` - [REQUIRED] - integer.

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc