Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ingress: Avoid potential nil pointer during cleanup
As part of garbage collected steps in default Ingress class changes, the garbage collection process kicks off based on our translation logic. However, depending on which load-balancer mode is used, the translated service or endpoint might be nil. This commit is to make sure that we only performs GC if applicable. Ideally, only Service and Endpoint objs should be checked, but for readability, nil check for CEC object is also done. Fixes: 85671ad Fixes: #24347 Signed-off-by: Tam Mach <tam.mach@cilium.io>
- Loading branch information