mirror of
https://github.com/containous/traefik.git
synced 2025-10-09 23:33:21 +03:00
Missing annotation prefix support.
This commit is contained in:
committed by
Traefiker Bot
parent
cb54e414ed
commit
0306b5e8f7
@@ -340,7 +340,7 @@ func getRuleForPath(pa extensionsv1beta1.HTTPIngressPath, i *extensionsv1beta1.I
|
||||
pathReplaceAnnotation = annotationKubernetesRewriteTarget
|
||||
}
|
||||
|
||||
if rootPath := label.GetStringValue(i.Annotations, annotationKubernetesAppRoot, ""); rootPath != "" && pa.Path == "/" {
|
||||
if rootPath := getStringValue(i.Annotations, annotationKubernetesAppRoot, ""); rootPath != "" && pa.Path == "/" {
|
||||
if pathReplaceAnnotation != "" {
|
||||
return "", fmt.Errorf("app-root must not be used together with annotation %q", pathReplaceAnnotation)
|
||||
}
|
||||
|
Reference in New Issue
Block a user