Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Check for MESOS_TCP (#509)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewkerrigan authored and Justin Lee committed Feb 7, 2018
1 parent 53ddd80 commit 58654fb
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions marathon_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,8 @@ def config(apps, groups, bind_http_https, ssl_certs, templater,
if app.healthCheck:
template_backend_health_check = None
if app.mode == 'tcp' \
or app.healthCheck['protocol'] == 'TCP':
or app.healthCheck['protocol'] == 'TCP' \
or app.healthCheck['protocol'] == 'MESOS_TCP':
template_backend_health_check = templater \
.haproxy_backend_tcp_healthcheck_options(app)
elif app.mode == 'http':
Expand Down Expand Up @@ -563,7 +564,9 @@ def config(apps, groups, bind_http_https, ssl_certs, templater,
server_health_check_options = None
if app.healthCheck:
template_server_healthcheck_options = None
if app.mode == 'tcp' or app.healthCheck['protocol'] == 'TCP':
if app.mode == 'tcp' \
or app.healthCheck['protocol'] == 'TCP' \
or app.healthCheck['protocol'] == 'MESOS_TCP':
template_server_healthcheck_options = templater \
.haproxy_backend_server_tcp_healthcheck_options(app)
elif app.mode == 'http':
Expand Down

0 comments on commit 58654fb

Please sign in to comment.