File tree Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Expand file tree Collapse file tree 4 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -582,7 +582,7 @@ More information about this change: https://github.com/DataDog/helm-charts/pull/
582
582
{{- end }}
583
583
584
584
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 }}
586
586
#################################################################
587
587
#### WARNING: Configuration notice ####
588
588
#################################################################
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ Create chart name and version as used by the chart label.
114
114
Return true if the OTelAgent needs to be deployed
115
115
*/} }
116
116
{ {- define " should-enable-otel-agent" -} }
117
- { {- if and .Values. datadog.otelCollector.enabled -} }
117
+ { {- if and .datadog.otelCollector.enabled -} }
118
118
true
119
119
{ {- else -} }
120
120
false
@@ -319,10 +319,9 @@ Return a remote image path based on `.Values` (passed as root) and `.` (any `.im
319
319
{ {- if .image.tagSuffix -} }
320
320
{ {- $tagSuffix = printf " -%s" .image.tagSuffix -} }
321
321
{ {- end -} }
322
- { {- if " should-enable-otel-agent " -} }
322
+ { {- if and ( not (hasSuffix " -ot-beta " .image.tag)) ( not (hasSuffix " -ot-beta " $ tagSuffix )) -} }
323
323
{ {- $tagSuffix = printf " -ot-beta" -} }
324
324
{ {- end -} }
325
-
326
325
{ {- if .image.repository -} }
327
326
{ {- .image.repository -} }:{ { .image.tag } }{ { $tagSuffix } }
328
327
{ {- else -} }
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ spec:
128
128
{{- if eq (include "should-enable-security-agent" .) "true" }}
129
129
{{- include "container-security-agent" . | nindent 6 }}
130
130
{{- end }}
131
- {{- if eq (include "should-enable-otel-agent" .) "true" }}
131
+ {{- if eq (include "should-enable-otel-agent" .root ) "true" }}
132
132
{{- include "container-otel-agent" . | nindent 6 }}
133
133
{{- end }}
134
134
initContainers :
Original file line number Diff line number Diff line change 1
- {{- if eq (include "should-enable-otel-agent" .) "true" }}
1
+ {{- if eq (include "should-enable-otel-agent" .root ) "true" }}
2
2
apiVersion : v1
3
3
kind : ConfigMap
4
4
metadata :
You can’t perform that action at this time.
0 commit comments