@datadog/datadog-ci-plugin-container-app 5.14.0 → 5.16.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/README.md +2 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundle.js +8 -4
- package/dist/bundle.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -95,7 +95,7 @@ You must expose these environment variables in the environment where you are run
|
|
|
95
95
|
| Environment Variable | Description | Example |
|
|
96
96
|
| -------------------- | ----------- | ------- |
|
|
97
97
|
| `DD_API_KEY` | **Required**. Datadog API Key. Sets the `DD_API_KEY` environment variable on your Container App. For more information about getting a Datadog API key, see the [API key documentation][1]. | `export DD_API_KEY=<API_KEY>` |
|
|
98
|
-
| `DD_SITE` | Set which Datadog site to send data to. Possible values are `datadoghq.com`, `datadoghq.eu`, `us3.datadoghq.com`, `us5.datadoghq.com`, `ap1.datadoghq.com`, `ap2.datadoghq.com`, and `ddog-gov.com`. The default is `datadoghq.com`. | `export DD_SITE=datadoghq.com` |
|
|
98
|
+
| `DD_SITE` | Set which Datadog site to send data to. Possible values are `datadoghq.com`, `datadoghq.eu`, `us3.datadoghq.com`, `us5.datadoghq.com`, `ap1.datadoghq.com`, `ap2.datadoghq.com`, `ddog-gov.com`, and `us2.ddog-gov.com`. The default is `datadoghq.com`. | `export DD_SITE=datadoghq.com` |
|
|
99
99
|
|
|
100
100
|
### Arguments
|
|
101
101
|
|
|
@@ -123,6 +123,7 @@ You can pass the following arguments to `instrument` to specify its behavior. Th
|
|
|
123
123
|
| `--logs-path` | | (Not recommended) Specify a custom log file path. Must begin with the shared volume path. | `/shared-volume/logs/*.log` |
|
|
124
124
|
| `--sidecar-cpu` | | The number of CPUs to allocate to the sidecar container. | `0.5` |
|
|
125
125
|
| `--sidecar-memory` | | The amount of memory (in GiB) to allocate to the sidecar container. | `1` |
|
|
126
|
+
| `--sidecar-image` | | Override to pin a specific version tag or to use a mirrored image from a custom registry (e.g., ACR) to avoid pull rate limits. | `index.docker.io/datadog/serverless-init:latest` |
|
|
126
127
|
| `--source-code-integration` or `--sourceCodeIntegration` | | Whether to enable the Datadog Source Code integration. This tags your service(s) with the Git repository and the latest commit hash of the local directory. Specify `--no-source-code-integration` to disable. | `true` |
|
|
127
128
|
| `--upload-git-metadata` or `--uploadGitMetadata` | | Whether to enable Git metadata uploading, as a part of the source code integration. Git metadata uploading is only required if you don't have the Datadog GitHub integration installed. Specify `--no-upload-git-metadata` to disable. | `true` |
|
|
128
129
|
| `--extra-tags` or `--extraTags` | | Additional tags to add to the app in the format "key1:value1,key2:value2". | |
|
package/dist/bundle.d.ts
CHANGED
|
@@ -7341,6 +7341,7 @@ type ContainerAppConfigOptions = Partial<{
|
|
|
7341
7341
|
sidecarName: string;
|
|
7342
7342
|
sidecarCpu: number;
|
|
7343
7343
|
sidecarMemory: number;
|
|
7344
|
+
sidecarImage: string;
|
|
7344
7345
|
sharedVolumeName: string;
|
|
7345
7346
|
sharedVolumePath: string;
|
|
7346
7347
|
logsPath: string;
|
|
@@ -7379,6 +7380,7 @@ declare class ContainerAppInstrumentCommand extends ContainerAppCommand {
|
|
|
7379
7380
|
private logsPath;
|
|
7380
7381
|
private sidecarCpu;
|
|
7381
7382
|
private sidecarMemory;
|
|
7383
|
+
private sidecarImage;
|
|
7382
7384
|
private sourceCodeIntegration;
|
|
7383
7385
|
private uploadGitMetadata;
|
|
7384
7386
|
private extraTags;
|
package/dist/bundle.js
CHANGED
|
@@ -59579,7 +59579,7 @@ var require_src$9 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
59579
59579
|
var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
59580
59580
|
module.exports = {
|
|
59581
59581
|
"name": "@datadog/datadog-ci-base",
|
|
59582
|
-
"version": "5.
|
|
59582
|
+
"version": "5.16.0",
|
|
59583
59583
|
"description": "Base package for Datadog CI",
|
|
59584
59584
|
"license": "Apache-2.0",
|
|
59585
59585
|
"keywords": ["datadog", "datadog-ci"],
|
|
@@ -61004,7 +61004,7 @@ var require_constants$9 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61004
61004
|
//#region ../base/dist/constants.js
|
|
61005
61005
|
var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
61006
61006
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
61007
|
-
exports.METHOD_POST = exports.CONTENT_TYPE_VALUE_JSON = exports.CONTENT_TYPE_VALUE_PROTOBUF = exports.CONTENT_TYPE_HEADER = exports.FIPS_IGNORE_ERROR_ENV_VAR = exports.FIPS_ENV_VAR = exports.DATADOG_SITES = exports.DATADOG_SITE_GOV = exports.DATADOG_SITE_AP2 = exports.DATADOG_SITE_AP1 = exports.DATADOG_SITE_US5 = exports.DATADOG_SITE_US3 = exports.DATADOG_SITE_EU1 = exports.DATADOG_SITE_US1 = void 0;
|
|
61007
|
+
exports.METHOD_POST = exports.CONTENT_TYPE_VALUE_JSON = exports.CONTENT_TYPE_VALUE_PROTOBUF = exports.CONTENT_TYPE_HEADER = exports.FIPS_IGNORE_ERROR_ENV_VAR = exports.FIPS_ENV_VAR = exports.DATADOG_SITES = exports.DATADOG_SITE_US2_GOV = exports.DATADOG_SITE_GOV = exports.DATADOG_SITE_AP2 = exports.DATADOG_SITE_AP1 = exports.DATADOG_SITE_US5 = exports.DATADOG_SITE_US3 = exports.DATADOG_SITE_EU1 = exports.DATADOG_SITE_US1 = void 0;
|
|
61008
61008
|
exports.DATADOG_SITE_US1 = "datadoghq.com";
|
|
61009
61009
|
exports.DATADOG_SITE_EU1 = "datadoghq.eu";
|
|
61010
61010
|
exports.DATADOG_SITE_US3 = "us3.datadoghq.com";
|
|
@@ -61012,6 +61012,7 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61012
61012
|
exports.DATADOG_SITE_AP1 = "ap1.datadoghq.com";
|
|
61013
61013
|
exports.DATADOG_SITE_AP2 = "ap2.datadoghq.com";
|
|
61014
61014
|
exports.DATADOG_SITE_GOV = "ddog-gov.com";
|
|
61015
|
+
exports.DATADOG_SITE_US2_GOV = "us2.ddog-gov.com";
|
|
61015
61016
|
exports.DATADOG_SITES = [
|
|
61016
61017
|
exports.DATADOG_SITE_US1,
|
|
61017
61018
|
exports.DATADOG_SITE_EU1,
|
|
@@ -61019,7 +61020,8 @@ var require_constants$8 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
61019
61020
|
exports.DATADOG_SITE_US5,
|
|
61020
61021
|
exports.DATADOG_SITE_AP1,
|
|
61021
61022
|
exports.DATADOG_SITE_AP2,
|
|
61022
|
-
exports.DATADOG_SITE_GOV
|
|
61023
|
+
exports.DATADOG_SITE_GOV,
|
|
61024
|
+
exports.DATADOG_SITE_US2_GOV
|
|
61023
61025
|
];
|
|
61024
61026
|
exports.FIPS_ENV_VAR = "DATADOG_FIPS";
|
|
61025
61027
|
exports.FIPS_IGNORE_ERROR_ENV_VAR = "DATADOG_FIPS_IGNORE_ERROR";
|
|
@@ -114673,6 +114675,7 @@ var require_instrument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
114673
114675
|
description: `The amount of memory (in GiB) to allocate to the sidecar container. Defaults to '${exports.DEFAULT_SIDECAR_MEMORY}'.`,
|
|
114674
114676
|
validator: (0, typanion_1.isNumber)()
|
|
114675
114677
|
});
|
|
114678
|
+
this.sidecarImage = clipanion_1.Option.String("--sidecar-image", constants_1.SIDECAR_IMAGE, { description: `Override to pin a specific version tag or to use a mirrored image from a custom registry (e.g., ACR) to avoid pull rate limits. Defaults to '${constants_1.SIDECAR_IMAGE}'` });
|
|
114676
114679
|
this.sourceCodeIntegration = clipanion_1.Option.Boolean("--source-code-integration,--sourceCodeIntegration", true, { description: "Whether to enable the Datadog Source Code integration. This tags your service(s) with the Git repository and the latest commit hash of the local directory. Specify `--no-source-code-integration` to disable." });
|
|
114677
114680
|
this.uploadGitMetadata = clipanion_1.Option.Boolean("--upload-git-metadata,--uploadGitMetadata", true, { description: "Whether to enable Git metadata uploading, as a part of the source code integration. Git metadata uploading is only required if you don't have the Datadog GitHub integration installed. Specify `--no-upload-git-metadata` to disable." });
|
|
114678
114681
|
this.extraTags = clipanion_1.Option.String("--extra-tags,--extraTags", { description: "Additional tags to add to the app in the format \"key1:value1,key2:value2\"." });
|
|
@@ -114688,6 +114691,7 @@ var require_instrument = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
114688
114691
|
logsPath: this.logsPath,
|
|
114689
114692
|
sidecarCpu: this.sidecarCpu,
|
|
114690
114693
|
sidecarMemory: this.sidecarMemory,
|
|
114694
|
+
sidecarImage: this.sidecarImage,
|
|
114691
114695
|
sourceCodeIntegration: this.sourceCodeIntegration,
|
|
114692
114696
|
uploadGitMetadata: this.uploadGitMetadata,
|
|
114693
114697
|
extraTags: this.extraTags
|
|
@@ -156591,7 +156595,7 @@ var PluginCommand$1 = class extends import_instrument.ContainerAppInstrumentComm
|
|
|
156591
156595
|
const envVarsByName = getEnvVarsByName(config, subscriptionId, resourceGroup);
|
|
156592
156596
|
const baseSidecar = {
|
|
156593
156597
|
name: config.sidecarName,
|
|
156594
|
-
image: import_constants.SIDECAR_IMAGE,
|
|
156598
|
+
image: config.sidecarImage ?? import_constants.SIDECAR_IMAGE,
|
|
156595
156599
|
resources: {
|
|
156596
156600
|
cpu: config.sidecarCpu ?? import_instrument.DEFAULT_SIDECAR_CPU,
|
|
156597
156601
|
memory: (config.sidecarMemory ?? import_instrument.DEFAULT_SIDECAR_MEMORY) + "Gi"
|