You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for specifying egress IP range as CIDR
We introduce a new helper function `read_egress_range()` which returns
the parsed egress range from each entry of `egress_ip_ranges`.
This helper either parses field `egress_range` or parses field
`egress_cidr` and returns an object with the same fields as
`parse_ip_range()` based on the parsed CIDR and optional fields
`skip_first` and `skip_last`.
Copy file name to clipboardExpand all lines: docs/modules/ROOT/pages/references/parameters.adoc
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -381,7 +381,17 @@ default:: `{}`
381
381
This parameter allows users to configure `CiliumEgressGatewayPolicy` (or `IsovalentEgressGatewayPolicy`) resources which assign a single egress IP to a namespace according to the design selected in https://kb.vshn.ch/oc4/explanations/decisions/cloudscale-cilium-egressip.html[Floating egress IPs with Cilium on cloudscale].
382
382
383
383
Each entry in the parameter is intended to describe a group of dummy interfaces that can be used in `CiliumEgressGatewayPolicy` (or `IsovalentEgressGatewayPolicy`) resources.
384
-
The component expects that each value is an object with fields `egress_range`, `node_selector`, `namespace_egress_ips`, `shadow_ranges`, `destination_cidrs`, and `bgp_policy_labels`.
384
+
The component expects that each value is an object with fields `egress_cidr`, `egress_range`, `node_selector`, `namespace_egress_ips`, `shadow_ranges`, `destination_cidrs`, and `bgp_policy_labels`.
385
+
Fields `egress_cidr` and `egress_range` are mutually exclusive.
386
+
The component raises an error for entries which set neither or both.
387
+
388
+
[TIP]
389
+
====
390
+
When specifying egress ranges with `egress_cidr`, the component also respects fields `skip_first` and `skip_last`.
391
+
These fields default to `false`.
392
+
When field `skip_first` is set to `true`, the component omits the given CIDR's network address from the egress range.
393
+
When field `skip_last` is set to `true`, the component omits the given CIDR's broadcast address from the egress range.
394
+
====
385
395
386
396
NOTE: Field `shadow_ranges` is optional, see the section on <<_shadow_ranges,shadow ranges>> for more details.
0 commit comments