webhook: remove useless code. (#8236)
* webhook: remove useless code Signed-off-by: SpecialYang <940129520@qq.com> * Remove duplicated codec
This commit is contained in:
parent
c1be3499eb
commit
53a232f829
2 changed files with 0 additions and 6 deletions
|
|
@ -1741,17 +1741,12 @@ func checkOverlap(ing *networking.Ingress, ingresses []*ingress.Ingress, servers
|
|||
}
|
||||
|
||||
// same ingress
|
||||
skipValidation := false
|
||||
for _, existing := range existingIngresses {
|
||||
if existing.ObjectMeta.Namespace == ing.ObjectMeta.Namespace && existing.ObjectMeta.Name == ing.ObjectMeta.Name {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
if skipValidation {
|
||||
continue
|
||||
}
|
||||
|
||||
// path overlap. Check if one of the ingresses has a canary annotation
|
||||
isCanaryEnabled, annotationErr := parser.GetBoolAnnotation("canary", ing)
|
||||
for _, existing := range existingIngresses {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue