Missing annotation prefix support.
This commit is contained in:
parent
cb54e414ed
commit
0306b5e8f7
2 changed files with 7 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue