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
}
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
}
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
}
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();
}
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;
}
Aggregations