Skip to content

Commit 60f75a5

Browse files
committed
fix tests
1 parent def349d commit 60f75a5

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

charts/datadog/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ More information about this change: https://github.com/DataDog/helm-charts/pull/
582582
{{- end }}
583583

584584

585-
{{- if and (include "should-enable-otel-agent" .) .Values.providers.gke.autopilot }}
585+
{{- if and (include "should-enable-otel-agent" .root) .Values.providers.gke.autopilot }}
586586
#################################################################
587587
#### WARNING: Configuration notice ####
588588
#################################################################

charts/datadog/templates/_helpers.tpl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Create chart name and version as used by the chart label.
114114
Return true if the OTelAgent needs to be deployed
115115
*/}}
116116
{{- define "should-enable-otel-agent" -}}
117-
{{- if and .Values.datadog.otelCollector.enabled -}}
117+
{{- if and .datadog.otelCollector.enabled -}}
118118
true
119119
{{- else -}}
120120
false
@@ -319,10 +319,9 @@ Return a remote image path based on `.Values` (passed as root) and `.` (any `.im
319319
{{- if .image.tagSuffix -}}
320320
{{- $tagSuffix = printf "-%s" .image.tagSuffix -}}
321321
{{- end -}}
322-
{{- if "should-enable-otel-agent" -}}
322+
{{- if and (not (hasSuffix "-ot-beta" .image.tag)) (not (hasSuffix "-ot-beta" $tagSuffix)) -}}
323323
{{- $tagSuffix = printf "-ot-beta" -}}
324324
{{- end -}}
325-
326325
{{- if .image.repository -}}
327326
{{- .image.repository -}}:{{ .image.tag }}{{ $tagSuffix }}
328327
{{- else -}}

charts/datadog/templates/daemonset.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ spec:
128128
{{- if eq (include "should-enable-security-agent" .) "true" }}
129129
{{- include "container-security-agent" . | nindent 6 }}
130130
{{- end }}
131-
{{- if eq (include "should-enable-otel-agent" .) "true" }}
131+
{{- if eq (include "should-enable-otel-agent" .root) "true" }}
132132
{{- include "container-otel-agent" . | nindent 6 }}
133133
{{- end }}
134134
initContainers:

charts/datadog/templates/otel-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if eq (include "should-enable-otel-agent" .) "true" }}
1+
{{- if eq (include "should-enable-otel-agent" .root) "true" }}
22
apiVersion: v1
33
kind: ConfigMap
44
metadata:

0 commit comments

Comments
 (0)