Skip to content

Commit

Permalink
Catch whitespace csv.spec.provider.name values
Browse files Browse the repository at this point in the history
Signed-off-by: Jose R. Gonzalez <[email protected]>
  • Loading branch information
komish committed Nov 22, 2022
1 parent b611f6c commit f774745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/validation/internal/operatorhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f774745

Please sign in to comment.