Search in sources :

Example 6 with V1Volume

use of io.kubernetes.client.models.V1Volume in project incubator-heron by apache.

the class VolumesTests method testNoVolume.

@Test
public void testNoVolume() {
    final Config config = Config.newBuilder().build();
    final V1Volume volume = Volumes.get().create(config);
    Assert.assertNull(volume);
}
Also used : V1Volume(io.kubernetes.client.models.V1Volume) Config(com.twitter.heron.spi.common.Config) Test(org.junit.Test)

Aggregations

V1Volume (io.kubernetes.client.models.V1Volume)6 Config (com.twitter.heron.spi.common.Config)5 Test (org.junit.Test)4 IntOrString (io.kubernetes.client.custom.IntOrString)1 V1Container (io.kubernetes.client.models.V1Container)1 V1EmptyDirVolumeSource (io.kubernetes.client.models.V1EmptyDirVolumeSource)1 V1ObjectMeta (io.kubernetes.client.models.V1ObjectMeta)1 V1PodSpec (io.kubernetes.client.models.V1PodSpec)1 V1PodTemplateSpec (io.kubernetes.client.models.V1PodTemplateSpec)1 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1