Преглед на файлове

Fix cpu_limit check in eventrouter template

Vadim Rutkovsky преди 6 години
родител
ревизия
10322c283f
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      roles/openshift_logging_eventrouter/templates/eventrouter-template.j2

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