Skip to content

Commit e326e78

Browse files
authored
feat: clean task definition tags diff (CLK-493280) (#28)
Remove DD tags diff on ecs task definition labels and environment variables
1 parent 0ee12cb commit e326e78

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/parsingLogic.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ const STACK_REMOVAL_REGEX: [RegExp, string][] = [
2222
];
2323
const STACK_TAGS_REMOVAL_REGEX: [RegExp, string][] = [
2424
[new RegExp('.*\\[~] Tags([\\s\\S]*?)(?=\\[~] AWS|\n\n)', 'gm'), ' └─ [~] Tags ...truncated\n'],
25+
[
26+
new RegExp('(?!.*\\[ ].*"Name": "DD_TAGS",).*\\[-\\].*"Value".*\n.*\\[\\+\\].*"Value".*', 'gm'),
27+
' │ [~] "Value": ...truncated',
28+
],
29+
[new RegExp('.*\\[-\\].*"dd_tags".*\n.*\\[\\+\\].*"dd_tags".*', 'gm'), ' │ [~] "dd_tags": ...truncated'],
30+
[
31+
new RegExp('.*\\[-\\].*"com.datadoghq.ad.tags".*\n.*\\[\\+\\].*"com.datadoghq.ad.tags".*', 'gm'),
32+
' │ [~] "com.datadoghq.ad.tags": ...truncated',
33+
],
2534
];
2635

2736
function cleanCdkDiffLog(cdkLog: string) {

0 commit comments

Comments
 (0)