class K8S::Api::Core::V1::PersistentVolumeSpec

Overview

PersistentVolumeSpec is the specification of a persistent volume.

Included Modules

Defined in:

versions/v1.22/api/core/v1/persistent_volume_spec.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, access_modes : Array(String)? = nil, aws_elastic_block_store : Api::Core::V1::AWSElasticBlockStoreVolumeSource? = nil, azure_disk : Api::Core::V1::AzureDiskVolumeSource? = nil, azure_file : Api::Core::V1::AzureFilePersistentVolumeSource? = nil, capacity : Hash(String, Int32 | String)? = nil, cephfs : Api::Core::V1::CephFSPersistentVolumeSource? = nil, cinder : Api::Core::V1::CinderPersistentVolumeSource? = nil, claim_ref : Api::Core::V1::ObjectReference? = nil, csi : Api::Core::V1::CSIPersistentVolumeSource? = nil, fc : Api::Core::V1::FCVolumeSource? = nil, flex_volume : Api::Core::V1::FlexPersistentVolumeSource? = nil, flocker : Api::Core::V1::FlockerVolumeSource? = nil, gce_persistent_disk : Api::Core::V1::GCEPersistentDiskVolumeSource? = nil, glusterfs : Api::Core::V1::GlusterfsPersistentVolumeSource? = nil, host_path : Api::Core::V1::HostPathVolumeSource? = nil, iscsi : Api::Core::V1::ISCSIPersistentVolumeSource? = nil, local : Api::Core::V1::LocalVolumeSource? = nil, mount_options : Array(String)? = nil, nfs : Api::Core::V1::NFSVolumeSource? = nil, node_affinity : Api::Core::V1::VolumeNodeAffinity? = nil, persistent_volume_reclaim_policy : String? = nil, photon_persistent_disk : Api::Core::V1::PhotonPersistentDiskVolumeSource? = nil, portworx_volume : Api::Core::V1::PortworxVolumeSource? = nil, quobyte : Api::Core::V1::QuobyteVolumeSource? = nil, rbd : Api::Core::V1::RBDPersistentVolumeSource? = nil, scale_io : Api::Core::V1::ScaleIOPersistentVolumeSource? = nil, storage_class_name : String? = nil, storageos : Api::Core::V1::StorageOSPersistentVolumeSource? = nil, volume_mode : String? = nil, vsphere_volume : Api::Core::V1::VsphereVirtualDiskVolumeSource? = nil) #

[View source]

Instance Method Detail

def access_modes : Array(String)? #

[View source]
def access_modes=(access_modes : Array(String)?) #

[View source]
def aws_elastic_block_store : Api::Core::V1::AWSElasticBlockStoreVolumeSource? #

[View source]
def aws_elastic_block_store=(aws_elastic_block_store : Api::Core::V1::AWSElasticBlockStoreVolumeSource?) #

[View source]

[View source]
def azure_disk=(azure_disk : Api::Core::V1::AzureDiskVolumeSource?) #

[View source]

[View source]
def azure_file=(azure_file : Api::Core::V1::AzureFilePersistentVolumeSource?) #

[View source]
def capacity : Hash(String, Int32 | String)? #

[View source]
def capacity=(capacity : Hash(String, Int32 | String)?) #

[View source]

[View source]

[View source]

[View source]

[View source]

[View source]
def claim_ref=(claim_ref : Api::Core::V1::ObjectReference?) #

[View source]

[View source]

[View source]

[View source]

[View source]

[View source]
def flex_volume=(flex_volume : Api::Core::V1::FlexPersistentVolumeSource?) #

[View source]

[View source]
def flocker=(flocker : Api::Core::V1::FlockerVolumeSource?) #

[View source]
def gce_persistent_disk : Api::Core::V1::GCEPersistentDiskVolumeSource? #

[View source]
def gce_persistent_disk=(gce_persistent_disk : Api::Core::V1::GCEPersistentDiskVolumeSource?) #

[View source]

[View source]
def glusterfs=(glusterfs : Api::Core::V1::GlusterfsPersistentVolumeSource?) #

[View source]

[View source]
def host_path=(host_path : Api::Core::V1::HostPathVolumeSource?) #

[View source]

[View source]

[View source]

[View source]
def local=(local : Api::Core::V1::LocalVolumeSource?) #

[View source]
def mount_options : Array(String)? #

[View source]
def mount_options=(mount_options : Array(String)?) #

[View source]

[View source]

[View source]
def node_affinity : Api::Core::V1::VolumeNodeAffinity? #

[View source]
def node_affinity=(node_affinity : Api::Core::V1::VolumeNodeAffinity?) #

[View source]
def persistent_volume_reclaim_policy : String? #

[View source]
def persistent_volume_reclaim_policy=(persistent_volume_reclaim_policy : String?) #

[View source]
def photon_persistent_disk : Api::Core::V1::PhotonPersistentDiskVolumeSource? #

[View source]
def photon_persistent_disk=(photon_persistent_disk : Api::Core::V1::PhotonPersistentDiskVolumeSource?) #

[View source]
def portworx_volume : Api::Core::V1::PortworxVolumeSource? #

[View source]
def portworx_volume=(portworx_volume : Api::Core::V1::PortworxVolumeSource?) #

[View source]

[View source]
def quobyte=(quobyte : Api::Core::V1::QuobyteVolumeSource?) #

[View source]

[View source]

[View source]

[View source]
def scale_io=(scale_io : Api::Core::V1::ScaleIOPersistentVolumeSource?) #

[View source]
def storage_class_name : String? #

[View source]
def storage_class_name=(storage_class_name : String?) #

[View source]

[View source]
def storageos=(storageos : Api::Core::V1::StorageOSPersistentVolumeSource?) #

[View source]
def volume_mode : String? #

[View source]
def volume_mode=(volume_mode : String?) #

[View source]

[View source]
def vsphere_volume=(vsphere_volume : Api::Core::V1::VsphereVirtualDiskVolumeSource?) #

[View source]