Skip to content

Commit

Permalink
alternate solution to delete only default yaml files
Browse files Browse the repository at this point in the history
  • Loading branch information
celenechang committed Oct 31, 2024
1 parent 73f0751 commit eb5610e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions charts/datadog/templates/agent-clusterchecks-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eb5610e

Please sign in to comment.