From eb5610e60e0ebf89b48ddce0d526aa459761b9bc Mon Sep 17 00:00:00 2001 From: Celene Date: Thu, 31 Oct 2024 07:40:06 -0400 Subject: [PATCH] alternate solution to delete only default yaml files --- charts/datadog/templates/agent-clusterchecks-deployment.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/charts/datadog/templates/agent-clusterchecks-deployment.yaml b/charts/datadog/templates/agent-clusterchecks-deployment.yaml index 22c9b318d..d61c3237a 100644 --- a/charts/datadog/templates/agent-clusterchecks-deployment.yaml +++ b/charts/datadog/templates/agent-clusterchecks-deployment.yaml @@ -109,8 +109,7 @@ spec: image: "{{ include "image-path" (dict "root" .Values "image" .Values.clusterChecksRunner.image) }}" command: ["bash", "-c"] args: - # elements in "checks" should not have spaces - - checks="snmp"; for c in $checks; do mv /etc/datadog-agent/conf.d/$c.d/ /etc/datadog-agent; done && rm -rf /etc/datadog-agent/conf.d && mkdir /etc/datadog-agent/conf.d && for c in $checks; do mv /etc/datadog-agent/$c.d/ /etc/datadog-agent/conf.d; done && touch /etc/datadog-agent/datadog.yaml && exec agent run + - find /etc/datadog-agent/conf.d/ -name "*.yaml.default" -type f -delete && touch /etc/datadog-agent/datadog.yaml && exec agent run imagePullPolicy: {{ .Values.clusterChecksRunner.image.pullPolicy }} {{- if .Values.clusterChecksRunner.ports }} ports: