Fix namespace, fix PathPrefixStrip

Signed-off-by: Emile Vauge <emile@vauge.com>
This commit is contained in:
Emile Vauge 2016-04-22 11:33:41 +02:00
parent 9e14619a0b
commit cac9927395
No known key found for this signature in database
GPG key ID: D808B4C167352E59
3 changed files with 7 additions and 8 deletions

View file

@ -136,10 +136,10 @@ func (provider *Kubernetes) loadIngresses(k8sClient k8s.Client) (*types.Configur
}
if len(pa.Path) > 0 {
templateObjects.Frontends[r.Host+pa.Path].Routes[pa.Path] = types.Route{
Rule: "PathStrip:" + pa.Path,
Rule: "PathPrefixStrip:" + pa.Path,
}
}
services, err := k8sClient.GetServices(func(service k8s.Service) bool {
services, err := k8sClient.GetServices(i.Namespace, func(service k8s.Service) bool {
return service.Name == pa.Backend.ServiceName
})
if err != nil {