Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
egressgw: Stop CEGP parsing in case of non-empty invalid EgressIP
EgressIP field of CiliumEgressGatewayPolicy spec is optional, but if specified, it is used to SNAT egress traffic. Being an optional parameter, no error is logged in case the conversion to netip.Addr fails, and the field is silently ignored. To inform the user of the failure in setting the requested egress IP, fail the CEGP parsing in case of an invalid non-empty egress IP. Signed-off-by: Fabio Falzoi <fabio.falzoi@isovalent.com>
- Loading branch information