Merge branch 'v1.4' into master

This commit is contained in:
Fernandez Ludovic 2017-11-27 11:40:50 +01:00
commit 9f6f637527
2 changed files with 4 additions and 4 deletions

View file

@ -355,13 +355,13 @@ func getRuleForPath(pa v1beta1.HTTPIngressPath, i *v1beta1.Ingress) string {
ruleType = ruleTypePathPrefix
}
rule := ruleType + ":" + pa.Path
rules := []string{ruleType + ":" + pa.Path}
if rewriteTarget := i.Annotations[annotationKubernetesRewriteTarget]; rewriteTarget != "" {
rule = ruleTypeReplacePath + ":" + rewriteTarget
rules = append(rules, ruleTypeReplacePath+":"+rewriteTarget)
}
return rule
return strings.Join(rules, ";")
}
func (p *Provider) getPriority(path v1beta1.HTTPIngressPath, i *v1beta1.Ingress) int {

View file

@ -1543,7 +1543,7 @@ func TestIngressAnnotations(t *testing.T) {
PassHostHeader: true,
Routes: map[string]types.Route{
"/api": {
Rule: "ReplacePath:/",
Rule: "PathPrefix:/api;ReplacePath:/",
},
"rewrite": {
Rule: "Host:rewrite",