pepr 0.1.37 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/package.json +3 -3
- package/dist/src/cli/build.js +3 -3
- package/dist/src/cli/deploy.js +3 -3
- package/dist/src/cli/dev.js +2 -2
- package/dist/src/cli/init/index.d.ts +1 -1
- package/dist/src/cli/init/index.js +1 -1
- package/dist/src/cli/init/templates.js +2 -2
- package/dist/src/cli/init/walkthrough.js +1 -1
- package/dist/src/cli/root.js +1 -1
- package/dist/src/cli/test.js +1 -1
- package/dist/src/lib/k8s/webhook.d.ts +1 -1
- package/dist/src/lib/k8s/webhook.js +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import k8s from "@kubernetes/client-node";
|
|
2
2
|
import utils from "ramda";
|
|
3
|
-
import { fetch, fetchRaw } from "src/lib/fetch";
|
|
4
3
|
import { Capability } from "./src/lib/capability";
|
|
4
|
+
import { fetch, fetchRaw } from "./src/lib/fetch";
|
|
5
5
|
import { a } from "./src/lib/k8s";
|
|
6
6
|
import Log from "./src/lib/logger";
|
|
7
7
|
import { PeprModule } from "./src/lib/module";
|
package/dist/index.js
CHANGED
|
@@ -8,11 +8,11 @@ const client_node_1 = __importDefault(require("@kubernetes/client-node"));
|
|
|
8
8
|
exports.k8s = client_node_1.default;
|
|
9
9
|
const ramda_1 = __importDefault(require("ramda"));
|
|
10
10
|
exports.utils = ramda_1.default;
|
|
11
|
-
const fetch_1 = require("src/lib/fetch");
|
|
12
|
-
Object.defineProperty(exports, "fetch", { enumerable: true, get: function () { return fetch_1.fetch; } });
|
|
13
|
-
Object.defineProperty(exports, "fetchRaw", { enumerable: true, get: function () { return fetch_1.fetchRaw; } });
|
|
14
11
|
const capability_1 = require("./src/lib/capability");
|
|
15
12
|
Object.defineProperty(exports, "Capability", { enumerable: true, get: function () { return capability_1.Capability; } });
|
|
13
|
+
const fetch_1 = require("./src/lib/fetch");
|
|
14
|
+
Object.defineProperty(exports, "fetch", { enumerable: true, get: function () { return fetch_1.fetch; } });
|
|
15
|
+
Object.defineProperty(exports, "fetchRaw", { enumerable: true, get: function () { return fetch_1.fetchRaw; } });
|
|
16
16
|
const k8s_1 = require("./src/lib/k8s");
|
|
17
17
|
Object.defineProperty(exports, "a", { enumerable: true, get: function () { return k8s_1.a; } });
|
|
18
18
|
const logger_1 = __importDefault(require("./src/lib/logger"));
|
package/dist/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=18.0.0"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.1.
|
|
12
|
+
"version": "0.1.39",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "dist/index.d.ts",
|
|
15
15
|
"pepr": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "rm -fr dist/* && tsc -p tsconfig.build.json",
|
|
28
|
-
"test": "ava",
|
|
28
|
+
"test": "npm run build && ava && node dist/cli.js -V",
|
|
29
29
|
"lint": "npx eslint src",
|
|
30
30
|
"lint:fix": "npm run lint -- --fix",
|
|
31
31
|
"prettier": "npx prettier src --check",
|
|
32
32
|
"prettier:fix": "npm run prettier -- --write",
|
|
33
|
-
"prepublishOnly": "npm run lint:fix && npm run prettier:fix && npm run test
|
|
33
|
+
"prepublishOnly": "npm run lint:fix && npm run prettier:fix && npm run test",
|
|
34
34
|
"e2e-dev-setup": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0'",
|
|
35
35
|
"e2e-dev": "npm run build && docker buildx build --tag pepr:dev . && k3d image import pepr:dev -c pepr-dev && node dist/pepr-cli.js deploy -f -i pepr:dev"
|
|
36
36
|
},
|
package/dist/src/cli/build.js
CHANGED
|
@@ -7,14 +7,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.buildModule = void 0;
|
|
9
9
|
const plugin_json_1 = __importDefault(require("@rollup/plugin-json"));
|
|
10
|
-
const package_json_1 = require("package.json");
|
|
11
10
|
const plugin_node_resolve_1 = __importDefault(require("@rollup/plugin-node-resolve"));
|
|
12
11
|
const plugin_typescript_1 = __importDefault(require("@rollup/plugin-typescript"));
|
|
13
12
|
const fs_1 = require("fs");
|
|
14
13
|
const path_1 = require("path");
|
|
15
14
|
const rollup_1 = require("rollup");
|
|
16
|
-
const
|
|
17
|
-
const webhook_1 = require("src/lib/k8s/webhook");
|
|
15
|
+
const package_json_1 = require("../../package.json");
|
|
16
|
+
const webhook_1 = require("../../src/lib/k8s/webhook");
|
|
17
|
+
const logger_1 = __importDefault(require("../../src/lib/logger"));
|
|
18
18
|
function default_1(program) {
|
|
19
19
|
program
|
|
20
20
|
.command("build")
|
package/dist/src/cli/deploy.js
CHANGED
|
@@ -6,10 +6,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
6
6
|
};
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
|
-
const webhook_1 = require("src/lib/k8s/webhook");
|
|
10
|
-
const logger_1 = __importDefault(require("src/lib/logger"));
|
|
11
|
-
const build_1 = require("./build");
|
|
12
9
|
const prompts_1 = require("prompts");
|
|
10
|
+
const webhook_1 = require("../../src/lib/k8s/webhook");
|
|
11
|
+
const logger_1 = __importDefault(require("../../src/lib/logger"));
|
|
12
|
+
const build_1 = require("./build");
|
|
13
13
|
function default_1(program) {
|
|
14
14
|
program
|
|
15
15
|
.command("deploy")
|
package/dist/src/cli/dev.js
CHANGED
|
@@ -10,8 +10,8 @@ const chokidar_1 = require("chokidar");
|
|
|
10
10
|
const fs_1 = require("fs");
|
|
11
11
|
const path_1 = require("path");
|
|
12
12
|
const prompts_1 = require("prompts");
|
|
13
|
-
const webhook_1 = require("src/lib/k8s/webhook");
|
|
14
|
-
const logger_1 = __importDefault(require("src/lib/logger"));
|
|
13
|
+
const webhook_1 = require("../../src/lib/k8s/webhook");
|
|
14
|
+
const logger_1 = __importDefault(require("../../src/lib/logger"));
|
|
15
15
|
const build_1 = require("./build");
|
|
16
16
|
function default_1(program) {
|
|
17
17
|
program
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { RootCmd } from "
|
|
1
|
+
import { RootCmd } from "../root";
|
|
2
2
|
export default function (program: RootCmd): void;
|
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
const child_process_1 = require("child_process");
|
|
9
9
|
const path_1 = require("path");
|
|
10
|
-
const logger_1 = __importDefault(require("src/lib/logger"));
|
|
10
|
+
const logger_1 = __importDefault(require("../../../src/lib/logger"));
|
|
11
11
|
const templates_1 = require("./templates");
|
|
12
12
|
const utils_1 = require("./utils");
|
|
13
13
|
const walkthrough_1 = require("./walkthrough");
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.snippet = exports.helloPeprTS = exports.samplesYaml = exports.readme = exports.prettierRC = exports.gitIgnore = exports.tsConfig = exports.genPkgJSON = exports.genPeprTS = void 0;
|
|
6
6
|
const client_node_1 = require("@kubernetes/client-node");
|
|
7
|
-
const package_json_1 = require("package.json");
|
|
8
|
-
const version_1 = require("src/cli/version");
|
|
9
7
|
const util_1 = require("util");
|
|
10
8
|
const uuid_1 = require("uuid");
|
|
9
|
+
const package_json_1 = require("../../../package.json");
|
|
10
|
+
const version_1 = require("../version");
|
|
11
11
|
const utils_1 = require("./utils");
|
|
12
12
|
function genPeprTS() {
|
|
13
13
|
return {
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.confirm = exports.walkthrough = void 0;
|
|
9
9
|
const fs_1 = require("fs");
|
|
10
10
|
const prompts_1 = __importDefault(require("prompts"));
|
|
11
|
-
const types_1 = require("src/lib/types");
|
|
11
|
+
const types_1 = require("../../../src/lib/types");
|
|
12
12
|
const templates_1 = require("./templates");
|
|
13
13
|
const utils_1 = require("./utils");
|
|
14
14
|
function walkthrough() {
|
package/dist/src/cli/root.js
CHANGED
|
@@ -7,7 +7,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.RootCmd = void 0;
|
|
9
9
|
const commander_1 = require("commander");
|
|
10
|
-
const logger_1 = __importDefault(require("src/lib/logger"));
|
|
10
|
+
const logger_1 = __importDefault(require("../../src/lib/logger"));
|
|
11
11
|
class RootCmd extends commander_1.Command {
|
|
12
12
|
createCommand(name) {
|
|
13
13
|
const cmd = new commander_1.Command(name);
|
package/dist/src/cli/test.js
CHANGED
|
@@ -9,7 +9,7 @@ const child_process_1 = require("child_process");
|
|
|
9
9
|
const chokidar_1 = require("chokidar");
|
|
10
10
|
const path_1 = require("path");
|
|
11
11
|
const util_1 = require("util");
|
|
12
|
-
const logger_1 = __importDefault(require("src/lib/logger"));
|
|
12
|
+
const logger_1 = __importDefault(require("../../src/lib/logger"));
|
|
13
13
|
const build_1 = require("./build");
|
|
14
14
|
const exec = (0, util_1.promisify)(child_process_1.exec);
|
|
15
15
|
function default_1(program) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { V1ClusterRole, V1ClusterRoleBinding, V1Deployment, V1MutatingWebhookConfiguration, V1Namespace, V1NetworkPolicy, V1Secret, V1Service, V1ServiceAccount } from "@kubernetes/client-node";
|
|
2
|
-
import { ModuleConfig } from "
|
|
2
|
+
import { ModuleConfig } from "../types";
|
|
3
3
|
import { TLSOut } from "./tls";
|
|
4
4
|
export declare class Webhook {
|
|
5
5
|
private readonly config;
|
|
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.Webhook = void 0;
|
|
9
9
|
const client_node_1 = require("@kubernetes/client-node");
|
|
10
10
|
const zlib_1 = require("zlib");
|
|
11
|
-
const logger_1 = __importDefault(require("
|
|
11
|
+
const logger_1 = __importDefault(require("../logger"));
|
|
12
12
|
const tls_1 = require("./tls");
|
|
13
13
|
const peprIgnore = {
|
|
14
14
|
key: "pepr.dev",
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"engines": {
|
|
10
10
|
"node": ">=18.0.0"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.1.
|
|
12
|
+
"version": "0.1.39",
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"types": "dist/index.d.ts",
|
|
15
15
|
"pepr": {
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"build": "rm -fr dist/* && tsc -p tsconfig.build.json",
|
|
28
|
-
"test": "ava",
|
|
28
|
+
"test": "npm run build && ava && node dist/cli.js -V",
|
|
29
29
|
"lint": "npx eslint src",
|
|
30
30
|
"lint:fix": "npm run lint -- --fix",
|
|
31
31
|
"prettier": "npx prettier src --check",
|
|
32
32
|
"prettier:fix": "npm run prettier -- --write",
|
|
33
|
-
"prepublishOnly": "npm run lint:fix && npm run prettier:fix && npm run test
|
|
33
|
+
"prepublishOnly": "npm run lint:fix && npm run prettier:fix && npm run test",
|
|
34
34
|
"e2e-dev-setup": "k3d cluster delete pepr-dev && k3d cluster create pepr-dev --k3s-arg '--debug@server:0'",
|
|
35
35
|
"e2e-dev": "npm run build && docker buildx build --tag pepr:dev . && k3d image import pepr:dev -c pepr-dev && node dist/pepr-cli.js deploy -f -i pepr:dev"
|
|
36
36
|
},
|