From f77474566e9434c068f7d28c4b5b8b7bddcdc2a6 Mon Sep 17 00:00:00 2001 From: "Jose R. Gonzalez" Date: Tue, 22 Nov 2022 14:51:59 -0600 Subject: [PATCH] Catch whitespace csv.spec.provider.name values Signed-off-by: Jose R. Gonzalez --- pkg/validation/internal/operatorhub.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/validation/internal/operatorhub.go b/pkg/validation/internal/operatorhub.go index f5da37a27..d26654831 100644 --- a/pkg/validation/internal/operatorhub.go +++ b/pkg/validation/internal/operatorhub.go @@ -354,7 +354,7 @@ func checkSpecMaintainers(checks CSVChecks) CSVChecks { // checkSpecProviderName will validate the values informed via csv.Spec.Provider.Name func checkSpecProviderName(checks CSVChecks) CSVChecks { - if checks.csv.Spec.Provider.Name == "" { + if strings.TrimSpace(checks.csv.Spec.Provider.Name) == "" { checks.errs = append(checks.errs, fmt.Errorf("csv.Spec.Provider.Name not specified")) } return checks