b02393915e
* Abort Kubernetes Ingress update if Kubernetes API call fails Currently if a Kubernetes API call fails we potentially remove a working service from Traefik. This changes it so if a Kubernetes API call fails we abort out of the ingress update and use the current working config. Github issue: #1240 Also added a test to cover when requested resources (services and endpoints) that the user has specified don’t exist. * Specifically capturing the tc range as documented here: https://blog.golang.org/subtests * Updating service names in the mock data to be more clear * Updated expected data to match what currently happens in the loadIngress * Adding a blank Servers to the expected output so we compare against that instead of nil. * Replacing the JSON test output with spew for the TestMissingResources test to help ensure we have useful output incase of failures * Adding a temporary fix to the GetEndoints mocked function so we can override the return value for if the endpoints exist. After the 1.2 release the use of properExists should be removed and the GetEndpoints function should return false for the second value indicating the endpoint doesn’t exist. However at this time that would break a lot of the tests. * Adding quick TODO line about removing the properExists property * Link to issue 1307 re: properExists flag. |
||
---|---|---|
.. | ||
k8s | ||
boltdb.go | ||
consul.go | ||
consul_catalog.go | ||
consul_catalog_test.go | ||
docker.go | ||
docker_test.go | ||
docker_unix.go | ||
docker_windows.go | ||
dynamodb.go | ||
dynamodb_test.go | ||
ecs.go | ||
ecs_test.go | ||
etcd.go | ||
eureka.go | ||
eureka_test.go | ||
file.go | ||
file_test.go | ||
kubernetes.go | ||
kubernetes_test.go | ||
kv.go | ||
kv_test.go | ||
marathon.go | ||
marathon_test.go | ||
mesos.go | ||
mesos_test.go | ||
provider.go | ||
provider_test.go | ||
rancher.go | ||
rancher_test.go | ||
zk.go |