Search in sources :

Example 21 with V1PersistentVolume

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

the class CoreV1ApiTest method patchPersistentVolumeTest.

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

Example 22 with V1PersistentVolume

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

the class CoreV1ApiTest method createPersistentVolumeTest.

/**
 * create a PersistentVolume
 *
 * @throws ApiException
 *          if the Api call fails
 */
@Test
public void createPersistentVolumeTest() throws ApiException {
    V1PersistentVolume body = null;
    String pretty = null;
    V1PersistentVolume response = api.createPersistentVolume(body, pretty);
// TODO: test validations
}
Also used : V1PersistentVolume(io.kubernetes.client.models.V1PersistentVolume) Test(org.junit.Test)

Example 23 with V1PersistentVolume

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

the class CoreV1ApiTest method readPersistentVolumeTest.

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

Example 24 with V1PersistentVolume

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

the class CreateDomainGeneratedFilesOptionalFeaturesDisabledTest method getExpectedWeblogicDomainPersistentVolume.

@Override
protected V1PersistentVolume getExpectedWeblogicDomainPersistentVolume() {
    V1PersistentVolume expected = super.getExpectedWeblogicDomainPersistentVolume();
    expected.getSpec().hostPath(newHostPathVolumeSource().path(getInputs().getWeblogicDomainStoragePath()));
    return expected;
}
Also used : V1PersistentVolume(io.kubernetes.client.models.V1PersistentVolume)

Aggregations

V1PersistentVolume (io.kubernetes.client.models.V1PersistentVolume)24 Type (java.lang.reflect.Type)14 ProgressRequestBody (io.kubernetes.client.ProgressRequestBody)7 ProgressResponseBody (io.kubernetes.client.ProgressResponseBody)7 Test (org.junit.Test)7 V1PersistentVolumeList (io.kubernetes.client.models.V1PersistentVolumeList)1 Domain (oracle.kubernetes.weblogic.domain.v1.Domain)1