Skip to content

Commit 228d7a8

Browse files
authored
Merge pull request #158 from projectsyn/fix/namespace-egress-policy-validation
Fix check for empty egress range in `NamespaceEgressPolicy`
2 parents 85c491c + 741ebec commit 228d7a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

component/egress-gateway-policies.jsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ local NamespaceEgressPolicy =
9090
local start = ipval(range.start);
9191
local end = ipval(range.end);
9292
local ip = ipval(egress_ip);
93-
if start >= end then
94-
error 'Egress IP range for "%s" is empty: %s >= %s' % [
93+
if start > end then
94+
error 'Egress IP range for "%s" is empty: %s > %s' % [
9595
interface_prefix,
9696
range.start,
9797
range.end,

0 commit comments

Comments
 (0)