From 2299e49e0eabb6615b076d18ba839ce331022249 Mon Sep 17 00:00:00 2001 From: Ugur Can Ozturk <57688057+ugur99@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:30:38 +0200 Subject: [PATCH] [containerd/tracing]: fix containerd tracing templating (#11372) Signed-off-by: Ugur Ozturk --- roles/container-engine/containerd/templates/config.toml.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2 index fea6f7f10..23e2d7b5b 100644 --- a/roles/container-engine/containerd/templates/config.toml.j2 +++ b/roles/container-engine/containerd/templates/config.toml.j2 @@ -100,9 +100,9 @@ oom_score = {{ containerd_oom_score }} [plugins."io.containerd.tracing.processor.v1.otlp"] endpoint = "{{ containerd_tracing_endpoint }}" protocol = "{{ containerd_tracing_protocol }}" - {% if containerd_tracing_protocol == "grpc" %} +{% if containerd_tracing_protocol == "grpc" %} insecure = false - {% endif %} +{% endif %} [plugins."io.containerd.internal.v1.tracing"] sampling_ratio = {{ containerd_tracing_sampling_ratio }} service_name = "{{ containerd_tracing_service_name }}"