Skip to content

Commit 85e014c

Browse files
authored
Merge pull request #3170 from sbueringer/pr-improve-name-validation-err
🌱 Mention the SkipNameValidation option in the name validation error
2 parents 133b8d9 + f9846db commit 85e014c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/name.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func checkName(name string) error {
3434
}
3535

3636
if usedNames.Has(name) {
37-
return fmt.Errorf("controller with name %s already exists. Controller names must be unique to avoid multiple controllers reporting to the same metric", name)
37+
return fmt.Errorf("controller with name %s already exists. Controller names must be unique to avoid multiple controllers reporting the same metric. This validation can be disabled via the SkipNameValidation option", name)
3838
}
3939

4040
usedNames.Insert(name)

0 commit comments

Comments
 (0)