StorageClass

case class StorageClass(allowVolumeExpansion: Optional[Boolean], allowedTopologies: Optional[Vector[TopologySelectorTerm]], metadata: Optional[ObjectMeta], mountOptions: Optional[Vector[String]], parameters: Optional[Map[String, String]], provisioner: String, reclaimPolicy: Optional[String], volumeBindingMode: Optional[String])

StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.

StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned.

StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.

Value Params
allowVolumeExpansion

AllowVolumeExpansion shows whether the storage class allow volume expand

allowedTopologies

Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.

mountOptions

Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.

parameters

Parameters holds the parameters for the provisioner that should create volumes of this storage class.

provisioner

Provisioner indicates the type of the provisioner.

reclaimPolicy

Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.

volumeBindingMode

VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

AllowVolumeExpansion shows whether the storage class allow volume expand

AllowVolumeExpansion shows whether the storage class allow volume expand

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.

Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Gets metadata.

Gets metadata.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getMountOptions: IO[K8sFailure, Vector[String]]

Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.

Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. ["ro", "soft"]. Not validated - mount of the PVs will simply fail if one is invalid.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getParameters: IO[K8sFailure, Map[String, String]]

Parameters holds the parameters for the provisioner that should create volumes of this storage class.

Parameters holds the parameters for the provisioner that should create volumes of this storage class.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getProvisioner: IO[K8sFailure, String]

Provisioner indicates the type of the provisioner.

Provisioner indicates the type of the provisioner.

This effect always succeeds, it is safe to use the field provisioner directly.

def getReclaimPolicy: IO[K8sFailure, String]

Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.

Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.

VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product