Skip to content

Commit e813e08

Browse files
sbueringerk8s-infra-cherrypick-robot
authored and
k8s-infra-cherrypick-robot
committed
Mention the SkipNameValidation option in the name validation error
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent 50ae490 commit e813e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/name.go

Lines changed: 1 addition & 1 deletion
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)