Skip to content

Commit 23975bc

Browse files
authored
Merge pull request #3172 from k8s-infra-cherrypick-robot/cherry-pick-3170-to-release-0.20
[release-0.20] 🌱 Mention the SkipNameValidation option in the name validation error
2 parents 50ae490 + e813e08 commit 23975bc

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)