Conditionally set env vars to match datadog-operator: logs, prometheus#2312
Conversation
- bump version for datadog to 3.161.3 (patch-version) - update readme for datadog
| value: {{ .Values.datadog.processAgent.containerCollection | quote }} | ||
| - name: DD_PROCESS_AGENT_DISCOVERY_ENABLED | ||
| value: {{ .Values.datadog.processAgent.processDiscovery | quote }} | ||
| {{- if and (eq .Values.datadog.processAgent.processCollection true) .Values.datadog.processAgent.stripProcessArguments }} |
There was a problem hiding this comment.
Maybe the operator needs updating, but we don't want to check Values.datadog.processAgent.processCollection here. Due to the newer Service Discovery feature, processes may be collected without this config set. We still want to strip args in that case.
There was a problem hiding this comment.
Got it, thanks for the context! I'll revert those changes
|
/merge |
|
View all feedbacks in Devflow UI.
This pull request is not mergeable according to GitHub. Common reasons include pending required checks, missing approvals, or merge conflicts — but it could also be blocked by other repository rules or settings.
The expected merge time in
There was an unexpected error while creating the working branch: cannot create branch DataDog/helm-charts/merge_request:{repository:{owner:"DataDog" name:"helm-charts"} queued_at:{seconds:1770666014 nanos:396772000} status_with_reason:STATUS_WITH_REASON_QUEUED priority:200 created_at:{seconds:1770665606 nanos:364511000} pull_request_number:2312 base_branch:"main" head_sha:"6af9df60bb9c5169bc185c135b7530f51149e6c8" id:"65eabb70-de55-4950-ac23-5e9847d82c1f" status:STATUS_QUEUED triggered_by:"fanny.jiang@datadoghq.com" merge_status_workflow_id:"d1c9437b-b17c-4709-9009-48eaa688f3e1_47" next_mergeability_check_at:{seconds:1770666007 nanos:670593000}} name:"mq-working-branch-main-acdbdcc" temporal_execution_workflow_id:"019c43eb-43d1-726a-82cd-97a59682638d_52" temporal_execution_run_id:"019c43eb-498c-748f-9d55-f474da88021a" This could indicate that something doesn't work properly with the build system or that this one has reached its maximum capacity. DetailsError: cannot create branch DataDog/helm-charts/merge_request:{repository:{owner:"DataDog" name:"helm-charts"} queued_at:{seconds:1770666014 nanos:396772000} status_with_reason:STATUS_WITH_REASON_QUEUED priority:200 created_at:{seconds:1770665606 nanos:364511000} pull_request_number:2312 base_branch:"main" head_sha:"6af9df60bb9c5169bc185c135b7530f51149e6c8" id:"65eabb70-de55-4950-ac23-5e9847d82c1f" status:STATUS_QUEUED triggered_by:"fanny.jiang@datadoghq.com" merge_status_workflow_id:"d1c9437b-b17c-4709-9009-48eaa688f3e1_47" next_mergeability_check_at:{seconds:1770666007 nanos:670593000}} name:"mq-working-branch-main-acdbdcc" temporal_execution_workflow_id:"019c43eb-43d1-726a-82cd-97a59682638d_52" temporal_execution_run_id:"019c43eb-498c-748f-9d55-f474da88021a" FullStacktrace: |
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
68e2427
into
main
What this PR does / why we need it:
DD_LOGS_CONFIG_K8S_CONTAINER_USE_FILE: only set when logs.enabled=trueDD_PROMETHEUS_SCRAPE_SERVICE_ENDPOINTS: added to agent container to match the datadog-operator logic (before, it was only added to the cluster-agent deployment)These changes align the datadog chart behavior with that of the datadog-operator and avoids setting env vars when they're not explicitly needed.
Which issue this PR fixes
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged)Special notes for your reviewer:
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
<chartName>/minor-version,<chartName>/patch-version, or<chartName>/no-version-bump)datadogordatadog-operatorchart or value changes, update the test baselines (run:make update-test-baselines)GitHub CI takes care of the below, but are still required:
.github/helm-docs.sh)CHANGELOG.mdhas been updatedREADME.md