Search in sources :

Example 26 with V1Pod

use of io.kubernetes.client.models.V1Pod in project java by kubernetes-client.

the class CoreV1ApiTest method readNamespacedPodTest.

/**
 * read the specified Pod
 *
 * @throws ApiException
 *          if the Api call fails
 */
@Test
public void readNamespacedPodTest() throws ApiException {
    String name = null;
    String namespace = null;
    String pretty = null;
    Boolean exact = null;
    Boolean export = null;
    V1Pod response = api.readNamespacedPod(name, namespace, pretty, exact, export);
// TODO: test validations
}
Also used : V1Pod(io.kubernetes.client.models.V1Pod) Test(org.junit.Test)

Example 27 with V1Pod

use of io.kubernetes.client.models.V1Pod in project java by kubernetes-client.

the class CoreV1ApiTest method patchNamespacedPodTest.

/**
 * partially update the specified Pod
 *
 * @throws ApiException
 *          if the Api call fails
 */
@Test
public void patchNamespacedPodTest() throws ApiException {
    String name = null;
    String namespace = null;
    Object body = null;
    String pretty = null;
    V1Pod response = api.patchNamespacedPod(name, namespace, body, pretty);
// TODO: test validations
}
Also used : V1Pod(io.kubernetes.client.models.V1Pod) Test(org.junit.Test)

Example 28 with V1Pod

use of io.kubernetes.client.models.V1Pod in project java by kubernetes-client.

the class CoreV1ApiTest method replaceNamespacedPodTest.

/**
 * replace the specified Pod
 *
 * @throws ApiException
 *          if the Api call fails
 */
@Test
public void replaceNamespacedPodTest() throws ApiException {
    String name = null;
    String namespace = null;
    V1Pod body = null;
    String pretty = null;
    V1Pod response = api.replaceNamespacedPod(name, namespace, body, pretty);
// TODO: test validations
}
Also used : V1Pod(io.kubernetes.client.models.V1Pod) Test(org.junit.Test)

Example 29 with V1Pod

use of io.kubernetes.client.models.V1Pod in project weblogic-kubernetes-operator by oracle.

the class PodWatcher method receivedResponse.

public void receivedResponse(Watch.Response<V1Pod> item) {
    LOGGER.entering();
    switch(item.type) {
        case "ADDED":
        case "MODIFIED":
            V1Pod pod = item.object;
            Boolean isReady = isReady(pod);
            String podName = pod.getMetadata().getName();
            if (isReady) {
                OnReady ready = readyCallbackRegistrations.remove(podName);
                if (ready != null) {
                    ready.onReady();
                }
            }
            break;
        case "DELETED":
        case "ERROR":
        default:
    }
    listener.receivedResponse(item);
    LOGGER.exiting();
}
Also used : V1Pod(io.kubernetes.client.models.V1Pod) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean)

Example 30 with V1Pod

use of io.kubernetes.client.models.V1Pod in project weblogic-kubernetes-operator by oracle.

the class PodHelperConfigTest method getDesiredAdminServerPodConfigForPersistentVolumeClaimAndDefaults.

private V1Pod getDesiredAdminServerPodConfigForPersistentVolumeClaimAndDefaults() {
    V1Pod pod = getDesiredAdminServerPodConfigForDefaults(DEFAULT_IMAGE, IFNOTPRESENT_IMAGEPULLPOLICY);
    setDesiredPersistentVolumeClaim(pod);
    return pod;
}
Also used : V1Pod(io.kubernetes.client.models.V1Pod)

Aggregations

V1Pod (io.kubernetes.client.models.V1Pod)31 Type (java.lang.reflect.Type)14 Test (org.junit.Test)8 ProgressRequestBody (io.kubernetes.client.ProgressRequestBody)7 ProgressResponseBody (io.kubernetes.client.ProgressResponseBody)7 ApiException (io.kubernetes.client.ApiException)2 V1ObjectMeta (io.kubernetes.client.models.V1ObjectMeta)2 V1PodList (io.kubernetes.client.models.V1PodList)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)2 DomainPresenceInfo (oracle.kubernetes.operator.helpers.DomainPresenceInfo)2 ServerKubernetesObjects (oracle.kubernetes.operator.helpers.ServerKubernetesObjects)2 HttpUserAgentTest (com.meterware.pseudoserver.HttpUserAgentTest)1 WorkerNetworkInfo (edu.iu.dsc.tws.rsched.bootstrap.WorkerNetworkInfo)1 JSON (io.kubernetes.client.JSON)1 V1ConfigMap (io.kubernetes.client.models.V1ConfigMap)1 V1DeleteOptions (io.kubernetes.client.models.V1DeleteOptions)1 V1EnvVar (io.kubernetes.client.models.V1EnvVar)1 V1PersistentVolumeClaimList (io.kubernetes.client.models.V1PersistentVolumeClaimList)1 V1Service (io.kubernetes.client.models.V1Service)1 V1ServiceList (io.kubernetes.client.models.V1ServiceList)1