From fc0f5a865a5afa39d685877dd5461c87eed79390 Mon Sep 17 00:00:00 2001 From: Joe Hohertz Date: Fri, 12 Jul 2019 15:47:06 -0400 Subject: [PATCH] [stable/datadog] ensure init scripts run in correct order (#15463) * ensure init scripts run in correct order Signed-off-by: Joe Hohertz * re-bump chart version Signed-off-by: Joe Hohertz --- stable/datadog/Chart.yaml | 2 +- stable/datadog/templates/containers-init.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stable/datadog/Chart.yaml b/stable/datadog/Chart.yaml index 688b744008..5122b1b6e4 100755 --- a/stable/datadog/Chart.yaml +++ b/stable/datadog/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 name: datadog -version: 1.31.5 +version: 1.31.6 appVersion: 6.10.1 description: DataDog Agent keywords: diff --git a/stable/datadog/templates/containers-init.yaml b/stable/datadog/templates/containers-init.yaml index 836059d705..676dce59be 100644 --- a/stable/datadog/templates/containers-init.yaml +++ b/stable/datadog/templates/containers-init.yaml @@ -11,7 +11,7 @@ image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" command: ["bash", "-c"] args: - - for script in $(find /etc/cont-init.d/ -type f -name '*.sh') ; do bash $script ; done + - for script in $(find /etc/cont-init.d/ -type f -name '*.sh' | sort) ; do bash $script ; done volumeMounts: - name: config mountPath: /etc/datadog-agent