Fix/empty mount dir datadog chart (#21993)

* [stable/datadog] Fix empty output from datadog.dockerOrCriSocketPath include

Signed-off-by: Javier Toledo <javiertoledos@gmail.com>

* Bump chart version to 2.2.3

Signed-off-by: Javier Toledo <javiertoledos@gmail.com>
This commit is contained in:
Javier Toledo
2020-04-20 00:59:38 -07:00
committed by GitHub
parent f7a8ee6ae6
commit df0c8ec12c
2 changed files with 2 additions and 8 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
apiVersion: v1
name: datadog
version: 2.2.2
version: 2.2.3
appVersion: "7"
description: Datadog Agent
keywords:
+1 -7
View File
@@ -76,13 +76,7 @@ Return the container runtime socket
*/}}
{{- define "datadog.dockerOrCriSocketPath" -}}
{{- if eq .Values.targetSystem "linux" -}}
{{- if .Values.datadog.dockerSocketPath -}}
{{- .Values.dockerSocketPath -}}
{{- else if .Values.datadog.criSocketPath -}}
{{- .Values.datadog.criSocketPath -}}
{{- else -}}
/var/run/docker.sock
{{- end -}}
{{- .Values.datadog.dockerSocketPath | default .Values.datadog.criSocketPath | default "/var/run/docker.sock" -}}
{{- end -}}
{{- if eq .Values.targetSystem "windows" -}}
\\.\pipe\docker_engine