Skip to content

Commit

Permalink
fix: skip vingress when delete ingress.
Browse files Browse the repository at this point in the history
Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie committed Nov 20, 2023
1 parent 7fd40c2 commit efe64c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/admission/api/v1/ingress_webhook.go
Original file line number Diff line number Diff line change
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 efe64c4

Please sign in to comment.