Browse Source

Fix cpu_limit check in eventrouter template

Vadim Rutkovsky 6 years ago
parent
commit
10322c283f

+ 1 - 1
roles/openshift_logging_eventrouter/templates/eventrouter-template.j2

@@ -65,7 +65,7 @@ objects:
               imagePullPolicy: IfNotPresent
               resources:
                 limits:
-{% if cpu_limit is defined %}
+{% if cpu_limit is not none and cpu_limit != '' %}
                   cpu: ${CPU_LIMIT}
 {% endif %}
                   memory: ${MEMORY}