[profiles] Add apm feature override#3073
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch status has failed because the patch coverage (67.28%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #3073 +/- ##
==========================================
+ Coverage 42.90% 44.64% +1.74%
==========================================
Files 341 354 +13
Lines 29403 31164 +1761
==========================================
+ Hits 12614 13913 +1299
- Misses 15965 16348 +383
- Partials 824 903 +79
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 35 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
🛑 Gate Violations
|
957eb79 to
b459861
Compare
What does this PR do?
Add APM feature overrides for profiles
Motivation
What inspired you to submit this pull request?
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
Enable profiles in the operator by setting
datadogAgentProfile.enabled=trueanddatadogCRDs.crds.datadogAgentProfiles=truein the operator helm chartBase DDA
DAP
Apply both and check:
Expected describe output should include:
Also check rendered config:
Expected: Cluster Agent has SSI enabled, default node Agent does not enable node APM.
Disable admission on the base DDA:
kubectl patch datadogagent qa-dda --type merge \ -p '{"spec":{"features":{"admissionController":{"enabled":false},"apm":{"enabled":false}}}}'DAP:
Check:
Expected describe output should include:
Also check rendered config:
kubectl get ds -o yaml | grep DD_APM_ENABLED -A2Expected: profile DaemonSet has node APM config.
Keep admission disabled, then apply:
Check:
Expected describe output should include:
Optional Cluster Agent variant:
kubectl patch datadogagent qa-dda --type merge \ -p '{"spec":{"features":{"admissionController":{"enabled":true}},"override":{"clusterAgent":{"disabled":true}}}}'Expected describe output should include:
Checklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel