瀏覽代碼

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}