use of io.fabric8.kubernetes.api.model.networking.v1.IngressStatusBuilder in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class KubernetesNetworkingTestUtils method patchNetworkResource.
@Override
public void patchNetworkResource(String name, String namespace) {
Ingress i = client.network().v1().ingresses().inNamespace(namespace).withName(name).get();
IngressStatus ingressStatus = new IngressStatusBuilder().withLoadBalancer(new LoadBalancerStatusBuilder().withIngress(new LoadBalancerIngressBuilder().withHostname(name).withIp(NetworkingTestConstants.HOST_IP).build()).build()).build();
i.setStatus(ingressStatus);
client.network().v1().ingresses().inNamespace(namespace).createOrReplace(i);
}
use of io.fabric8.kubernetes.api.model.networking.v1.IngressStatusBuilder in project sandbox by 5733d9e2be6485d52ffa08870cabdee0.
the class KubernetesNetworkingTestUtils method patchNetworkResource.
@Override
public void patchNetworkResource(String name, String namespace) {
Ingress i = client.network().v1().ingresses().inNamespace(namespace).withName(name).get();
IngressStatus ingressStatus = new IngressStatusBuilder().withLoadBalancer(new LoadBalancerStatusBuilder().withIngress(new LoadBalancerIngressBuilder().withHostname(name).withIp(NetworkingTestConstants.HOST_IP).build()).build()).build();
i.setStatus(ingressStatus);
client.network().v1().ingresses().inNamespace(namespace).createOrReplace(i);
}
Aggregations