@datadog/datadog-ci-plugin-container-app 5.22.1 → 5.23.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/bundle.js CHANGED
@@ -53125,7 +53125,7 @@ var require_source$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53125
53125
  var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53126
53126
  module.exports = {
53127
53127
  "name": "@datadog/datadog-ci-base",
53128
- "version": "5.22.1",
53128
+ "version": "5.23.0",
53129
53129
  "description": "Base package for Datadog CI",
53130
53130
  "license": "Apache-2.0",
53131
53131
  "keywords": ["datadog", "datadog-ci"],
@@ -108066,10 +108066,8 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
108066
108066
  value: constants_2.DEFAULT_HEALTH_CHECK_PORT.toString()
108067
108067
  }
108068
108068
  ]);
108069
- /**
108070
- * Given the configuration, an app template, the base sidecar configuration, and base shared volume,
108071
- */
108072
- const createInstrumentedTemplate = (template, baseSidecar, sharedVolumeOptions, envVarsByName) => {
108069
+ /** Adds the Datadog sidecar, shared volume, and environment to an app template. */
108070
+ const createInstrumentedTemplate = (template, baseSidecar, sharedVolumeOptions, envVarsByName, targetContainers) => {
108073
108071
  var _a, _b, _c;
108074
108072
  const sharedVolumeMount = {
108075
108073
  [sharedVolumeOptions.volumeMountNameKey]: sharedVolumeOptions.name,
@@ -108094,6 +108092,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
108094
108092
  const updatedContainers = containers.map((container) => {
108095
108093
  var _a;
108096
108094
  if (container.name === baseSidecar.name) return newSidecarContainer;
108095
+ if (targetContainers && !targetContainers.has(container)) return container;
108097
108096
  return Object.assign(Object.assign({}, container), {
108098
108097
  volumeMounts: ensureSharedVolumeMount(container.volumeMounts),
108099
108098
  env: Object.values(Object.assign(Object.assign(Object.assign({}, DEFAULT_ENV_VARS_BY_NAME), (0, exports.byName)((_a = container.env) !== null && _a !== void 0 ? _a : [])), envVarsByName))