Skip to content

Commit

Permalink
Fix vingress (#4319)
Browse files Browse the repository at this point in the history
* fix: skip vingress when delete ingress.

Signed-off-by: yy <[email protected]>

* fix: skip vingress when delete ingress.

Signed-off-by: yy <[email protected]>

---------

Signed-off-by: yy <[email protected]>
  • Loading branch information
lingdie authored Nov 20, 2023
1 parent 2a41881 commit e82b92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/admission/api/v1/ingress_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (v *IngressValidator) ValidateUpdate(ctx context.Context, _, newObj runtime
return v.validate(ctx, ni)
}

func (v *IngressValidator) ValidateDelete(ctx context.Context, obj runtime.Object) error {
func (v *IngressValidator) ValidateDelete(_ context.Context, obj runtime.Object) error {
i, ok := obj.(*netv1.Ingress)
if !ok {
return errors.New("obj convert Ingress is error")
Expand Down

0 comments on commit e82b92f

Please sign in to comment.