Skip to content

Commit 56ef271

Browse files
komishtmshort
authored andcommitted
Catch whitespace csv.spec.provider.name values (openshift#272)
Signed-off-by: Jose R. Gonzalez <[email protected]> Upstream-repository: api Upstream-commit: e6998ff1feb3c5efac1458daa5006350c7e0eccd
1 parent 4e5c6da commit 56ef271

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

staging/api/pkg/validation/internal/operatorhub.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ func checkSpecMaintainers(checks CSVChecks) CSVChecks {
296296

297297
// checkSpecProviderName will validate the values informed via csv.Spec.Provider.Name
298298
func checkSpecProviderName(checks CSVChecks) CSVChecks {
299-
if checks.csv.Spec.Provider.Name == "" {
299+
if strings.TrimSpace(checks.csv.Spec.Provider.Name) == "" {
300300
checks.errs = append(checks.errs, fmt.Errorf("csv.Spec.Provider.Name not specified"))
301301
}
302302
return checks

vendor/github.com/operator-framework/api/pkg/validation/internal/operatorhub.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)