Skip to content

Commit b27274b

Browse files
benm-stmivanmatmati
authored andcommitted
BUG/MINOR: Correct error output message for whitelis/blacklist CIDR
Co-authored-by: ivanmatmati <[email protected]>
1 parent 9e56e83 commit b27274b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/annotations/ingress/accessControl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func (a *AccessControl) Process(k store.K8s, annotations ...map[string]string) (
5858
address = strings.TrimSpace(address)
5959
if ip := net.ParseIP(address); ip == nil {
6060
if _, _, err := net.ParseCIDR(address); err != nil {
61-
return fmt.Errorf("incorrect address '%s' in blacklist annotation'", address)
61+
return fmt.Errorf("incorrect address '%s' in %s annotation", address, a.name)
6262
}
6363
}
6464
a.maps.MapAppend(mapName, address)

0 commit comments

Comments
 (0)