Skip to content

Commit

Permalink
Fix crio_version version comparison (kubernetes-sigs#10780)
Browse files Browse the repository at this point in the history
Signed-off-by: serge Hartmann <[email protected]>
  • Loading branch information
ledroide authored and pedromcpedro committed May 8, 2024
1 parent 9db7e1e commit 15d1909
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/container-engine/cri-o/templates/crio.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ enable_metrics = {{ crio_enable_metrics | bool | lower }}
# The port on which the metrics server will listen.
metrics_port = {{ crio_metrics_port }}

{% if nri_enabled and crio_version >= v1.26.0 %}
{% if nri_enabled and crio_version is version('v1.26.0', operator='>=') %}
[crio.nri]

enable_nri=true
Expand Down

0 comments on commit 15d1909

Please sign in to comment.