feat: fix typo in event message

This commit is contained in:
bsctl
2021-06-15 21:42:39 +02:00
committed by Dario Tranchitella
parent 7ca087cac5
commit 44acfaed86
+1 -1
View File
@@ -62,7 +62,7 @@ func (r *handler) OnCreate(client client.Client, decoder *admission.Decoder, rec
return admission.Errored(http.StatusBadRequest, err)
}
if tnt.IsFull() {
recorder.Eventf(tnt, corev1.EventTypeWarning, "NamespaceQuotaExceded", "Namespace %s cannot be attached, quota exceededi for the current Tenant", ns.GetName())
recorder.Eventf(tnt, corev1.EventTypeWarning, "NamespaceQuotaExceded", "Namespace %s cannot be attached, quota exceeded for the current Tenant", ns.GetName())
return admission.Denied(NewNamespaceQuotaExceededError().Error())
}