controllers/webhooks/networking/routes/validator.go
Method Validator.ValidateUpdate
has 9 return statements (exceeds 8 allowed). Open
Open
func (v *Validator) ValidateUpdate(ctx context.Context, oldObj, obj runtime.Object) (admission.Warnings, error) {
route, ok := obj.(*korifiv1alpha1.CFRoute)
if !ok {
return nil, apierrors.NewBadRequest(fmt.Sprintf("expected a CFRoute but got a %T", obj))
}