소스 검색

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

Fix `cpu_limit` check in event router template
Vadim Rutkovsky 6 년 전
부모
커밋
91376e6d87
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}