Search in sources :

Example 1 with IngressRulePathResourceConfig

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();
}
Also used : IngressBackendBuilder(io.fabric8.kubernetes.api.model.networking.v1.IngressBackendBuilder) IngressRulePathResourceConfig(org.eclipse.jkube.kit.config.resource.IngressRulePathResourceConfig)

Aggregations

IngressBackendBuilder (io.fabric8.kubernetes.api.model.networking.v1.IngressBackendBuilder)1 IngressRulePathResourceConfig (org.eclipse.jkube.kit.config.resource.IngressRulePathResourceConfig)1