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 IngressRuleBuilder(IngressRule instance,Boolean validationEnabled){ this.fluent = this; this.withHost(instance.getHost()); this.withHttp(instance.getHttp()); this.validationEnabled = validationEnabled; }
public IngressRuleBuilder(IngressRuleFluent<?> fluent,IngressRule instance,Boolean validationEnabled){ this.fluent = fluent; fluent.withHost(instance.getHost()); fluent.withHttp(instance.getHttp()); this.validationEnabled = validationEnabled; } public IngressRuleBuilder(IngressRule instance){
public IngressRuleFluentImpl(IngressRule instance){ this.withHost(instance.getHost()); this.withHttp(instance.getHttp()); }
HTTPIngressRuleValue http = rule.getHttp(); if (http == null) { break;
if (rules != null) { for (IngressRule rule : rules) { HTTPIngressRuleValue http = rule.getHttp(); if (http != null) { List<HTTPIngressPath> paths = http.getPaths();