struct

Kubernetes::VolumeDevice

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

volumeDevice describes a mapping of a raw block device within a container.

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

device_path

devicePath is the path inside of the container that the device will be mapped to.

Source
device_path=(device_path : String | Nil)

devicePath is the path inside of the container that the device will be mapped to.

Source
name

name must match the name of a persistentVolumeClaim in the pod

Source
name=(name : String | Nil)

name must match the name of a persistentVolumeClaim in the pod

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source