pepr 0.52.2 → 0.52.3-nightly.1
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/cli/banner.d.ts +1 -1
- package/dist/cli/banner.d.ts.map +1 -1
- package/dist/cli/{build.helpers.d.ts → build/build.helpers.d.ts} +5 -5
- package/dist/cli/build/build.helpers.d.ts.map +1 -0
- package/dist/cli/build/buildModule.d.ts +11 -0
- package/dist/cli/build/buildModule.d.ts.map +1 -0
- package/dist/cli/build/index.d.ts +3 -0
- package/dist/cli/build/index.d.ts.map +1 -0
- package/dist/cli/build/loadModule.d.ts +11 -0
- package/dist/cli/build/loadModule.d.ts.map +1 -0
- package/dist/cli/crd/generate/generators.d.ts +1 -28
- package/dist/cli/crd/generate/generators.d.ts.map +1 -1
- package/dist/cli/deploy/buildAndDeploy.d.ts +5 -0
- package/dist/cli/deploy/buildAndDeploy.d.ts.map +1 -0
- package/dist/cli/deploy/imagePullSecret.d.ts +16 -0
- package/dist/cli/deploy/imagePullSecret.d.ts.map +1 -0
- package/dist/cli/deploy/index.d.ts +3 -0
- package/dist/cli/deploy/index.d.ts.map +1 -0
- package/dist/cli/deploy/userConfirmation.d.ts +4 -0
- package/dist/cli/deploy/userConfirmation.d.ts.map +1 -0
- package/dist/cli/dev.d.ts.map +1 -1
- package/dist/cli/init/templates.d.ts +0 -1
- package/dist/cli/init/templates.d.ts.map +1 -1
- package/dist/cli/monitor.d.ts +3 -0
- package/dist/cli/monitor.d.ts.map +1 -1
- package/dist/cli/types.d.ts +14 -0
- package/dist/cli/types.d.ts.map +1 -1
- package/dist/cli/uuid.d.ts.map +1 -1
- package/dist/cli.js +1198 -1215
- package/dist/controller.js +24 -11
- package/dist/lib/assets/assets.d.ts.map +1 -1
- package/dist/lib/assets/environment.d.ts +1 -0
- package/dist/lib/assets/environment.d.ts.map +1 -1
- package/dist/lib/assets/loader.d.ts.map +1 -1
- package/dist/lib/assets/webhooks.d.ts.map +1 -1
- package/dist/lib/assets/yaml/generateAllYaml.d.ts +1 -2
- package/dist/lib/assets/yaml/generateAllYaml.d.ts.map +1 -1
- package/dist/lib/core/storage.d.ts +2 -1
- package/dist/lib/core/storage.d.ts.map +1 -1
- package/dist/lib/filter/adjudicators/binding.d.ts +2 -1
- package/dist/lib/filter/adjudicators/binding.d.ts.map +1 -1
- package/dist/lib/filter/adjudicators/kubernetesObject.d.ts +0 -1
- package/dist/lib/filter/adjudicators/kubernetesObject.d.ts.map +1 -1
- package/dist/lib/processors/mutate-processor.d.ts +2 -1
- package/dist/lib/processors/mutate-processor.d.ts.map +1 -1
- package/dist/lib/types.d.ts +0 -4
- package/dist/lib/types.d.ts.map +1 -1
- package/dist/lib.js +7 -7
- package/dist/lib.js.map +2 -2
- package/dist/runtime/controller.d.ts +1 -1
- package/dist/runtime/controller.d.ts.map +1 -1
- package/package.json +10 -11
- package/src/cli/banner.ts +25 -59
- package/src/cli/{build.helpers.ts → build/build.helpers.ts} +15 -21
- package/src/cli/build/buildModule.ts +160 -0
- package/src/cli/build/index.ts +155 -0
- package/src/cli/build/loadModule.ts +54 -0
- package/src/cli/crd/generate/generators.ts +6 -6
- package/src/cli/deploy/buildAndDeploy.ts +48 -0
- package/src/cli/deploy/imagePullSecret.ts +68 -0
- package/src/cli/deploy/index.ts +40 -0
- package/src/cli/deploy/userConfirmation.ts +16 -0
- package/src/cli/dev.ts +4 -3
- package/src/cli/monitor.ts +2 -2
- package/src/cli/types.ts +26 -0
- package/src/cli/uuid.ts +5 -6
- package/src/lib/assets/assets.ts +5 -1
- package/src/lib/assets/deploy.ts +1 -1
- package/src/lib/assets/environment.ts +8 -1
- package/src/lib/assets/loader.ts +0 -6
- package/src/lib/assets/webhooks.ts +5 -8
- package/src/lib/assets/yaml/generateAllYaml.ts +1 -1
- package/src/lib/controller/index.ts +3 -3
- package/src/lib/controller/store.ts +1 -1
- package/src/lib/core/capability.ts +3 -3
- package/src/lib/core/storage.ts +1 -1
- package/src/lib/filter/adjudicators/binding.ts +2 -1
- package/src/lib/filter/adjudicators/kubernetesObject.ts +1 -1
- package/src/lib/processors/mutate-processor.ts +1 -1
- package/src/lib/types.ts +0 -4
- package/src/runtime/controller.ts +8 -14
- package/dist/cli/build.d.ts +0 -34
- package/dist/cli/build.d.ts.map +0 -1
- package/dist/cli/build.helpers.d.ts.map +0 -1
- package/dist/cli/deploy.d.ts +0 -21
- package/dist/cli/deploy.d.ts.map +0 -1
- package/src/cli/build.ts +0 -375
- package/src/cli/deploy.ts +0 -169
package/src/cli/monitor.ts
CHANGED
|
@@ -81,7 +81,7 @@ export function getK8sLogFromKubeConfig(): K8sLog {
|
|
|
81
81
|
return new K8sLog(kc);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
function createLogStream(): stream.PassThrough {
|
|
84
|
+
export function createLogStream(): stream.PassThrough {
|
|
85
85
|
const logStream = new stream.PassThrough();
|
|
86
86
|
|
|
87
87
|
logStream.on("data", async chunk => {
|
|
@@ -97,7 +97,7 @@ function createLogStream(): stream.PassThrough {
|
|
|
97
97
|
return logStream;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
function processLogLine(line: string): void {
|
|
100
|
+
export function processLogLine(line: string): void {
|
|
101
101
|
try {
|
|
102
102
|
const payload: LogPayload = JSON.parse(line.trim());
|
|
103
103
|
const isMutate = payload.res.patchType || payload.res.warnings;
|
package/src/cli/types.ts
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
import { BuildResult, BuildOptions } from "esbuild";
|
|
1
2
|
import { Answers } from "prompts";
|
|
3
|
+
import { ModuleConfig } from "../lib/types";
|
|
2
4
|
|
|
3
5
|
export type InitOptions = Answers<"name" | "description" | "errorBehavior" | "uuid">;
|
|
6
|
+
|
|
7
|
+
export type Reloader = (opts: BuildResult<BuildOptions>) => void | Promise<void>;
|
|
8
|
+
|
|
9
|
+
export type PeprConfig = Omit<ModuleConfig, keyof PeprNestedFields> & {
|
|
10
|
+
pepr: PeprNestedFields & {
|
|
11
|
+
includedFiles: string[];
|
|
12
|
+
};
|
|
13
|
+
description: string;
|
|
14
|
+
version: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type PeprNestedFields = Pick<
|
|
18
|
+
ModuleConfig,
|
|
19
|
+
| "uuid"
|
|
20
|
+
| "onError"
|
|
21
|
+
| "webhookTimeout"
|
|
22
|
+
| "customLabels"
|
|
23
|
+
| "alwaysIgnore"
|
|
24
|
+
| "env"
|
|
25
|
+
| "rbac"
|
|
26
|
+
| "rbacMode"
|
|
27
|
+
> & {
|
|
28
|
+
peprVersion: string;
|
|
29
|
+
};
|
package/src/cli/uuid.ts
CHANGED
|
@@ -13,12 +13,11 @@ export default function (program: Command): void {
|
|
|
13
13
|
const deployments = await getPeprDeploymentsByUUID(uuid);
|
|
14
14
|
const uuidTable = buildUUIDTable(deployments);
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
16
|
+
const uuidTableEntries = Object.entries(uuidTable).map(([uuid, description]) => ({
|
|
17
|
+
UUID: uuid,
|
|
18
|
+
Description: description,
|
|
19
|
+
}));
|
|
20
|
+
console.table(uuidTableEntries);
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
23
|
|
package/src/lib/assets/assets.ts
CHANGED
|
@@ -27,7 +27,7 @@ import { storeRole, storeRoleBinding, clusterRoleBinding, serviceAccount } from
|
|
|
27
27
|
import { tlsSecret, apiPathSecret } from "./networking";
|
|
28
28
|
import { WebhookType } from "../enums";
|
|
29
29
|
import { kind } from "kubernetes-fluent-client";
|
|
30
|
-
|
|
30
|
+
import Log from "../telemetry/logger";
|
|
31
31
|
export function norWatchOrAdmission(capabilities: CapabilityExport[]): boolean {
|
|
32
32
|
return !isAdmission(capabilities) && !isWatcher(capabilities);
|
|
33
33
|
}
|
|
@@ -134,6 +134,10 @@ export class Assets {
|
|
|
134
134
|
imagePullSecret?: string,
|
|
135
135
|
): Promise<string> => {
|
|
136
136
|
this.capabilities = await loadCapabilities(this.path);
|
|
137
|
+
this.capabilities.flatMap(capability => {
|
|
138
|
+
Log.info(`Module ${this.config.uuid} has capability: ${capability.name}`);
|
|
139
|
+
Log.info(`Registered Pepr Capability "${capability.name}"`);
|
|
140
|
+
});
|
|
137
141
|
// give error if namespaces are not respected
|
|
138
142
|
for (const capability of this.capabilities) {
|
|
139
143
|
// until deployment, Pepr does not distinguish between watch and admission
|
package/src/lib/assets/deploy.ts
CHANGED
|
@@ -100,7 +100,7 @@ export async function deployWebhook(
|
|
|
100
100
|
// Create the validating webhook configuration if it is needed
|
|
101
101
|
await handleWebhookConfiguration(assets, WebhookType.VALIDATE, webhookTimeout, force);
|
|
102
102
|
|
|
103
|
-
Log.
|
|
103
|
+
Log.debug("Applying the Pepr Store CRD if it doesn't exist");
|
|
104
104
|
await K8s(kind.CustomResourceDefinition).Apply(peprStoreCRD, { force });
|
|
105
105
|
|
|
106
106
|
if (assets.host) return; // Skip resource deployment if a host is already specified
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { V1EnvVar } from "@kubernetes/client-node";
|
|
2
2
|
import { ModuleConfig } from "../types";
|
|
3
3
|
|
|
4
|
+
export function getLogLevel(config: ModuleConfig): string {
|
|
5
|
+
const fromEnv = process.env.LOG_LEVEL;
|
|
6
|
+
if (fromEnv) {
|
|
7
|
+
return fromEnv;
|
|
8
|
+
}
|
|
9
|
+
return config.logLevel || "info";
|
|
10
|
+
}
|
|
4
11
|
export function genEnv(
|
|
5
12
|
config: ModuleConfig,
|
|
6
13
|
watchMode = false,
|
|
@@ -8,7 +15,7 @@ export function genEnv(
|
|
|
8
15
|
): V1EnvVar[] {
|
|
9
16
|
const noWatchDef = {
|
|
10
17
|
PEPR_PRETTY_LOG: "false",
|
|
11
|
-
LOG_LEVEL: config
|
|
18
|
+
LOG_LEVEL: getLogLevel(config),
|
|
12
19
|
};
|
|
13
20
|
|
|
14
21
|
const def = {
|
package/src/lib/assets/loader.ts
CHANGED
|
@@ -26,12 +26,6 @@ export function loadCapabilities(path: string): Promise<CapabilityExport[]> {
|
|
|
26
26
|
program.on("message", message => {
|
|
27
27
|
// Cast the message to the ModuleCapabilities type
|
|
28
28
|
const capabilities = message.valueOf() as CapabilityExport[];
|
|
29
|
-
|
|
30
|
-
// Iterate through the capabilities and generate the rules
|
|
31
|
-
for (const capability of capabilities) {
|
|
32
|
-
console.info(`Registered Pepr Capability "${capability.name}"`);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
29
|
resolve(capabilities);
|
|
36
30
|
});
|
|
37
31
|
|
|
@@ -12,7 +12,6 @@ import { resolveIgnoreNamespaces } from "./ignoredNamespaces";
|
|
|
12
12
|
import { Assets } from "./assets";
|
|
13
13
|
import { Event, WebhookType } from "../enums";
|
|
14
14
|
import { Binding } from "../types";
|
|
15
|
-
import Log from "../telemetry/logger";
|
|
16
15
|
|
|
17
16
|
export const peprIgnoreNamespaces: string[] = ["kube-system", "pepr-system"];
|
|
18
17
|
|
|
@@ -47,15 +46,13 @@ export async function generateWebhookRules(
|
|
|
47
46
|
assets: Assets,
|
|
48
47
|
isMutateWebhook: boolean,
|
|
49
48
|
): Promise<V1RuleWithOperations[]> {
|
|
50
|
-
const {
|
|
49
|
+
const { capabilities } = assets;
|
|
51
50
|
|
|
52
|
-
const rules = capabilities.flatMap(capability =>
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return capability.bindings
|
|
51
|
+
const rules = capabilities.flatMap(capability =>
|
|
52
|
+
capability.bindings
|
|
56
53
|
.map(binding => validateRule(binding, isMutateWebhook))
|
|
57
|
-
.filter((rule): rule is V1RuleWithOperations => !!rule)
|
|
58
|
-
|
|
54
|
+
.filter((rule): rule is V1RuleWithOperations => !!rule),
|
|
55
|
+
);
|
|
59
56
|
|
|
60
57
|
return uniqWith(equals, rules);
|
|
61
58
|
}
|
|
@@ -57,10 +57,10 @@ export class Controller {
|
|
|
57
57
|
if (typeof onReady === "function") {
|
|
58
58
|
onReady();
|
|
59
59
|
}
|
|
60
|
-
Log.
|
|
60
|
+
Log.debug("Controller startup complete");
|
|
61
61
|
// Initialize the schedule store for each capability
|
|
62
62
|
new StoreController(capabilities, `pepr-${config.uuid}-schedule`, () => {
|
|
63
|
-
Log.
|
|
63
|
+
Log.debug("Scheduling processed");
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -112,7 +112,7 @@ export class Controller {
|
|
|
112
112
|
|
|
113
113
|
// Handle server listening event
|
|
114
114
|
server.on("listening", () => {
|
|
115
|
-
Log.
|
|
115
|
+
Log.debug(`Server listening on port ${port}`);
|
|
116
116
|
// Track that the server is running
|
|
117
117
|
this.#running = true;
|
|
118
118
|
});
|
|
@@ -133,7 +133,7 @@ export class Capability implements CapabilityExport {
|
|
|
133
133
|
this.#namespaces = cfg.namespaces;
|
|
134
134
|
this.hasSchedule = false;
|
|
135
135
|
|
|
136
|
-
Log.
|
|
136
|
+
Log.debug(`Capability ${this.#name} registered`);
|
|
137
137
|
Log.debug(cfg);
|
|
138
138
|
}
|
|
139
139
|
|
|
@@ -141,7 +141,7 @@ export class Capability implements CapabilityExport {
|
|
|
141
141
|
* Register the store with the capability. This is called automatically by the Pepr controller.
|
|
142
142
|
*/
|
|
143
143
|
registerScheduleStore = (): Storage => {
|
|
144
|
-
Log.
|
|
144
|
+
Log.debug(`Registering schedule store for ${this.#name}`);
|
|
145
145
|
|
|
146
146
|
if (this.#scheduleRegistered) {
|
|
147
147
|
throw new Error(`Schedule store already registered for ${this.#name}`);
|
|
@@ -159,7 +159,7 @@ export class Capability implements CapabilityExport {
|
|
|
159
159
|
* @param store
|
|
160
160
|
*/
|
|
161
161
|
registerStore = (): Storage => {
|
|
162
|
-
Log.
|
|
162
|
+
Log.debug(`Registering store for ${this.#name}`);
|
|
163
163
|
|
|
164
164
|
if (this.#registered) {
|
|
165
165
|
throw new Error(`Store already registered for ${this.#name}`);
|
package/src/lib/core/storage.ts
CHANGED
|
@@ -6,7 +6,7 @@ import pointer from "json-pointer";
|
|
|
6
6
|
export type DataOp = "add" | "remove";
|
|
7
7
|
export type DataStore = Record<string, string>;
|
|
8
8
|
export type DataSender = (op: DataOp, keys: string[], value?: string) => void;
|
|
9
|
-
|
|
9
|
+
type DataReceiver = (data: DataStore) => void;
|
|
10
10
|
export type Unsubscribe = () => void;
|
|
11
11
|
|
|
12
12
|
const MAX_WAIT_TIME = 15000;
|
|
@@ -74,7 +74,8 @@ export const definedCategory = (binding: Partial<Binding>): string => {
|
|
|
74
74
|
|
|
75
75
|
return Object.keys(categories).find(key => categories[key]) || "";
|
|
76
76
|
};
|
|
77
|
-
|
|
77
|
+
|
|
78
|
+
type DefinedCallbackReturnType =
|
|
78
79
|
| FinalizeAction<GenericClass, InstanceType<GenericClass>>
|
|
79
80
|
| WatchLogAction<GenericClass, InstanceType<GenericClass>>
|
|
80
81
|
| MutateAction<GenericClass, InstanceType<GenericClass>>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { __, allPass, complement, defaultTo, equals, length, gt, not, nthArg, pipe } from "ramda";
|
|
5
5
|
import { KubernetesObject } from "kubernetes-fluent-client";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
const carriesDeletionTimestamp = pipe(
|
|
8
8
|
kubernetesObject => !!kubernetesObject.metadata?.deletionTimestamp,
|
|
9
9
|
defaultTo(false),
|
|
10
10
|
);
|
package/src/lib/types.ts
CHANGED
|
@@ -68,10 +68,6 @@ export type WhenSelector<T extends GenericClass> = {
|
|
|
68
68
|
/** Register an action to be executed when a Kubernetes resource is deleted. */
|
|
69
69
|
IsDeleted: () => BindingAll<T>;
|
|
70
70
|
};
|
|
71
|
-
export interface RegExpFilter {
|
|
72
|
-
obj: RegExp;
|
|
73
|
-
source: string;
|
|
74
|
-
}
|
|
75
71
|
|
|
76
72
|
export type Filters = {
|
|
77
73
|
annotations: Record<string, string>;
|
|
@@ -18,16 +18,12 @@ function runModule(expectedHash: string): void {
|
|
|
18
18
|
const gzPath = `/app/load/module-${expectedHash}.js.gz`;
|
|
19
19
|
const jsPath = `/app/module-${expectedHash}.js`;
|
|
20
20
|
|
|
21
|
-
// Set the log level
|
|
22
|
-
Log.level = "info";
|
|
23
|
-
|
|
24
21
|
// Check if the path is a valid file
|
|
25
22
|
if (!fs.existsSync(gzPath)) {
|
|
26
23
|
throw new Error(`File not found: ${gzPath}`);
|
|
27
24
|
}
|
|
28
|
-
|
|
29
25
|
try {
|
|
30
|
-
Log.
|
|
26
|
+
Log.debug(`Loading module ${gzPath}`);
|
|
31
27
|
|
|
32
28
|
// Extract the code from the file
|
|
33
29
|
const codeGZ = fs.readFileSync(gzPath);
|
|
@@ -42,8 +38,7 @@ function runModule(expectedHash: string): void {
|
|
|
42
38
|
if (!crypto.timingSafeEqual(Buffer.from(expectedHash, "hex"), Buffer.from(actualHash, "hex"))) {
|
|
43
39
|
throw new Error(`File hash does not match, expected ${expectedHash} but got ${actualHash}`);
|
|
44
40
|
}
|
|
45
|
-
|
|
46
|
-
Log.info(`File hash matches, running module`);
|
|
41
|
+
Log.debug(`File hash matches, running module`);
|
|
47
42
|
|
|
48
43
|
// Write the code to a file
|
|
49
44
|
fs.writeFileSync(jsPath, code);
|
|
@@ -55,13 +50,10 @@ function runModule(expectedHash: string): void {
|
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
52
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
const hash = process.argv[2];
|
|
61
|
-
|
|
62
|
-
const startup = async (): Promise<void> => {
|
|
53
|
+
export const startup = async (hash: string): Promise<void> => {
|
|
63
54
|
try {
|
|
64
|
-
Log.
|
|
55
|
+
Log.debug(`Pepr Controller (v${version})`);
|
|
56
|
+
Log.debug("Applying the Pepr Store CRD if it doesn't exist");
|
|
65
57
|
await K8s(kind.CustomResourceDefinition).Apply(peprStoreCRD, { force: true });
|
|
66
58
|
|
|
67
59
|
validateHash(hash);
|
|
@@ -72,4 +64,6 @@ const startup = async (): Promise<void> => {
|
|
|
72
64
|
}
|
|
73
65
|
};
|
|
74
66
|
|
|
75
|
-
|
|
67
|
+
// Start the controller
|
|
68
|
+
const hash = process.argv[2];
|
|
69
|
+
startup(hash).catch(err => Log.error(err, `Error starting Pepr Controller`));
|
package/dist/cli/build.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { BuildContext, BuildOptions, BuildResult } from "esbuild";
|
|
2
|
-
import { Command } from "commander";
|
|
3
|
-
import { ModuleConfig } from "../lib/types";
|
|
4
|
-
export type Reloader = (opts: BuildResult<BuildOptions>) => void | Promise<void>;
|
|
5
|
-
export type PeprNestedFields = Pick<ModuleConfig, "uuid" | "onError" | "webhookTimeout" | "customLabels" | "alwaysIgnore" | "env" | "rbac" | "rbacMode"> & {
|
|
6
|
-
peprVersion: string;
|
|
7
|
-
};
|
|
8
|
-
export type PeprConfig = Omit<ModuleConfig, keyof PeprNestedFields> & {
|
|
9
|
-
pepr: PeprNestedFields & {
|
|
10
|
-
includedFiles: string[];
|
|
11
|
-
};
|
|
12
|
-
description: string;
|
|
13
|
-
version: string;
|
|
14
|
-
};
|
|
15
|
-
type LoadModuleReturn = {
|
|
16
|
-
cfg: PeprConfig;
|
|
17
|
-
entryPointPath: string;
|
|
18
|
-
modulePath: string;
|
|
19
|
-
name: string;
|
|
20
|
-
path: string;
|
|
21
|
-
uuid: string;
|
|
22
|
-
};
|
|
23
|
-
type BuildModuleReturn = {
|
|
24
|
-
ctx: BuildContext<BuildOptions>;
|
|
25
|
-
path: string;
|
|
26
|
-
cfg: PeprConfig;
|
|
27
|
-
uuid: string;
|
|
28
|
-
};
|
|
29
|
-
export default function (program: Command): void;
|
|
30
|
-
export declare function loadModule(entryPoint?: string): Promise<LoadModuleReturn>;
|
|
31
|
-
export declare function buildModule(reloader?: Reloader, entryPoint?: string, embed?: boolean): Promise<BuildModuleReturn | void>;
|
|
32
|
-
export declare function checkFormat(): Promise<void>;
|
|
33
|
-
export {};
|
|
34
|
-
//# sourceMappingURL=build.d.ts.map
|
package/dist/cli/build.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/cli/build.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAmB,MAAM,SAAS,CAAC;AAKnF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAIpC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAc5C,MAAM,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACjF,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,YAAY,EACV,MAAM,GACN,SAAS,GACT,gBAAgB,GAChB,cAAc,GACd,cAAc,GACd,KAAK,GACL,MAAM,GACN,UAAU,CACb,GAAG;IACF,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,MAAM,gBAAgB,CAAC,GAAG;IACpE,IAAI,EAAE,gBAAgB,GAAG;QACvB,aAAa,EAAE,MAAM,EAAE,CAAC;KACzB,CAAC;IACF,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,GAAG,EAAE,UAAU,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,UAAU,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CA8H/C;AAWD,wBAAsB,UAAU,CAAC,UAAU,SAAS,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAuC/E;AAED,wBAAsB,WAAW,CAC/B,QAAQ,CAAC,EAAE,QAAQ,EACnB,UAAU,SAAS,EACnB,KAAK,UAAO,GACX,OAAO,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAwEnC;AA6CD,wBAAsB,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC,CASjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.helpers.d.ts","sourceRoot":"","sources":["../../src/cli/build.helpers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAW,YAAY,EAAE,MAAM,SAAS,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAc9C,UAAU,YAAY;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AACD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAe9D;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACjF;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,EAC3B,GAAG,EAAE;IAAE,IAAI,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,GACnC,MAAM,CAaR;AAED;;;;GAIG;AAEH,wBAAsB,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAS9E;AAED;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,CAI/F;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAStE;AAED;;;;;;GAMG;AACH,wBAAsB,sBAAsB,CAC1C,aAAa,EAAE,MAAM,EAAE,EACvB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,IAAI,CAAC,CAQf;AAED;;;GAGG;AACH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,gBAAgB,EAAE,GAAG,IAAI,CAQjF;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,YAAY,EACpB,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAC7B,OAAO,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,CAarC;AAED,wBAAsB,0BAA0B,CAAC,GAAG,EAAE;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd,GAAG,OAAO,CAAC,IAAI,CAAC,CAiChB"}
|
package/dist/cli/deploy.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CapabilityExport } from "../lib/types";
|
|
2
|
-
import { Assets } from "../lib/assets/assets";
|
|
3
|
-
import { Command } from "commander";
|
|
4
|
-
export interface ImagePullSecretDetails {
|
|
5
|
-
pullSecret?: string;
|
|
6
|
-
dockerServer?: string;
|
|
7
|
-
dockerUsername?: string;
|
|
8
|
-
dockerEmail?: string;
|
|
9
|
-
dockerPassword?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare function validateImagePullSecretDetails(details: ImagePullSecretDetails): {
|
|
12
|
-
valid: boolean;
|
|
13
|
-
error?: string;
|
|
14
|
-
};
|
|
15
|
-
export type ValidatedImagePullSecretDetails = Required<ImagePullSecretDetails>;
|
|
16
|
-
export declare function getUserConfirmation(opts: {
|
|
17
|
-
yes: boolean;
|
|
18
|
-
}): Promise<boolean>;
|
|
19
|
-
export default function (program: Command): void;
|
|
20
|
-
export declare function validateNamespaces(capability: CapabilityExport, webhook: Assets): void;
|
|
21
|
-
//# sourceMappingURL=deploy.d.ts.map
|
package/dist/cli/deploy.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/cli/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQpC,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,8BAA8B,CAAC,OAAO,EAAE,sBAAsB,GAAG;IAC/E,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAmCA;AAED,MAAM,MAAM,+BAA+B,GAAG,QAAQ,CAAC,sBAAsB,CAAC,CAAC;AAkB/E,wBAAsB,mBAAmB,CAAC,IAAI,EAAE;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAAC,OAAO,CAAC,CAalF;AAkCD,MAAM,CAAC,OAAO,WAAW,OAAO,EAAE,OAAO,GAAG,IAAI,CA8B/C;AAED,wBAAgB,kBAAkB,CAAC,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAQtF"}
|