-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add DD_AGENT_IPC_* env vars #1661
base: main
Are you sure you want to change the base?
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,6 +59,38 @@ | |
{{- include "containers-common-env" . | nindent 4 }} | ||
{{- include "fips-envvar" . | nindent 4 }} | ||
{{- include "processes-common-envs" . | nindent 4 }} | ||
{{- if eq (include "should-enable-otel-agent" .) "true" }} | ||
{{- $found := false }} | ||
{{- range .Values.agents.containers.agent.env }} | ||
{{- if eq .name "DD_AGENT_IPC_PORT" }} | ||
{{- $found = true }} | ||
{{- end }} | ||
{{- end }} | ||
{{- range .Values.datadog.env }} | ||
{{- if eq .name "DD_AGENT_IPC_PORT" }} | ||
{{- $found = true }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if not $found }} | ||
- name: DD_AGENT_IPC_PORT | ||
value: "5009" | ||
{{- end }} | ||
{{- $found := false }} | ||
{{- range .Values.agents.containers.agent.env }} | ||
{{- if eq .name "DD_AGENT_IPC_CONFIG_REFRESH_INTERVAL" }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't see this or There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Youre right, we dont set this in helm charts. This is to make sure we don't override it if the user sets it in |
||
{{- $found = true }} | ||
{{- end }} | ||
{{- end }} | ||
{{- range .Values.datadog.env }} | ||
{{- if eq .name "DD_AGENT_IPC_CONFIG_REFRESH_INTERVAL" }} | ||
{{- $found = true }} | ||
{{- end }} | ||
{{- end }} | ||
{{- if not $found }} | ||
- name: DD_AGENT_IPC_CONFIG_REFRESH_INTERVAL | ||
value: "60" | ||
{{- end }} | ||
{{- end }} | ||
|
||
{{- if .Values.datadog.logLevel }} | ||
- name: DD_LOG_LEVEL | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you extract the
$found
computation to_helpers.tpl
? like this e.g.:helm-charts/charts/datadog/templates/_helpers.tpl
Lines 992 to 1001 in 788d28d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved logic to helpers in: 267473a.