struct Kubernetes::StorageOSVolumeSource

Overview

Represents a StorageOS persistent volume resource.

Included Modules

Defined in:

generated/models/io_k8s_api_core_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

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

def self.new(pull : ::JSON::PullParser) #

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

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

Macro Detail

macro field(name, type = nil, **options, &block) #

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def fs_type : String | Nil #

fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.


def fs_type=(fs_type : String | Nil) #

fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified.


def read_only : Bool | Nil #

readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.


def read_only=(read_only : Bool | Nil) #

readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.


def secret_ref : LocalObjectReference | Nil #

secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.


def secret_ref=(secret_ref : LocalObjectReference | Nil) #

secretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.


def volume_name : String | Nil #

volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.


def volume_name=(volume_name : String | Nil) #

volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.


def volume_namespace : String | Nil #

volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.


def volume_namespace=(volume_namespace : String | Nil) #

volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to "default" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.