From adb8ff14b9481843a3874c6e007ad183445e2f8c Mon Sep 17 00:00:00 2001 From: Khanh Ngo Van Kim <46667187+khanhngobackend@users.noreply.github.com> Date: Wed, 15 Nov 2023 22:06:42 +0700 Subject: [PATCH] fix: invalid version check in containerd jinja-template config (#10620) --- roles/container-engine/containerd/templates/config.toml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/container-engine/containerd/templates/config.toml.j2 b/roles/container-engine/containerd/templates/config.toml.j2 index d1bb4abfb..e1d4ab2df 100644 --- a/roles/container-engine/containerd/templates/config.toml.j2 +++ b/roles/container-engine/containerd/templates/config.toml.j2 @@ -86,7 +86,7 @@ oom_score = {{ containerd_oom_score }} {% endif %} {% endfor %} -{% if nri_enabled and containerd_version >= 1.7.0 %} +{% if nri_enabled and containerd_version is version('1.7.0', '>=') %} [plugins."io.containerd.nri.v1.nri"] disable = false {% endif %}