Use allowlist for dap validation#3130
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5a79a7ad3b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3130 +/- ##
==========================================
+ Coverage 43.96% 44.03% +0.07%
==========================================
Files 377 377
Lines 30774 30713 -61
==========================================
- Hits 13530 13525 -5
+ Misses 16327 16300 -27
+ Partials 917 888 -29
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
This comment has been minimized.
This comment has been minimized.
tbavelier
left a comment
There was a problem hiding this comment.
LGTM overall, simply needs to fix the test now that APM is allowed
|
|
||
| func TestValidateDatadogAgentProfileFeaturesAllowlist(t *testing.T) { | ||
| allowedFeatureFields := map[string]struct{}{ | ||
| "GPU": {}, |
There was a problem hiding this comment.
#3140 so CI should reveal now it fails (merged main in your branch)

What does this PR do?
Use allowlist for dap validation
Motivation
New features are not denied automatically
https://datadoghq.atlassian.net/browse/CONTP-1451
Additional Notes
Anything else we should know when reviewing?
Minimum Agent Versions
Are there minimum versions of the Datadog Agent and/or Cluster Agent required?
Describe your test plan
With DAP enabled in the operator, create a DAP that configures a config field that's not in the allowlist:
You should see the the error
component node selector override is not supportedin the DAP status:Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel