Commit 17377f0
Fix YAML mapper for helm2dda for Helm's configmap based configurations (#3373)
Fix YAML mapper for helm2dda for datadog.otelCollector.config and clusterAgent.confd
Add fixes for agents.customAgentConfig and clusterAgent.cluster_yaml
Restrict multi-key table fallback to mapFunc destinations
Allowing any multi-key table through the fallback (added to support
agents.customAgentConfig/clusterAgent.datadog_cluster_yaml) let it also
apply to plain string/list destinations like
agents.podSecurity.seLinuxContext, which have separate leaf mappings for
their sub-fields. That produced invalid duplicate/extra fields in the
output. Now the multi-key fallback only fires for mapFunc-based
destinations (e.g. mapCustomConfigFile), matching Codex review feedback
on PR #3373.
Co-authored-by: Cursor <cursoragent@cursor.com>
add test coverage for mapCustomConfigFile
Co-authored-by: Cursor <cursoragent@cursor.com>
fix multi-key table handling for helm2dda confd/customAgentConfig mappings
extend helm2dda test fixtures to cover multi-key confd and customAgentConfig mapping
Co-authored-by: patrick.liang <patrick.liang@datadoghq.com>
(cherry picked from commit 96de46d)
Merge branch 'v1.30' into backport-3373-to-v1.30
Co-authored-by: tbavelier <97530782+tbavelier@users.noreply.github.com>
Co-authored-by: mrdoggopat <109171317+mrdoggopat@users.noreply.github.com>
Co-authored-by: timothee.bavelier <timothee.bavelier@datadoghq.com>
1 parent c0d0e5f commit 17377f0
6 files changed
Lines changed: 388 additions & 11 deletions
File tree
- cmd/yaml-mapper/mapper
- testdata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
299 | 338 | | |
300 | 339 | | |
301 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
203 | 209 | | |
204 | | - | |
| 210 | + | |
205 | 211 | | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
209 | 215 | | |
210 | 216 | | |
211 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
212 | 220 | | |
213 | | - | |
214 | 221 | | |
215 | 222 | | |
216 | 223 | | |
| |||
383 | 390 | | |
384 | 391 | | |
385 | 392 | | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
386 | 420 | | |
387 | 421 | | |
388 | 422 | | |
| |||
0 commit comments