public static String getURLFromIngressSpec(IngressSpec spec, String serviceName, ServicePort port) { List<IngressRule> ingressRules = spec.getRules(); if(ingressRules != null && !ingressRules.isEmpty()) { for(IngressRule rule : ingressRules) { HTTPIngressRuleValue http = rule.getHttp(); if(http != null && http.getPaths() != null) { return getURLFromIngressRules(http.getPaths(), spec, serviceName, port, rule); } } } return null; }
public HTTPIngressRuleValueBuilder(HTTPIngressRuleValueFluent<?> fluent,Boolean validationEnabled){ this(fluent, new HTTPIngressRuleValue(), validationEnabled); } public HTTPIngressRuleValueBuilder(HTTPIngressRuleValueFluent<?> fluent,HTTPIngressRuleValue instance){
public HTTPIngressRuleValueBuilder(HTTPIngressRuleValueFluent<?> fluent,HTTPIngressRuleValue instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withPaths(instance.getPaths()); this.validationEnabled = validationEnabled; } public HTTPIngressRuleValueBuilder(HTTPIngressRuleValue instance){
public HTTPIngressRuleValueBuilder(Boolean validationEnabled){ this(new HTTPIngressRuleValue(), validationEnabled); } public HTTPIngressRuleValueBuilder(HTTPIngressRuleValueFluent<?> fluent){
public HTTPIngressRuleValueBuilder(HTTPIngressRuleValue instance,Boolean validationEnabled){ this.fluent = this; this.withPaths(instance.getPaths()); this.validationEnabled = validationEnabled; }
public HTTPIngressRuleValue build(){ HTTPIngressRuleValue buildable = new HTTPIngressRuleValue(fluent.getPaths()); validate(buildable); return buildable; }
public HTTPIngressRuleValueFluentImpl(HTTPIngressRuleValue instance){ this.withPaths(instance.getPaths()); }
break; List<HTTPIngressPath> paths = http.getPaths(); if (paths == null) { break;
HTTPIngressRuleValue http = rule.getHttp(); if (http != null) { List<HTTPIngressPath> paths = http.getPaths(); if (paths != null) { for (HTTPIngressPath path : paths) {