use of org.eclipse.jkube.kit.config.resource.IngressRulePathResourceConfig in project jkube by eclipse.
the class NetworkingV1IngressGenerator method getIngressBackend.
private static IngressBackend getIngressBackend(IngressRulePathConfig ingressRulePathConfig) {
IngressBackendBuilder ingressBackendBuilder = new IngressBackendBuilder();
if (ingressRulePathConfig.getResource() != null) {
IngressRulePathResourceConfig resource = ingressRulePathConfig.getResource();
ingressBackendBuilder.withNewResource(resource.getApiGroup(), resource.getKind(), resource.getName());
}
ingressBackendBuilder.withService(getIngressServiceBackend(ingressRulePathConfig.getServiceName(), ingressRulePathConfig.getServicePort()));
return ingressBackendBuilder.build();
}
Aggregations