We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e56e83 commit b27274bCopy full SHA for b27274b
pkg/annotations/ingress/accessControl.go
@@ -58,7 +58,7 @@ func (a *AccessControl) Process(k store.K8s, annotations ...map[string]string) (
58
address = strings.TrimSpace(address)
59
if ip := net.ParseIP(address); ip == nil {
60
if _, _, err := net.ParseCIDR(address); err != nil {
61
- return fmt.Errorf("incorrect address '%s' in blacklist annotation'", address)
+ return fmt.Errorf("incorrect address '%s' in %s annotation", address, a.name)
62
}
63
64
a.maps.MapAppend(mapName, address)
0 commit comments