Skip to content

Commit

Permalink
fix: skip vingress when delete ingress. (#4318)
Browse files Browse the repository at this point in the history
Signed-off-by: yy <lingdie.yy@outlook.com>
  • Loading branch information
lingdie committed Nov 20, 2023
1 parent 7fd40c2 commit 2a41881
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/admission/api/v1/ingress_webhook.go
Expand Up @@ -161,7 +161,8 @@ func (v *IngressValidator) ValidateDelete(ctx context.Context, obj runtime.Objec
}

ilog.Info("validating delete", "ingress namespace", i.Namespace, "ingress name", i.Name)
return v.validate(ctx, i)
// delete ingress, pass validate
return nil
}

func (v *IngressValidator) validate(ctx context.Context, i *netv1.Ingress) error {
Expand Down

0 comments on commit 2a41881

Please sign in to comment.