Skip to content

Commit

Permalink
fix dd_nodename
Browse files Browse the repository at this point in the history
  • Loading branch information
fanny-jiang committed Oct 31, 2024
1 parent 20b93ee commit 0afeb1d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions charts/datadog/templates/_containers-common-env.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,15 @@
value: "0"
{{- end }}
{{- if .Values.providers.gke.gdc }}
- name: DD_NODE_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: spec.nodeName
- name: DD_HOSTNAME
value: "$(DD_NODE_NAME)-$(DD_CLUSTER_NAME)"
- name: DD_LOGS_CONFIG_RUN_PATH # todo: gdc remove this?
value: {{ include "datadog.hostMountRoot" . }}
{{- end }}
{{- if eq .Values.targetSystem "linux" }}
{{- if .Values.providers.eks.ec2.useHostnameFromFile }}
Expand Down Expand Up @@ -132,10 +139,6 @@
{{- if eq .Values.targetSystem "windows" }}
value: npipe://{{ (include "datadog.dockerOrCriSocketPath" .) | replace "\\" "/" }}
{{- end }}
{{- if .Values.providers.gke.gdc }}
- name: DD_LOGS_CONFIG_RUN_PATH
value: {{ include "datadog.hostMountRoot" . }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}
Expand Down

0 comments on commit 0afeb1d

Please sign in to comment.