Adding field path to ingress

This commit is contained in:
hitanshu310 2025-05-27 01:08:07 +05:30
parent c3726d8e3e
commit d3f0797e33

View File

@ -8,6 +8,16 @@ public class Ingress {
private String service; private String service;
private String hostname; private String hostname;
private Map<String, Object> originRequest; private Map<String, Object> originRequest;
private String path;
public String getPath() {
return path;
}
public void setPath(String path) {
this.path = path;
}
public static boolean deleteByHostName(List<Ingress> ingressList, String toBeDeleted){ public static boolean deleteByHostName(List<Ingress> ingressList, String toBeDeleted){
return ingressList.removeIf(ingress -> ingress.getHostname() != null && ingress.getHostname().equals(toBeDeleted)); return ingressList.removeIf(ingress -> ingress.getHostname() != null && ingress.getHostname().equals(toBeDeleted));