Skip to content

Conversation

@zachomedia
Copy link
Contributor

Description

This PR adds definitions to the KV template to load backend health check information (path and interval).

I've only tested this change with the etcd backend.

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!
Minor improvement possible in the template ;)
Other than that, looks good!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may move {{$interval := Get "30s" . "/healthcheck/" "interval"}} below {{with $healthCheck}} ?

Copy link
Contributor Author

@zachomedia zachomedia May 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I followed the same format as the load balancer lines above (where {{$sticky := Get "false" . "/loadbalancer/" "sticky"}} is outside the with). I can move it inside the {{with $healthCheck}} if you want.

Copy link
Member

@emilevauge emilevauge Jun 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not mandatory, but it would be better :) And yes, we could do the same thing with sticky.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emilevauge I moved the interval Get into the with block.

Copy link
Contributor

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

LGTM

Copy link
Member

@emilevauge emilevauge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zachomedia
LGTM

@ldez ldez force-pushed the add-healthcheck-to-kv-tmpl branch from dff989c to 5917e1a Compare June 12, 2017 19:32
@ldez ldez merged commit 3eaeb81 into traefik:master Jun 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/provider/kv kind/enhancement a new or improved feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants