Class HostPathVolume
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<PodVolume>
-
- org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume
-
- org.csanchez.jenkins.plugins.kubernetes.volumes.HostPathVolume
-
- All Implemented Interfaces:
Describable<PodVolume>
,Serializable
- Direct Known Subclasses:
PodVolumes.HostPathVolume
public class HostPathVolume extends PodVolume
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HostPathVolume.DescriptorImpl
-
Constructor Summary
Constructors Constructor Description HostPathVolume(String hostPath, String mountPath, Boolean readOnly)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.fabric8.kubernetes.api.model.Volume
buildVolume(String volumeName)
It's expected to override at least one ofPodVolume.buildVolume(String, String)
orPodVolume.buildVolume(String)
.String
getHostPath()
String
getMountPath()
Boolean
getReadOnly()
String
toString()
-
Methods inherited from class org.csanchez.jenkins.plugins.kubernetes.volumes.PodVolume
buildVolume, createVolume, podVolumeExists, volumeMountExists
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Method Detail
-
buildVolume
public io.fabric8.kubernetes.api.model.Volume buildVolume(String volumeName)
Description copied from class:PodVolume
It's expected to override at least one ofPodVolume.buildVolume(String, String)
orPodVolume.buildVolume(String)
.- Overrides:
buildVolume
in classPodVolume
- Parameters:
volumeName
- The name of the volume to build.- Returns:
- The built volume.
-
getMountPath
public String getMountPath()
- Specified by:
getMountPath
in classPodVolume
-
getHostPath
public String getHostPath()
-
getReadOnly
@NonNull public Boolean getReadOnly()
-
-