com.coralogix.zio.k8s.model.core.v1
PersistentVolumeClaimSpec
Companion object PersistentVolumeClaimSpec
case class PersistentVolumeClaimSpec(accessModes: Optional[Vector[String]] = Optional.Absent, dataSource: Optional[TypedLocalObjectReference] = Optional.Absent, dataSourceRef: Optional[TypedLocalObjectReference] = Optional.Absent, resources: Optional[ResourceRequirements] = Optional.Absent, selector: Optional[LabelSelector] = Optional.Absent, storageClassName: Optional[String] = Optional.Absent, volumeMode: Optional[String] = Optional.Absent, volumeName: Optional[String] = Optional.Absent) extends Product with Serializable
PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes
- accessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- storageClassName
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
- volumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
- volumeName
VolumeName is the binding reference to the PersistentVolume backing this claim.
- Alphabetic
- By Inheritance
- PersistentVolumeClaimSpec
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
PersistentVolumeClaimSpec(accessModes: Optional[Vector[String]] = Optional.Absent, dataSource: Optional[TypedLocalObjectReference] = Optional.Absent, dataSourceRef: Optional[TypedLocalObjectReference] = Optional.Absent, resources: Optional[ResourceRequirements] = Optional.Absent, selector: Optional[LabelSelector] = Optional.Absent, storageClassName: Optional[String] = Optional.Absent, volumeMode: Optional[String] = Optional.Absent, volumeName: Optional[String] = Optional.Absent)
- accessModes
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
- storageClassName
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
- volumeMode
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
- volumeName
VolumeName is the binding reference to the PersistentVolume backing this claim.
Value Members
- val accessModes: Optional[Vector[String]]
- val dataSource: Optional[TypedLocalObjectReference]
- val dataSourceRef: Optional[TypedLocalObjectReference]
-
def
getAccessModes: IO[K8sFailure, Vector[String]]
AccessModes contains the desired access modes the volume should have.
AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getDataSource: IO[K8sFailure, TypedLocalObjectReference]
Gets dataSource.
Gets dataSource.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getDataSourceRef: IO[K8sFailure, TypedLocalObjectReference]
Gets dataSourceRef.
Gets dataSourceRef.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getResources: IO[K8sFailure, ResourceRequirements]
Gets resources.
Gets resources.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getSelector: IO[K8sFailure, LabelSelector]
Gets selector.
Gets selector.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getStorageClassName: IO[K8sFailure, String]
Name of the StorageClass required by the claim.
Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getVolumeMode: IO[K8sFailure, String]
volumeMode defines what type of volume is required by the claim.
volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
-
def
getVolumeName: IO[K8sFailure, String]
VolumeName is the binding reference to the PersistentVolume backing this claim.
VolumeName is the binding reference to the PersistentVolume backing this claim.
If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.
- val resources: Optional[ResourceRequirements]
- val selector: Optional[LabelSelector]
- val storageClassName: Optional[String]
- val volumeMode: Optional[String]
- val volumeName: Optional[String]