Skip to content

Commit 0f5d2c6

Browse files
rikatzAlan
andauthored
fix overlap check when ingress is configured as canary (#7719) (#7741)
Co-authored-by: Alan <[email protected]>
1 parent 25b8743 commit 0f5d2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/ingress/controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ func checkOverlap(ing *networking.Ingress, ingresses []*ingress.Ingress, servers
16801680
return fmt.Errorf(`host "%s" and path "%s" is already defined in ingress %s/%s`, rule.Host, path.Path, existing.Namespace, existing.Name)
16811681
}
16821682

1683-
if annotationErr == errors.ErrMissingAnnotations && existingAnnotationErr == existingAnnotationErr {
1683+
if annotationErr == errors.ErrMissingAnnotations && existingAnnotationErr == errors.ErrMissingAnnotations {
16841684
return fmt.Errorf(`host "%s" and path "%s" is already defined in ingress %s/%s`, rule.Host, path.Path, existing.Namespace, existing.Name)
16851685
}
16861686
}

0 commit comments

Comments
 (0)