Search in sources :

Example 6 with ClientBuilder

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

the class DefaultSharedIndexInformerWireMockTest 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)

Example 7 with ClientBuilder

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

the class AttachTest method setup.

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

Example 8 with ClientBuilder

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

the class KubectlLabelTest method setup.

@Before
public void setup() throws IOException {
    ModelMapper.addModelMap("", "v1", "Pod", "pods", true, V1Pod.class);
    ModelMapper.addModelMap("", "v1", "Node", "nodes", false, V1Node.class);
    apiClient = new ClientBuilder().setBasePath("http://localhost:" + 8384).build();
}
Also used : ClientBuilder(io.kubernetes.client.util.ClientBuilder) Before(org.junit.Before)

Example 9 with ClientBuilder

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

the class KubectlRolloutTest method setup.

@Before
public void setup() throws IOException {
    ModelMapper.addModelMap("apps", "v1", "Deployment", "deployments", true, V1Deployment.class, V1DeploymentList.class);
    ModelMapper.addModelMap("apps", "v1", "DaemonSet", "daemonsets", true, V1DaemonSet.class, V1DaemonSetList.class);
    ModelMapper.addModelMap("apps", "v1", "StatefulSet", "statefulsets", true, V1StatefulSet.class, V1StatefulSetList.class);
    apiClient = new ClientBuilder().setBasePath("http://localhost:" + wireMockRule.port()).build();
}
Also used : ClientBuilder(io.kubernetes.client.util.ClientBuilder) Before(org.junit.Before)

Example 10 with ClientBuilder

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

the class CopyTest method setup.

@Before
public void setup() throws IOException {
    client = new ClientBuilder().setBasePath("http://localhost:" + wireMockRule.port()).build();
    namespace = "default";
    podName = "apod";
}
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