Search in sources :

Example 16 with ClientBuilder

use of io.kubernetes.client.util.ClientBuilder in project java by kubernetes-client.

the class KubernetesApiResponseTest method setup.

@Before
public void setup() throws IOException {
    ApiClient apiClient = new ClientBuilder().setBasePath("http://localhost:" + 8485).build();
    podClient = new GenericKubernetesApi<>(V1Pod.class, V1PodList.class, "", "v1", "pods", apiClient);
}
Also used : V1PodList(io.kubernetes.client.openapi.models.V1PodList) V1Pod(io.kubernetes.client.openapi.models.V1Pod) ApiClient(io.kubernetes.client.openapi.ApiClient) ClientBuilder(io.kubernetes.client.util.ClientBuilder) Before(org.junit.Before)

Example 17 with ClientBuilder

use of io.kubernetes.client.util.ClientBuilder in project java by kubernetes-client.

the class ExecTest method setup.

@Before
public void setup() throws IOException {
    client = new ClientBuilder().setBasePath("http://localhost:" + wireMockRule.port()).build();
    namespace = "default";
    podName = "apod";
    // TODO: When WireMock supports multiple query params with the same name expand
    // this
    // See: https://github.com/tomakehurst/wiremock/issues/398
    cmd = new String[] { "cmd" };
}
Also used : ClientBuilder(io.kubernetes.client.util.ClientBuilder) Before(org.junit.Before)

Example 18 with ClientBuilder

use of io.kubernetes.client.util.ClientBuilder in project java by kubernetes-client.

the class PodLogsTest method setup.

@Before
public void setup() throws IOException {
    client = new ClientBuilder().setBasePath("http://localhost:" + wireMockRule.port()).build();
    namespace = "default";
    podName = "apod";
    container = "container";
}
Also used : ClientBuilder(io.kubernetes.client.util.ClientBuilder) Before(org.junit.Before)

Aggregations

ClientBuilder (io.kubernetes.client.util.ClientBuilder)18 Before (org.junit.Before)15 ApiClient (io.kubernetes.client.openapi.ApiClient)6 V1Pod (io.kubernetes.client.openapi.models.V1Pod)4 V1PodList (io.kubernetes.client.openapi.models.V1PodList)4 V1Job (io.kubernetes.client.openapi.models.V1Job)3 V1JobList (io.kubernetes.client.openapi.models.V1JobList)3 Test (org.junit.Test)3 SocketTimeoutException (java.net.SocketTimeoutException)2 V1Patch (io.kubernetes.client.custom.V1Patch)1 V1ObjectMeta (io.kubernetes.client.openapi.models.V1ObjectMeta)1