소스 검색

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}