From 44acfaed86a10cbe08cc1eacece7e56c7eb2c655 Mon Sep 17 00:00:00 2001 From: bsctl Date: Tue, 15 Jun 2021 17:24:17 +0000 Subject: [PATCH] feat: fix typo in event message --- pkg/webhook/namespacequota/validating.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/webhook/namespacequota/validating.go b/pkg/webhook/namespacequota/validating.go index 5e14b399..65618824 100644 --- a/pkg/webhook/namespacequota/validating.go +++ b/pkg/webhook/namespacequota/validating.go @@ -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()) }