From e689a6d34ad019e5d60093f0f7874c4bb0392e8c Mon Sep 17 00:00:00 2001 From: yaacov Date: Mon, 30 Dec 2024 13:24:38 +0200 Subject: [PATCH] error message should not be capitalized Signed-off-by: yaacov --- .../webhooks/validating-webhook/admitters/secret-admitter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/forklift-api/webhooks/validating-webhook/admitters/secret-admitter.go b/pkg/forklift-api/webhooks/validating-webhook/admitters/secret-admitter.go index d65751154..2c44d15d8 100644 --- a/pkg/forklift-api/webhooks/validating-webhook/admitters/secret-admitter.go +++ b/pkg/forklift-api/webhooks/validating-webhook/admitters/secret-admitter.go @@ -126,7 +126,7 @@ func (admitter *SecretAdmitter) validateProviderSecret() *admissionv1.AdmissionR func (admitter *SecretAdmitter) validateHostSecret() *admissionv1.AdmissionResponse { if hostName, ok := admitter.secret.GetLabels()["createdForResource"]; ok { if _, ok := admitter.secret.Data["user"]; !ok { - err := errors.New("Missing credentials on Host secret") + err := errors.New("missing credentials on Host secret") return webhookutils.ToAdmissionResponseError(err) } tested, err := admitter.testConnectionToHost(hostName)