New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cdk8s-plus

Package Overview
Dependencies
Maintainers
1
Versions
80
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cdk8s-plus - npm Package Compare versions

Comparing version 0.31.0-pre.8b0176ccc0609bed58ddcaa689edc2997a9915f1 to 0.31.0-pre.a57e466d67b561bec95c7be26eb7a36625ebb744

lib/probe.d.ts

8

lib/container.d.ts
import { IConfigMap } from './config-map';
import { ISecret } from './secret';
import { Volume } from './volume';
import { Probe } from './probe';
/**

@@ -166,2 +167,8 @@ * Options to specify an envionment variable value from a ConfigMap key.

readonly imagePullPolicy?: ImagePullPolicy;
/**
* Determines when the container is ready to serve traffic.
*
* @default - no readiness probe is defined
*/
readonly readiness?: Probe;
}

@@ -199,2 +206,3 @@ /**

private readonly _env;
private readonly _readiness?;
constructor(props: ContainerProps);

@@ -201,0 +209,0 @@ /**

5

lib/container.js

@@ -105,2 +105,3 @@ "use strict";

this._env = (_b = props.env) !== null && _b !== void 0 ? _b : {};
this._readiness = props.readiness;
this.workingDir = props.workingDir;

@@ -159,2 +160,3 @@ this.mounts = (_c = props.volumeMounts) !== null && _c !== void 0 ? _c : [];

_toKube() {
var _a;
const volumeMounts = [];

@@ -187,2 +189,3 @@ for (const mount of this.mounts) {

env: renderEnv(this._env),
readinessProbe: (_a = this._readiness) === null || _a === void 0 ? void 0 : _a._toKube(this),
};

@@ -251,2 +254,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGFpbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbnRhaW5lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUErQ0E7O0dBRUc7QUFDSCxNQUFhLFFBQVE7SUFtRW5CLFlBQW9DLEtBQVcsRUFBa0IsU0FBZTtRQU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LnB1c2goe1xuICAgICAgbmFtZSxcbiAgICAgIHZhbHVlOiB2LnZhbHVlLFxuICAgICAgdmFsdWVGcm9tOiB2LnZhbHVlRnJvbSxcbiAgICB9KTtcbiAgfVxuICByZXR1cm4gcmVzdWx0O1xufVxuIl19

1

lib/index.d.ts

@@ -14,1 +14,2 @@ export * from './base';

export * from './ingress';
export * from './probe';

@@ -26,2 +26,3 @@ "use strict";

__exportStar(require("./ingress"), exports);
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEseUNBQXVCO0FBQ3ZCLCtDQUE2QjtBQUM3Qiw4Q0FBNEI7QUFDNUIsK0NBQTZCO0FBQzdCLDZDQUEyQjtBQUMzQix3Q0FBc0I7QUFDdEIsd0NBQXNCO0FBQ3RCLDJDQUF5QjtBQUN6QixvREFBa0M7QUFDbEMsNENBQTBCO0FBQzFCLDJDQUF5QjtBQUN6Qix5Q0FBdUI7QUFDdkIsNENBQTBCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9iYXNlJztcbmV4cG9ydCAqIGZyb20gJy4vY29uZmlnLW1hcCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbnRhaW5lcic7XG5leHBvcnQgKiBmcm9tICcuL2RlcGxveW1lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9kdXJhdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2pvYic7XG5leHBvcnQgKiBmcm9tICcuL3BvZCc7XG5leHBvcnQgKiBmcm9tICcuL3NlY3JldCc7XG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2UtYWNjb3VudCc7XG5leHBvcnQgKiBmcm9tICcuL3NlcnZpY2UnO1xuZXhwb3J0ICogZnJvbSAnLi92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c7Il19

@@ -34,3 +34,3 @@ {

"devDependencies": {
"cdk8s": "0.31.0-pre.8b0176ccc0609bed58ddcaa689edc2997a9915f1",
"cdk8s": "0.31.0-pre.a57e466d67b561bec95c7be26eb7a36625ebb744",
"constructs": "^3.0.4",

@@ -58,3 +58,3 @@ "@types/minimatch": "^3.0.3",

"peerDependencies": {
"cdk8s": "0.31.0-pre.8b0176ccc0609bed58ddcaa689edc2997a9915f1",
"cdk8s": "0.31.0-pre.a57e466d67b561bec95c7be26eb7a36625ebb744",
"constructs": "^3.0.4"

@@ -78,3 +78,3 @@ },

"license": "Apache-2.0",
"version": "0.31.0-pre.8b0176ccc0609bed58ddcaa689edc2997a9915f1",
"version": "0.31.0-pre.a57e466d67b561bec95c7be26eb7a36625ebb744",
"types": "lib/index.d.ts",

@@ -81,0 +81,0 @@ "jest": {

@@ -263,2 +263,25 @@ # cdk8s+ (cdk8s-plus)

## Probes
A [Probe] is a diagnostic performed periodically by the kubelet on a Container. To
perform a diagnostic, the kubelet calls a Handler implemented by the container.
[Probe]: https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#probe-v1-core
A `Probe` instance can be created through one of the `fromXxx` static methods:
- `Probe.fromHttpGet()`
- `Probe.fromCommand()`
Readiness probes can be configured at the container-level through the `readiness` option:
```ts
new kplus.Container({
// ...
readiness: kplus.Probe.fromHttpGet('/ping')
});
```
See the API reference for details.
### `Volume`

@@ -265,0 +288,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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