Skip to content

Commit

Permalink
feat: clean task definition tags diff (CLK-493280) (#28)
Browse files Browse the repository at this point in the history
Remove DD tags diff on ecs task definition labels and environment
variables
  • Loading branch information
jose-clickup authored May 2, 2024
1 parent 0ee12cb commit e326e78
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/parsingLogic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ const STACK_REMOVAL_REGEX: [RegExp, string][] = [
];
const STACK_TAGS_REMOVAL_REGEX: [RegExp, string][] = [
[new RegExp('.*\\[~] Tags([\\s\\S]*?)(?=\\[~] AWS|\n\n)', 'gm'), ' └─ [~] Tags ...truncated\n'],
[
new RegExp('(?!.*\\[ ].*"Name": "DD_TAGS",).*\\[-\\].*"Value".*\n.*\\[\\+\\].*"Value".*', 'gm'),
' │ [~] "Value": ...truncated',
],
[new RegExp('.*\\[-\\].*"dd_tags".*\n.*\\[\\+\\].*"dd_tags".*', 'gm'), ' │ [~] "dd_tags": ...truncated'],
[
new RegExp('.*\\[-\\].*"com.datadoghq.ad.tags".*\n.*\\[\\+\\].*"com.datadoghq.ad.tags".*', 'gm'),
' │ [~] "com.datadoghq.ad.tags": ...truncated',
],
];

function cleanCdkDiffLog(cdkLog: string) {
Expand Down

0 comments on commit e326e78

Please sign in to comment.