@datadog/datadog-ci-base 3.21.3 → 3.22.0
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.d.ts +13 -35
- package/dist/cli.js +26 -35
- package/dist/cli.js.map +1 -1
- package/dist/commands/aas/cli.d.ts +2 -0
- package/dist/commands/aas/cli.js +12 -0
- package/dist/commands/aas/cli.js.map +1 -0
- package/dist/commands/aas/common.d.ts +2 -2
- package/dist/commands/aas/common.js +2 -1
- package/dist/commands/aas/common.js.map +1 -1
- package/dist/commands/aas/instrument.d.ts +1 -1
- package/dist/commands/aas/instrument.js +5 -5
- package/dist/commands/aas/instrument.js.map +1 -1
- package/dist/commands/aas/uninstrument.d.ts +1 -1
- package/dist/commands/aas/uninstrument.js +5 -5
- package/dist/commands/aas/uninstrument.js.map +1 -1
- package/dist/commands/cloud-run/cli.d.ts +4 -0
- package/dist/commands/cloud-run/cli.js +14 -0
- package/dist/commands/cloud-run/cli.js.map +1 -0
- package/dist/commands/cloud-run/flare.d.ts +2 -2
- package/dist/commands/cloud-run/flare.js +2 -1
- package/dist/commands/cloud-run/flare.js.map +1 -1
- package/dist/commands/cloud-run/instrument.d.ts +2 -2
- package/dist/commands/cloud-run/instrument.js +6 -5
- package/dist/commands/cloud-run/instrument.js.map +1 -1
- package/dist/commands/cloud-run/uninstrument.d.ts +2 -2
- package/dist/commands/cloud-run/uninstrument.js +6 -5
- package/dist/commands/cloud-run/uninstrument.js.map +1 -1
- package/dist/commands/deployment/cli.d.ts +5 -0
- package/dist/commands/deployment/cli.js +16 -0
- package/dist/commands/deployment/cli.js.map +1 -0
- package/dist/commands/deployment/{correlate-image-command.d.ts → correlate-image.d.ts} +2 -2
- package/dist/commands/deployment/{correlate-image-command.js → correlate-image.js} +3 -2
- package/dist/commands/deployment/correlate-image.js.map +1 -0
- package/dist/commands/deployment/{correlate-command.d.ts → correlate.d.ts} +2 -2
- package/dist/commands/deployment/{correlate-command.js → correlate.js} +3 -2
- package/dist/commands/deployment/correlate.js.map +1 -0
- package/dist/commands/deployment/{gate-command.d.ts → gate.d.ts} +2 -2
- package/dist/commands/deployment/{gate-command.js → gate.js} +3 -2
- package/dist/commands/deployment/gate.js.map +1 -0
- package/dist/commands/deployment/{mark-command.d.ts → mark.d.ts} +2 -2
- package/dist/commands/deployment/{mark-command.js → mark.js} +3 -2
- package/dist/commands/deployment/mark.js.map +1 -0
- package/dist/commands/dora/cli.d.ts +2 -0
- package/dist/commands/dora/cli.js +10 -0
- package/dist/commands/dora/cli.js.map +1 -0
- package/dist/commands/dora/{deployment-command.d.ts → deployment.d.ts} +2 -2
- package/dist/commands/dora/{deployment-command.js → deployment.js} +7 -6
- package/dist/commands/dora/deployment.js.map +1 -0
- package/dist/commands/gate/cli.d.ts +2 -0
- package/dist/commands/gate/cli.js +10 -0
- package/dist/commands/gate/cli.js.map +1 -0
- package/dist/commands/gate/{evaluate-command.d.ts → evaluate.d.ts} +2 -2
- package/dist/commands/gate/{evaluate-command.js → evaluate.js} +3 -2
- package/dist/commands/gate/evaluate.js.map +1 -0
- package/dist/commands/git-metadata/cli.d.ts +2 -0
- package/dist/commands/git-metadata/cli.js +10 -0
- package/dist/commands/git-metadata/cli.js.map +1 -0
- package/dist/commands/git-metadata/upload.d.ts +2 -2
- package/dist/commands/git-metadata/upload.js +6 -5
- package/dist/commands/git-metadata/upload.js.map +1 -1
- package/dist/commands/lambda/cli.d.ts +4 -0
- package/dist/commands/lambda/cli.js +14 -0
- package/dist/commands/lambda/cli.js.map +1 -0
- package/dist/commands/lambda/flare.d.ts +2 -2
- package/dist/commands/lambda/flare.js +2 -1
- package/dist/commands/lambda/flare.js.map +1 -1
- package/dist/commands/lambda/instrument.d.ts +2 -2
- package/dist/commands/lambda/instrument.js +6 -5
- package/dist/commands/lambda/instrument.js.map +1 -1
- package/dist/commands/lambda/uninstrument.d.ts +2 -2
- package/dist/commands/lambda/uninstrument.js +6 -5
- package/dist/commands/lambda/uninstrument.js.map +1 -1
- package/dist/commands/plugin/check.d.ts +8 -0
- package/dist/commands/plugin/{check-command.js → check.js} +12 -19
- package/dist/commands/plugin/check.js.map +1 -0
- package/dist/commands/plugin/cli.d.ts +3 -0
- package/dist/commands/plugin/cli.js +14 -0
- package/dist/commands/plugin/cli.js.map +1 -0
- package/dist/commands/plugin/install.d.ts +7 -0
- package/dist/commands/plugin/install.js +42 -0
- package/dist/commands/plugin/install.js.map +1 -0
- package/dist/commands/plugin/list.d.ts +8 -0
- package/dist/commands/plugin/list.js +67 -0
- package/dist/commands/plugin/list.js.map +1 -0
- package/dist/commands/sarif/cli.d.ts +2 -0
- package/dist/commands/sarif/cli.js +10 -0
- package/dist/commands/sarif/cli.js.map +1 -0
- package/dist/commands/sarif/{upload-command.d.ts → upload.d.ts} +2 -2
- package/dist/commands/sarif/{upload-command.js → upload.js} +3 -2
- package/dist/commands/sarif/upload.js.map +1 -0
- package/dist/commands/sbom/cli.d.ts +2 -0
- package/dist/commands/sbom/cli.js +10 -0
- package/dist/commands/sbom/cli.js.map +1 -0
- package/dist/commands/sbom/{upload-command.d.ts → upload.d.ts} +2 -2
- package/dist/commands/sbom/{upload-command.js → upload.js} +3 -2
- package/dist/commands/sbom/upload.js.map +1 -0
- package/dist/commands/stepfunctions/cli.d.ts +3 -0
- package/dist/commands/stepfunctions/cli.js +12 -0
- package/dist/commands/stepfunctions/cli.js.map +1 -0
- package/dist/commands/stepfunctions/instrument.d.ts +2 -2
- package/dist/commands/stepfunctions/instrument.js +6 -5
- package/dist/commands/stepfunctions/instrument.js.map +1 -1
- package/dist/commands/stepfunctions/uninstrument.d.ts +2 -2
- package/dist/commands/stepfunctions/uninstrument.js +6 -5
- package/dist/commands/stepfunctions/uninstrument.js.map +1 -1
- package/dist/commands/synthetics/cli.d.ts +5 -0
- package/dist/commands/synthetics/cli.js +16 -0
- package/dist/commands/synthetics/cli.js.map +1 -0
- package/dist/commands/synthetics/{deploy-tests-command.d.ts → deploy-tests.d.ts} +2 -2
- package/dist/commands/synthetics/{deploy-tests-command.js → deploy-tests.js} +7 -6
- package/dist/commands/synthetics/deploy-tests.js.map +1 -0
- package/dist/commands/synthetics/{import-tests-command.d.ts → import-tests.d.ts} +2 -2
- package/dist/commands/synthetics/{import-tests-command.js → import-tests.js} +7 -6
- package/dist/commands/synthetics/import-tests.js.map +1 -0
- package/dist/commands/synthetics/{run-tests-command.d.ts → run-tests.d.ts} +2 -2
- package/dist/commands/synthetics/{run-tests-command.js → run-tests.js} +7 -6
- package/dist/commands/synthetics/run-tests.js.map +1 -0
- package/dist/commands/synthetics/{upload-application-command.d.ts → upload-application.d.ts} +2 -2
- package/dist/commands/synthetics/{upload-application-command.js → upload-application.js} +7 -6
- package/dist/commands/synthetics/upload-application.js.map +1 -0
- package/dist/commands/tag/cli.d.ts +2 -1
- package/dist/commands/tag/cli.js +7 -2
- package/dist/commands/tag/cli.js.map +1 -1
- package/dist/commands/tag/{tag-command.d.ts → tag.d.ts} +2 -2
- package/dist/commands/tag/{tag-command.js → tag.js} +3 -2
- package/dist/commands/tag/tag.js.map +1 -0
- package/dist/helpers/git/source-code-integration.js +1 -1
- package/dist/helpers/git/source-code-integration.js.map +1 -1
- package/dist/helpers/interfaces.d.ts +2 -2
- package/dist/helpers/is-standalone-binary.d.ts +1 -1
- package/dist/helpers/is-standalone-binary.js +0 -1
- package/dist/helpers/is-standalone-binary.js.map +1 -1
- package/dist/helpers/plugin.d.ts +4 -1
- package/dist/helpers/plugin.js +96 -11
- package/dist/helpers/plugin.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +2 -2
- package/dist/version.js.map +1 -1
- package/package.json +18 -11
- package/dist/commands/deployment/correlate-command.js.map +0 -1
- package/dist/commands/deployment/correlate-image-command.js.map +0 -1
- package/dist/commands/deployment/gate-command.js.map +0 -1
- package/dist/commands/deployment/mark-command.js.map +0 -1
- package/dist/commands/dora/deployment-command.js.map +0 -1
- package/dist/commands/gate/evaluate-command.js.map +0 -1
- package/dist/commands/plugin/check-command.d.ts +0 -7
- package/dist/commands/plugin/check-command.js.map +0 -1
- package/dist/commands/sarif/upload-command.js.map +0 -1
- package/dist/commands/sbom/upload-command.js.map +0 -1
- package/dist/commands/synthetics/deploy-tests-command.js.map +0 -1
- package/dist/commands/synthetics/import-tests-command.js.map +0 -1
- package/dist/commands/synthetics/run-tests-command.js.map +0 -1
- package/dist/commands/synthetics/upload-application-command.js.map +0 -1
- package/dist/commands/tag/tag-command.js.map +0 -1
package/dist/cli.d.ts
CHANGED
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
import { CloudRunFlareCommand } from './commands/cloud-run/flare';
|
|
2
|
-
import { InstrumentCommand as CloudRunInstrumentCommand } from './commands/cloud-run/instrument';
|
|
3
|
-
import { UninstrumentCommand as CloudRunUninstrumentCommand } from './commands/cloud-run/uninstrument';
|
|
4
|
-
import { DeploymentCorrelateCommand } from './commands/deployment/correlate-command';
|
|
5
|
-
import { DeploymentCorrelateImageCommand } from './commands/deployment/correlate-image-command';
|
|
6
|
-
import { DeploymentGateCommand } from './commands/deployment/gate-command';
|
|
7
|
-
import { DeploymentMarkCommand } from './commands/deployment/mark-command';
|
|
8
|
-
import { DORADeploymentCommand } from './commands/dora/deployment-command';
|
|
9
|
-
import { GateEvaluateCommand } from './commands/gate/evaluate-command';
|
|
10
|
-
import { UploadCommand } from './commands/git-metadata/upload';
|
|
11
|
-
import { LambdaFlareCommand } from './commands/lambda/flare';
|
|
12
|
-
import { InstrumentCommand as LambdaInstrumentCommand } from './commands/lambda/instrument';
|
|
13
|
-
import { UninstrumentCommand as LambdaUninstrumentCommand } from './commands/lambda/uninstrument';
|
|
14
|
-
import { CheckCommand } from './commands/plugin/check-command';
|
|
15
|
-
import { SarifUploadCommand } from './commands/sarif/upload-command';
|
|
16
|
-
import { SbomUploadCommand } from './commands/sbom/upload-command';
|
|
17
|
-
import { InstrumentStepFunctionsCommand } from './commands/stepfunctions/instrument';
|
|
18
|
-
import { UninstrumentStepFunctionsCommand } from './commands/stepfunctions/uninstrument';
|
|
19
|
-
import { DeployTestsCommand } from './commands/synthetics/deploy-tests-command';
|
|
20
|
-
import { ImportTestsCommand } from './commands/synthetics/import-tests-command';
|
|
21
|
-
import { RunTestsCommand } from './commands/synthetics/run-tests-command';
|
|
22
|
-
import { UploadApplicationCommand } from './commands/synthetics/upload-application-command';
|
|
23
|
-
import { TagCommand } from './commands/tag/tag-command';
|
|
24
1
|
export declare const commands: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
2
|
+
aas: typeof import("./commands/aas/uninstrument").AasUninstrumentCommand[];
|
|
3
|
+
'cloud-run': (typeof import("./commands/cloud-run/flare").CloudRunFlareCommand | typeof import("./commands/cloud-run/instrument").CloudRunInstrumentCommand | typeof import("./commands/cloud-run/uninstrument").CloudRunUninstrumentCommand)[];
|
|
4
|
+
deployment: (typeof import("./commands/deployment/correlate-image").DeploymentCorrelateImageCommand | typeof import("./commands/deployment/correlate").DeploymentCorrelateCommand | typeof import("./commands/deployment/gate").DeploymentGateCommand | typeof import("./commands/deployment/mark").DeploymentMarkCommand)[];
|
|
5
|
+
dora: typeof import("./commands/dora/deployment").DoraDeploymentCommand[];
|
|
6
|
+
gate: typeof import("./commands/gate/evaluate").GateEvaluateCommand[];
|
|
7
|
+
'git-metadata': typeof import("./commands/git-metadata/upload").GitMetadataUploadCommand[];
|
|
8
|
+
lambda: (typeof import("./commands/lambda/flare").LambdaFlareCommand | typeof import("./commands/lambda/instrument").LambdaInstrumentCommand | typeof import("./commands/lambda/uninstrument").LambdaUninstrumentCommand)[];
|
|
9
|
+
plugin: (typeof import("./commands/plugin/install").PluginInstallCommand | typeof import("./commands/plugin/list").PluginListCommand)[];
|
|
10
|
+
sarif: typeof import("./commands/sarif/upload").SarifUploadCommand[];
|
|
11
|
+
sbom: typeof import("./commands/sbom/upload").SbomUploadCommand[];
|
|
12
|
+
stepfunctions: (typeof import("./commands/stepfunctions/instrument").StepfunctionsInstrumentCommand | typeof import("./commands/stepfunctions/uninstrument").StepfunctionsUninstrumentCommand)[];
|
|
13
|
+
synthetics: (typeof import("./commands/synthetics/deploy-tests").SyntheticsDeployTestsCommand | typeof import("./commands/synthetics/import-tests").SyntheticsImportTestsCommand | typeof import("./commands/synthetics/run-tests").SyntheticsRunTestsCommand | typeof import("./commands/synthetics/upload-application").SyntheticsUploadApplicationCommand)[];
|
|
14
|
+
tag: typeof import("./commands/tag/tag").TagCommand[];
|
|
37
15
|
};
|
|
38
16
|
/**
|
|
39
17
|
* Some command scopes do not have a plugin package, and their logic is entirely included in `@datadog/datadog-ci-base`.
|
package/dist/cli.js
CHANGED
|
@@ -1,43 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.noPluginExceptions = exports.commands = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const check_command_1 = require("./commands/plugin/check-command");
|
|
18
|
-
const upload_command_1 = require("./commands/sarif/upload-command");
|
|
19
|
-
const upload_command_2 = require("./commands/sbom/upload-command");
|
|
20
|
-
const instrument_3 = require("./commands/stepfunctions/instrument");
|
|
21
|
-
const uninstrument_3 = require("./commands/stepfunctions/uninstrument");
|
|
22
|
-
const deploy_tests_command_1 = require("./commands/synthetics/deploy-tests-command");
|
|
23
|
-
const import_tests_command_1 = require("./commands/synthetics/import-tests-command");
|
|
24
|
-
const run_tests_command_1 = require("./commands/synthetics/run-tests-command");
|
|
25
|
-
const upload_application_command_1 = require("./commands/synthetics/upload-application-command");
|
|
26
|
-
const tag_command_1 = require("./commands/tag/tag-command");
|
|
4
|
+
const cli_1 = require("./commands/aas/cli");
|
|
5
|
+
const cli_2 = require("./commands/cloud-run/cli");
|
|
6
|
+
const cli_3 = require("./commands/deployment/cli");
|
|
7
|
+
const cli_4 = require("./commands/dora/cli");
|
|
8
|
+
const cli_5 = require("./commands/gate/cli");
|
|
9
|
+
const cli_6 = require("./commands/git-metadata/cli");
|
|
10
|
+
const cli_7 = require("./commands/lambda/cli");
|
|
11
|
+
const cli_8 = require("./commands/plugin/cli");
|
|
12
|
+
const cli_9 = require("./commands/sarif/cli");
|
|
13
|
+
const cli_10 = require("./commands/sbom/cli");
|
|
14
|
+
const cli_11 = require("./commands/stepfunctions/cli");
|
|
15
|
+
const cli_12 = require("./commands/synthetics/cli");
|
|
16
|
+
const cli_13 = require("./commands/tag/cli");
|
|
27
17
|
// prettier-ignore
|
|
28
18
|
exports.commands = {
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'
|
|
34
|
-
'
|
|
35
|
-
'
|
|
36
|
-
'
|
|
37
|
-
'
|
|
38
|
-
'
|
|
39
|
-
'
|
|
40
|
-
'
|
|
19
|
+
'aas': cli_1.commands,
|
|
20
|
+
'cloud-run': cli_2.commands,
|
|
21
|
+
'deployment': cli_3.commands,
|
|
22
|
+
'dora': cli_4.commands,
|
|
23
|
+
'gate': cli_5.commands,
|
|
24
|
+
'git-metadata': cli_6.commands,
|
|
25
|
+
'lambda': cli_7.commands,
|
|
26
|
+
'plugin': cli_8.commands,
|
|
27
|
+
'sarif': cli_9.commands,
|
|
28
|
+
'sbom': cli_10.commands,
|
|
29
|
+
'stepfunctions': cli_11.commands,
|
|
30
|
+
'synthetics': cli_12.commands,
|
|
31
|
+
'tag': cli_13.commands,
|
|
41
32
|
};
|
|
42
33
|
/**
|
|
43
34
|
* Some command scopes do not have a plugin package, and their logic is entirely included in `@datadog/datadog-ci-base`.
|
package/dist/cli.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;;AAGA,4CAA0D;AAC1D,kDAAqE;AACrE,mDAAwE;AACxE,6CAA4D;AAC5D,6CAA4D;AAC5D,qDAA2E;AAC3E,+CAAgE;AAChE,+CAAgE;AAChE,8CAA8D;AAC9D,8CAA4D;AAC5D,uDAA8E;AAC9E,oDAAwE;AACxE,6CAA0D;AAE1D,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,KAAK,EAAE,cAAW;IAClB,WAAW,EAAE,cAAgB;IAC7B,YAAY,EAAE,cAAkB;IAChC,MAAM,EAAE,cAAY;IACpB,MAAM,EAAE,cAAY;IACpB,cAAc,EAAE,cAAmB;IACnC,QAAQ,EAAE,cAAc;IACxB,QAAQ,EAAE,cAAc;IACxB,OAAO,EAAE,cAAa;IACtB,MAAM,EAAE,eAAY;IACpB,eAAe,EAAE,eAAqB;IACtC,YAAY,EAAE,eAAkB;IAChC,KAAK,EAAE,eAAW;CACe,CAAA;AAEnC;;GAEG;AACU,QAAA,kBAAkB,GAAgB,IAAI,GAAG,CAAC,CAAC,cAAc,EAAE,QAAQ,EAAE,KAAK,CAAC,CAEvF,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commands = void 0;
|
|
4
|
+
/* eslint-disable import-x/order */
|
|
5
|
+
const instrument_1 = require("./instrument");
|
|
6
|
+
const uninstrument_1 = require("./uninstrument");
|
|
7
|
+
// prettier-ignore
|
|
8
|
+
exports.commands = [
|
|
9
|
+
instrument_1.AasInstrumentCommand,
|
|
10
|
+
uninstrument_1.AasUninstrumentCommand,
|
|
11
|
+
];
|
|
12
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/aas/cli.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,6CAAiD;AACjD,iDAAqD;AAErD,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,iCAAoB;IACpB,qCAAsB;CACvB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
2
|
export declare const ENV_VAR_REGEX: RegExp;
|
|
3
3
|
/**
|
|
4
4
|
* Maps Subscription ID to Resource Group to App Service names.
|
|
@@ -32,7 +32,7 @@ interface Resource {
|
|
|
32
32
|
name: string;
|
|
33
33
|
}
|
|
34
34
|
export declare const parseResourceId: (resourceId: string) => Resource | undefined;
|
|
35
|
-
export declare abstract class AasCommand extends
|
|
35
|
+
export declare abstract class AasCommand extends BaseCommand {
|
|
36
36
|
dryRun: boolean;
|
|
37
37
|
private subscriptionId;
|
|
38
38
|
private resourceGroup;
|
|
@@ -16,6 +16,7 @@ const env_1 = require("../../helpers/env");
|
|
|
16
16
|
const fips_1 = require("../../helpers/fips");
|
|
17
17
|
const renderer_1 = require("../../helpers/renderer");
|
|
18
18
|
const utils_1 = require("../../helpers/utils");
|
|
19
|
+
const __1 = require("../..");
|
|
19
20
|
exports.ENV_VAR_REGEX = /^([\w.]+)=(.*)$/;
|
|
20
21
|
const parseResourceId = (resourceId) => {
|
|
21
22
|
const match = resourceId.match(/^\/subscriptions\/([^/]+)\/resourceGroups\/([^/]+)\/providers\/Microsoft\.Web\/sites\/([^/]+)$/i);
|
|
@@ -25,7 +26,7 @@ const parseResourceId = (resourceId) => {
|
|
|
25
26
|
}
|
|
26
27
|
};
|
|
27
28
|
exports.parseResourceId = parseResourceId;
|
|
28
|
-
class AasCommand extends
|
|
29
|
+
class AasCommand extends __1.BaseCommand {
|
|
29
30
|
constructor() {
|
|
30
31
|
var _a, _b;
|
|
31
32
|
super(...arguments);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/commands/aas/common.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/commands/aas/common.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAgC;AAEhC,+CAA2F;AAC3F,2CAA2C;AAC3C,6CAA6C;AAC7C,qDAAgD;AAChD,+CAA+E;AAE/E,6BAAiC;AAEpB,QAAA,aAAa,GAAG,iBAAiB,CAAA;AA0CvC,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAwB,EAAE;IAC1E,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAC5B,iGAAiG,CAClG,CAAA;IACD,IAAI,KAAK,EAAE;QACT,MAAM,CAAC,EAAE,cAAc,EAAE,aAAa,EAAE,IAAI,CAAC,GAAG,KAAK,CAAA;QAErD,OAAO,EAAC,cAAc,EAAE,aAAa,EAAE,IAAI,EAAC,CAAA;KAC7C;AACH,CAAC,CAAA;AATY,QAAA,eAAe,mBAS3B;AAED,MAAsB,UAAW,SAAQ,eAAW;IAApD;;;QACS,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,cAAc,EAAE,KAAK,EAAE;YACpD,WAAW,EAAE,6DAA6D;SAC3E,CAAC,CAAA;QACM,mBAAc,GAAG,kBAAM,CAAC,MAAM,CAAC,sBAAsB,EAAE;YAC7D,WAAW,EAAE,kDAAkD;SAChE,CAAC,CAAA;QACM,kBAAa,GAAG,kBAAM,CAAC,MAAM,CAAC,qBAAqB,EAAE;YAC3D,WAAW,EAAE,6DAA6D;SAC3E,CAAC,CAAA;QACM,YAAO,GAAG,kBAAM,CAAC,MAAM,CAAC,WAAW,EAAE;YAC3C,WAAW,EAAE,6CAA6C;SAC3D,CA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E,MAAM,CAAC,CAAA;;KACrC;CACF;AAhHD,gCAgHC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AasCommand, AasConfigOptions } from './common';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AasInstrumentCommand extends AasCommand {
|
|
3
3
|
static paths: string[][];
|
|
4
4
|
static usage: import("clipanion").Usage;
|
|
5
5
|
private service;
|
|
@@ -9,11 +9,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AasInstrumentCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("../../helpers/plugin");
|
|
15
15
|
const common_1 = require("./common");
|
|
16
|
-
class
|
|
16
|
+
class AasInstrumentCommand extends common_1.AasCommand {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|
|
19
19
|
this.service = clipanion_1.Option.String('--service', {
|
|
@@ -71,9 +71,9 @@ class InstrumentCommand extends common_1.AasCommand {
|
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
exports.
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
exports.AasInstrumentCommand = AasInstrumentCommand;
|
|
75
|
+
AasInstrumentCommand.paths = [['aas', 'instrument']];
|
|
76
|
+
AasInstrumentCommand.usage = clipanion_1.Command.Usage({
|
|
77
77
|
category: 'Serverless',
|
|
78
78
|
description: 'Apply Datadog instrumentation to an Azure App Service.',
|
|
79
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../../../src/commands/aas/instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,qCAAqD;AAErD,MAAa,
|
|
1
|
+
{"version":3,"file":"instrument.js","source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,CAAC,CAAA;QAEM,cAAS,GAAG,kBAAM,CAAC,MAAM,CAAC,0BAA0B,EAAE;YAC5D,WAAW,EAAE,+EAA+E;SAC7F,CAAC,CAAA;IAqBJ,CAAC;IAnBC,IAAW,gBAAgB;QACzB,OAAO;YACL,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;YACvC,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,qBAAqB,EAAE,IAAI,CAAC,qBAAqB;YACjD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;YACzC,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAA;IACH,CAAC;IAEY,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAnEH,oDAoEC;AAnEe,0BAAK,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC,AAA1B,CAA0B;AAC/B,0BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,wDAAwD;CACtE,CAAC,AAHiB,CAGjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AasCommand } from './common';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AasUninstrumentCommand extends AasCommand {
|
|
3
3
|
static paths: string[][];
|
|
4
4
|
static usage: import("clipanion").Usage;
|
|
5
5
|
execute(): Promise<number | void>;
|
|
@@ -9,20 +9,20 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AasUninstrumentCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("../../helpers/plugin");
|
|
15
15
|
const common_1 = require("./common");
|
|
16
|
-
class
|
|
16
|
+
class AasUninstrumentCommand extends common_1.AasCommand {
|
|
17
17
|
execute() {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
return (0, plugin_1.executePluginCommand)(this);
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
exports.
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
exports.AasUninstrumentCommand = AasUninstrumentCommand;
|
|
24
|
+
AasUninstrumentCommand.paths = [['aas', 'uninstrument']];
|
|
25
|
+
AasUninstrumentCommand.usage = clipanion_1.Command.Usage({
|
|
26
26
|
category: 'Serverless',
|
|
27
27
|
description: 'Remove Datadog instrumentation from an Azure App Service.',
|
|
28
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstrument.js","sourceRoot":"","sources":["../../../src/commands/aas/uninstrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAiC;AAEjC,iDAAyD;AAEzD,qCAAmC;AAEnC,MAAa,
|
|
1
|
+
{"version":3,"file":"uninstrument.js","sourceRoot":"","sources":["../../../src/commands/aas/uninstrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAiC;AAEjC,iDAAyD;AAEzD,qCAAmC;AAEnC,MAAa,sBAAuB,SAAQ,mBAAU;IAOvC,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AATH,wDAUC;AATe,4BAAK,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC,CAAA;AACjC,4BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,2DAA2D;CACzE,CAAC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CloudRunFlareCommand } from './flare';
|
|
2
|
+
import { CloudRunInstrumentCommand } from './instrument';
|
|
3
|
+
import { CloudRunUninstrumentCommand } from './uninstrument';
|
|
4
|
+
export declare const commands: (typeof CloudRunFlareCommand | typeof CloudRunInstrumentCommand | typeof CloudRunUninstrumentCommand)[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commands = void 0;
|
|
4
|
+
/* eslint-disable import-x/order */
|
|
5
|
+
const flare_1 = require("./flare");
|
|
6
|
+
const instrument_1 = require("./instrument");
|
|
7
|
+
const uninstrument_1 = require("./uninstrument");
|
|
8
|
+
// prettier-ignore
|
|
9
|
+
exports.commands = [
|
|
10
|
+
flare_1.CloudRunFlareCommand,
|
|
11
|
+
instrument_1.CloudRunInstrumentCommand,
|
|
12
|
+
uninstrument_1.CloudRunUninstrumentCommand,
|
|
13
|
+
];
|
|
14
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/cli.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,mCAA4C;AAC5C,6CAAsD;AACtD,iDAA0D;AAE1D,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,4BAAoB;IACpB,sCAAyB;IACzB,0CAA2B;CAC5B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class CloudRunFlareCommand extends
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
|
+
export declare class CloudRunFlareCommand extends BaseCommand {
|
|
3
3
|
static paths: string[][];
|
|
4
4
|
static usage: import("clipanion").Usage;
|
|
5
5
|
protected isDryRun: boolean;
|
|
@@ -12,7 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CloudRunFlareCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("../../helpers/plugin");
|
|
15
|
-
|
|
15
|
+
const __1 = require("../..");
|
|
16
|
+
class CloudRunFlareCommand extends __1.BaseCommand {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
18
19
|
this.isDryRun = clipanion_1.Option.Boolean('-d,--dry,--dry-run', false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flare.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/flare.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,MAAa,oBAAqB,SAAQ,
|
|
1
|
+
{"version":3,"file":"flare.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/flare.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,MAAa,oBAAqB,SAAQ,eAAW;IAArD;;QAQY,aAAQ,GAAG,kBAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAA;QACtD,aAAQ,GAAG,kBAAM,CAAC,OAAO,CAAC,aAAa,EAAE,KAAK,CAAC,CAAA;QAC/C,YAAO,GAAG,kBAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;QACvC,YAAO,GAAG,kBAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;QACvC,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAA;QACnD,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;QACtC,UAAK,GAAG,kBAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;QACnC,UAAK,GAAG,kBAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QAChC,QAAG,GAAG,kBAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAI5B,SAAI,GAAG,kBAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;IAI1E,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAxBH,oDAyBC;AAxBe,0BAAK,GAAG,CAAC,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,AAA3B,CAA2B;AAEhC,0BAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,iEAAiE;CAC/E,CAAC,AAHiB,CAGjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
|
+
export declare class CloudRunInstrumentCommand extends BaseCommand {
|
|
3
3
|
static paths: string[][];
|
|
4
4
|
static usage: import("clipanion").Usage;
|
|
5
5
|
protected dryRun: boolean;
|
|
@@ -9,14 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CloudRunInstrumentCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("../../helpers/plugin");
|
|
15
|
+
const __1 = require("../..");
|
|
15
16
|
const constants_1 = require("./constants");
|
|
16
17
|
const DEFAULT_VOLUME_PATH = '/shared-volume';
|
|
17
18
|
const DEFAULT_LOGS_PATH = '/shared-volume/logs/*.log';
|
|
18
19
|
const DEFAULT_SIDECAR_IMAGE = 'gcr.io/datadoghq/serverless-init:latest';
|
|
19
|
-
class
|
|
20
|
+
class CloudRunInstrumentCommand extends __1.BaseCommand {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
22
23
|
// protected configPath = Option.String('--config') implement if requested by customers
|
|
@@ -79,9 +80,9 @@ class InstrumentCommand extends clipanion_1.Command {
|
|
|
79
80
|
});
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
exports.
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
exports.CloudRunInstrumentCommand = CloudRunInstrumentCommand;
|
|
84
|
+
CloudRunInstrumentCommand.paths = [['cloud-run', 'instrument']];
|
|
85
|
+
CloudRunInstrumentCommand.usage = clipanion_1.Command.Usage({
|
|
85
86
|
category: 'Serverless',
|
|
86
87
|
description: 'Apply Datadog instrumentation to a Cloud Run app.',
|
|
87
88
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,2CAAqE;AAErE,MAAM,mBAAmB,GAAG,gBAAgB,CAAA;AAC5C,MAAM,iBAAiB,GAAG,2BAA2B,CAAA;AAErD,MAAM,qBAAqB,GAAG,yCAAyC,CAAA;AAEvE,MAAa,
|
|
1
|
+
{"version":3,"file":"instrument.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/instrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,2CAAqE;AAErE,MAAM,mBAAmB,GAAG,gBAAgB,CAAA;AAC5C,MAAM,iBAAiB,GAAG,2BAA2B,CAAA;AAErD,MAAM,qBAAqB,GAAG,yCAAyC,CAAA;AAEvE,MAAa,yBAA0B,SAAQ,eAAW;IAA1D;;QAQE,uFAAuF;QAC7E,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAA;QACpD,gBAAW,GAAG,kBA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AC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,mDAAmD;CACjE,CAAC,AAHiB,CAGjB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
|
+
export declare class CloudRunUninstrumentCommand extends BaseCommand {
|
|
3
3
|
static paths: string[][];
|
|
4
4
|
static usage: import("clipanion").Usage;
|
|
5
5
|
protected dryRun: boolean;
|
|
@@ -9,11 +9,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.CloudRunUninstrumentCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("../../helpers/plugin");
|
|
15
|
+
const __1 = require("../..");
|
|
15
16
|
const constants_1 = require("./constants");
|
|
16
|
-
class
|
|
17
|
+
class CloudRunUninstrumentCommand extends __1.BaseCommand {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
19
20
|
this.dryRun = clipanion_1.Option.Boolean('-d,--dry,--dry-run', false);
|
|
@@ -44,9 +45,9 @@ class UninstrumentCommand extends clipanion_1.Command {
|
|
|
44
45
|
});
|
|
45
46
|
}
|
|
46
47
|
}
|
|
47
|
-
exports.
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
exports.CloudRunUninstrumentCommand = CloudRunUninstrumentCommand;
|
|
49
|
+
CloudRunUninstrumentCommand.paths = [['cloud-run', 'uninstrument']];
|
|
50
|
+
CloudRunUninstrumentCommand.usage = clipanion_1.Command.Usage({
|
|
50
51
|
category: 'Serverless',
|
|
51
52
|
description: 'Revert Datadog instrumentation in a Cloud Run app.',
|
|
52
53
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uninstrument.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/uninstrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,2CAAqE;AAErE,MAAa,
|
|
1
|
+
{"version":3,"file":"uninstrument.js","sourceRoot":"","sources":["../../../src/commands/cloud-run/uninstrument.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,iDAAyD;AAEzD,6BAAiC;AAEjC,2CAAqE;AAErE,MAAa,2BAA4B,SAAQ,eAAW;IAA5D;;QAQY,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,oBAAoB,EAAE,KAAK,CAAC,CAAA;QACpD,YAAO,GAAG,kBAAM,CAAC,MAAM,CAAC,cAAc,EAAE;YAChD,WAAW,EAAE,gBAAgB;SAC9B,CAAC,CAAA;QACQ,aAAQ,GAAG,kBAAM,CAAC,KAAK,CAAC,yBAAyB,EAAE,EAAE,EAAE;YAC/D,WAAW,EAAE,oCAAoC;SAClD,CAAC,CAAA;QACQ,gBAAW,GAAG,kBAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,KAAK,EAAE;YAChE,WAAW,EAAE,gCAAgC;SAC9C,CAAC,CAAA;QACQ,WAAM,GAAG,kBAAM,CAAC,MAAM,CAAC,aAAa,EAAE;YAC9C,WAAW,EAAE,4CAA4C;SAC1D,CAAC,CAAA;QACQ,gBAAW,GAAG,kBAAM,CAAC,MAAM,CAAC,gBAAgB,EAAE,gCAAoB,EAAE;YAC5E,WAAW,EAAE,2GAA2G,gCAAoB,GAAG;SAChJ,CAAC,CAAA;QACQ,qBAAgB,GAAG,kBAAM,CAAC,MAAM,CAAC,sBAAsB,EAAE,+BAAmB,EAAE;YACtF,WAAW,EAAE,6GAA6G,+BAAmB,GAAG;SACjJ,CAAC,CAAA;QACQ,SAAI,GAAG,kBAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;IAK1E,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAhCH,kEAiCC;AAhCe,iCAAK,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,AAAlC,CAAkC;AAEvC,iCAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,YAAY;IACtB,WAAW,EAAE,oDAAoD;CAClE,CAAC,AAHiB,CAGjB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DeploymentCorrelateImageCommand } from './correlate-image';
|
|
2
|
+
import { DeploymentCorrelateCommand } from './correlate';
|
|
3
|
+
import { DeploymentGateCommand } from './gate';
|
|
4
|
+
import { DeploymentMarkCommand } from './mark';
|
|
5
|
+
export declare const commands: (typeof DeploymentCorrelateImageCommand | typeof DeploymentCorrelateCommand | typeof DeploymentGateCommand | typeof DeploymentMarkCommand)[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.commands = void 0;
|
|
4
|
+
/* eslint-disable import-x/order */
|
|
5
|
+
const correlate_image_1 = require("./correlate-image");
|
|
6
|
+
const correlate_1 = require("./correlate");
|
|
7
|
+
const gate_1 = require("./gate");
|
|
8
|
+
const mark_1 = require("./mark");
|
|
9
|
+
// prettier-ignore
|
|
10
|
+
exports.commands = [
|
|
11
|
+
correlate_image_1.DeploymentCorrelateImageCommand,
|
|
12
|
+
correlate_1.DeploymentCorrelateCommand,
|
|
13
|
+
gate_1.DeploymentGateCommand,
|
|
14
|
+
mark_1.DeploymentMarkCommand,
|
|
15
|
+
];
|
|
16
|
+
//# sourceMappingURL=cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../src/commands/deployment/cli.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AACnC,uDAAiE;AACjE,2CAAsD;AACtD,iCAA4C;AAC5C,iCAA4C;AAE5C,kBAAkB;AACL,QAAA,QAAQ,GAAG;IACtB,iDAA+B;IAC/B,sCAA0B;IAC1B,4BAAqB;IACrB,4BAAqB;CACtB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class DeploymentCorrelateImageCommand extends
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
|
+
export declare class DeploymentCorrelateImageCommand extends BaseCommand {
|
|
3
3
|
static paths: string[][];
|
|
4
4
|
static usage: import("clipanion").Usage;
|
|
5
5
|
protected commitSha: string | undefined;
|
|
@@ -12,7 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.DeploymentCorrelateImageCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("@datadog/datadog-ci-base/helpers/plugin");
|
|
15
|
-
|
|
15
|
+
const __1 = require("../..");
|
|
16
|
+
class DeploymentCorrelateImageCommand extends __1.BaseCommand {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
18
19
|
this.commitSha = clipanion_1.Option.String('--commit-sha');
|
|
@@ -35,4 +36,4 @@ DeploymentCorrelateImageCommand.usage = clipanion_1.Command.Usage({
|
|
|
35
36
|
description: 'Correlate images with their source commit.',
|
|
36
37
|
details: 'This command will correlate the image with a commit of the application repository.',
|
|
37
38
|
});
|
|
38
|
-
//# sourceMappingURL=correlate-image
|
|
39
|
+
//# sourceMappingURL=correlate-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"correlate-image.js","sourceRoot":"","sources":["../../../src/commands/deployment/correlate-image.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,oEAA4E;AAE5E,6BAAiC;AAEjC,MAAa,+BAAgC,SAAQ,eAAW;IAAhE;;QASY,cAAS,GAAG,kBAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAA;QACzC,kBAAa,GAAG,kBAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAA;QACjD,UAAK,GAAG,kBAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;QAChC,SAAI,GAAG,kBAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;QAC9D,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;IAKvD,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAlBH,0EAmBC;AAlBe,qCAAK,GAAG,CAAC,CAAC,YAAY,EAAE,iBAAiB,CAAC,CAAC,AAAtC,CAAsC;AAE3C,qCAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,4CAA4C;IACzD,OAAO,EAAE,oFAAoF;CAC9F,CAAC,AAJiB,CAIjB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
2
|
/**
|
|
3
3
|
* This command collects environment variables and git information to correlate commits from the
|
|
4
4
|
* source code repository to the configuration repository. This allows to connect pipelines triggering
|
|
5
5
|
* changes on the configuration repository to deployments from gitOps CD providers
|
|
6
6
|
*/
|
|
7
|
-
export declare class DeploymentCorrelateCommand extends
|
|
7
|
+
export declare class DeploymentCorrelateCommand extends BaseCommand {
|
|
8
8
|
static paths: string[][];
|
|
9
9
|
static usage: import("clipanion").Usage;
|
|
10
10
|
protected cdProviderParam: string | undefined;
|
|
@@ -12,12 +12,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.DeploymentCorrelateCommand = void 0;
|
|
13
13
|
const clipanion_1 = require("clipanion");
|
|
14
14
|
const plugin_1 = require("@datadog/datadog-ci-base/helpers/plugin");
|
|
15
|
+
const __1 = require("../..");
|
|
15
16
|
/**
|
|
16
17
|
* This command collects environment variables and git information to correlate commits from the
|
|
17
18
|
* source code repository to the configuration repository. This allows to connect pipelines triggering
|
|
18
19
|
* changes on the configuration repository to deployments from gitOps CD providers
|
|
19
20
|
*/
|
|
20
|
-
class DeploymentCorrelateCommand extends
|
|
21
|
+
class DeploymentCorrelateCommand extends __1.BaseCommand {
|
|
21
22
|
constructor() {
|
|
22
23
|
super(...arguments);
|
|
23
24
|
this.cdProviderParam = clipanion_1.Option.String('--provider');
|
|
@@ -54,4 +55,4 @@ DeploymentCorrelateCommand.usage = clipanion_1.Command.Usage({
|
|
|
54
55
|
],
|
|
55
56
|
],
|
|
56
57
|
});
|
|
57
|
-
//# sourceMappingURL=correlate
|
|
58
|
+
//# sourceMappingURL=correlate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"correlate.js","sourceRoot":"","sources":["../../../src/commands/deployment/correlate.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAyC;AAEzC,oEAA4E;AAE5E,6BAAiC;AAEjC;;;;GAIG;AACH,MAAa,0BAA2B,SAAQ,eAAW;IAA3D;;QAuBY,oBAAe,GAAG,kBAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAA;QAC7C,sBAAiB,GAAG,kBAAM,CAAC,MAAM,CAAC,eAAe,CAAC,CAAA;QAClD,sBAAiB,GAAG,kBAAM,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QACjD,WAAM,GAAG,kBAAM,CAAC,OAAO,CAAC,WAAW,EAAE,KAAK,CAAC,CAAA;QAE3C,SAAI,GAAG,kBAAM,CAAC,OAAO,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAA;QACtC,oBAAe,GAAG,kBAAM,CAAC,OAAO,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAA;IAK1E,CAAC;IAHc,OAAO;;YAClB,OAAO,IAAA,6BAAoB,EAAC,IAAI,CAAC,CAAA;QACnC,CAAC;KAAA;;AAjCH,gEAkCC;AAjCe,gCAAK,GAAG,CAAC,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC,AAAhC,CAAgC;AAErC,gCAAK,GAAG,mBAAO,CAAC,KAAK,CAAC;IAClC,QAAQ,EAAE,eAAe;IACzB,WAAW,EAAE,oDAAoD;IACjE,OAAO,EAAE;;;KAGR;IACD,QAAQ,EAAE;QACR,CAAC,iCAAiC,EAAE,mDAAmD,CAAC;QACxF;YACE,sCAAsC;YACtC,6JAA6J;SAC9J;QACD;YACE,yDAAyD;YACzD,oNAAoN;SACrN;KACF;CACF,CAAC,AAlBiB,CAkBjB"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BaseCommand } from '../..';
|
|
2
2
|
/**
|
|
3
3
|
* This command allows to evaluate a deployment gate in Datadog.
|
|
4
4
|
* It handles the entire process of requesting a gate evaluation and polling for results
|
|
5
5
|
* The command will exit with status 0 when the gate passes and status 1 otherwise.
|
|
6
6
|
*/
|
|
7
|
-
export declare class DeploymentGateCommand extends
|
|
7
|
+
export declare class DeploymentGateCommand extends BaseCommand {
|
|
8
8
|
static paths: string[][];
|
|
9
9
|
static usage: import("clipanion").Usage;
|
|
10
10
|
protected service: string | undefined;
|
|
@@ -36,12 +36,13 @@ exports.DeploymentGateCommand = void 0;
|
|
|
36
36
|
const clipanion_1 = require("clipanion");
|
|
37
37
|
const t = __importStar(require("typanion"));
|
|
38
38
|
const plugin_1 = require("@datadog/datadog-ci-base/helpers/plugin");
|
|
39
|
+
const __1 = require("../..");
|
|
39
40
|
/**
|
|
40
41
|
* This command allows to evaluate a deployment gate in Datadog.
|
|
41
42
|
* It handles the entire process of requesting a gate evaluation and polling for results
|
|
42
43
|
* The command will exit with status 0 when the gate passes and status 1 otherwise.
|
|
43
44
|
*/
|
|
44
|
-
class DeploymentGateCommand extends
|
|
45
|
+
class DeploymentGateCommand extends __1.BaseCommand {
|
|
45
46
|
constructor() {
|
|
46
47
|
super(...arguments);
|
|
47
48
|
// Required parameters
|
|
@@ -116,4 +117,4 @@ DeploymentGateCommand.usage = clipanion_1.Command.Usage({
|
|
|
116
117
|
],
|
|
117
118
|
],
|
|
118
119
|
});
|
|
119
|
-
//# sourceMappingURL=gate
|
|
120
|
+
//# sourceMappingURL=gate.js.map
|