@datadog/datadog-ci-plugin-container-app 5.14.0 → 5.15.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 CHANGED
@@ -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.14.0",
59582
+ "version": "5.15.0",
59583
59583
  "description": "Base package for Datadog CI",
59584
59584
  "license": "Apache-2.0",
59585
59585
  "keywords": ["datadog", "datadog-ci"],
@@ -114673,6 +114673,7 @@ var require_instrument = /* @__PURE__ */ __commonJSMin(((exports) => {
114673
114673
  description: `The amount of memory (in GiB) to allocate to the sidecar container. Defaults to '${exports.DEFAULT_SIDECAR_MEMORY}'.`,
114674
114674
  validator: (0, typanion_1.isNumber)()
114675
114675
  });
114676
+ 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
114677
  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
114678
  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
114679
  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 +114689,7 @@ var require_instrument = /* @__PURE__ */ __commonJSMin(((exports) => {
114688
114689
  logsPath: this.logsPath,
114689
114690
  sidecarCpu: this.sidecarCpu,
114690
114691
  sidecarMemory: this.sidecarMemory,
114692
+ sidecarImage: this.sidecarImage,
114691
114693
  sourceCodeIntegration: this.sourceCodeIntegration,
114692
114694
  uploadGitMetadata: this.uploadGitMetadata,
114693
114695
  extraTags: this.extraTags
@@ -156591,7 +156593,7 @@ var PluginCommand$1 = class extends import_instrument.ContainerAppInstrumentComm
156591
156593
  const envVarsByName = getEnvVarsByName(config, subscriptionId, resourceGroup);
156592
156594
  const baseSidecar = {
156593
156595
  name: config.sidecarName,
156594
- image: import_constants.SIDECAR_IMAGE,
156596
+ image: config.sidecarImage ?? import_constants.SIDECAR_IMAGE,
156595
156597
  resources: {
156596
156598
  cpu: config.sidecarCpu ?? import_instrument.DEFAULT_SIDECAR_CPU,
156597
156599
  memory: (config.sidecarMemory ?? import_instrument.DEFAULT_SIDECAR_MEMORY) + "Gi"