Browse Source

Merge pull request #9229 from vrutkovs/logging-omit-empty-cpulimit

Fix `cpu_limit` check in event router template
Vadim Rutkovsky 6 years ago
parent
commit
91376e6d87

+ 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}