diff --git a/stable/datadog/Chart.yaml b/stable/datadog/Chart.yaml index 0d094a8b11..721dd31acc 100644 --- a/stable/datadog/Chart.yaml +++ b/stable/datadog/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: datadog -version: 2.2.2 +version: 2.2.3 appVersion: "7" description: Datadog Agent keywords: diff --git a/stable/datadog/templates/_helpers.tpl b/stable/datadog/templates/_helpers.tpl index cb7b71f5d5..ce96eca8c6 100644 --- a/stable/datadog/templates/_helpers.tpl +++ b/stable/datadog/templates/_helpers.tpl @@ -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