mirror of
https://github.com/projectcapsule/capsule.git
synced 2026-08-25 16:07:24 +00:00
Fix null pointer exception in Ingress validating webhook (#94)
Co-authored-by: Maksim Fedotov <m_fedotov@wargaming.net>
This commit is contained in:
co-authored by
Maksim Fedotov
parent
875650f185
commit
d0028d483b
@@ -113,7 +113,7 @@ func (r *handler) validateIngress(ctx context.Context, c client.Client, object I
|
||||
ingressClass := object.IngressClass()
|
||||
|
||||
if ingressClass == nil {
|
||||
return admission.Errored(http.StatusBadRequest, NewIngressClassForbidden(*ingressClass))
|
||||
return admission.Errored(http.StatusBadRequest, NewIngressClassNotValid())
|
||||
}
|
||||
|
||||
tl := &v1alpha1.TenantList{}
|
||||
|
||||
Reference in New Issue
Block a user