From 4370e070e621cc1549aa90c07a4fe28cc3e44db7 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Tue, 12 Sep 2023 08:28:02 +0200 Subject: [PATCH] DaemonSet: Implement OpenTelemetry resources. --- charts/ingress-nginx/templates/controller-daemonset.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charts/ingress-nginx/templates/controller-daemonset.yaml b/charts/ingress-nginx/templates/controller-daemonset.yaml index 5d94eb2f56..b55db17612 100644 --- a/charts/ingress-nginx/templates/controller-daemonset.yaml +++ b/charts/ingress-nginx/templates/controller-daemonset.yaml @@ -189,7 +189,8 @@ spec: {{- end }} {{- if .Values.controller.opentelemetry.enabled}} {{- $otelContainerSecurityContext := $.Values.controller.opentelemetry.containerSecurityContext | default $.Values.controller.containerSecurityContext }} - {{- include "extraModules" (dict "name" "opentelemetry" "image" .Values.controller.opentelemetry.image "containerSecurityContext" $otelContainerSecurityContext "distroless" true) | nindent 8}} + {{ $otelResources := $.Values.controller.opentelemetry.resources | default dict }} + {{- include "extraModules" (dict "name" "opentelemetry" "image" .Values.controller.opentelemetry.image "containerSecurityContext" $otelContainerSecurityContext "distroless" true "resources" $otelResources) | nindent 8}} {{- end}} {{- end }} {{- if .Values.controller.hostNetwork }}