[stable/datadog] Correct handling of processAgent.processCollection setting (#21525)

* Correct handling of processAgent.processCollection setting

This addresses the issue when process agent would terminate if `processAgent.processCollection` was set to `false`.

Setting `DD_PROCESS_AGENT_ENABLED` to `false` results in termination of process agent. To disable process collection we need to leave this env var as not set on this container.

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>

* Bump chart version

Signed-off-by: Ivan Ilichev <ivan.ilichev@datadoghq.com>
This commit is contained in:
Ivan Ilichev
2020-03-18 14:26:44 -07:00
committed by GitHub
parent 3668d3c252
commit d33d4cfacf
2 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 2.0.11
version: 2.0.12
appVersion: "7"
description: Datadog Agent
keywords:
@@ -7,11 +7,9 @@
{{ toYaml .Values.agents.containers.processAgent.resources | indent 4 }}
env:
{{- include "containers-common-env" . | nindent 4 }}
{{- if .Values.datadog.processAgent.processCollection }}
- name: DD_PROCESS_AGENT_ENABLED
{{- if .Values.datadog.processAgent.enabled }}
value: {{ .Values.datadog.processAgent.processCollection | quote }}
{{- else }}
value: "disabled"
value: "true"
{{- end }}
- name: DD_LOG_LEVEL
value: {{ .Values.agents.containers.processAgent.logLevel | default .Values.datadog.logLevel | quote }}