struct
Kubernetes::PersistentVolumeClaimTemplate
- Kubernetes::PersistentVolumeClaimTemplate
- Struct
- Value
- Object
Overview
PersistentVolumeClaimTemplate is used to produce PersistentVolumeClaim objects as part of an EphemeralVolumeSource.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_core_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#metadata : ObjectMeta | Nil
May contain labels and annotations that will be copied into the PVC when creating it.
-
#metadata=(metadata : ObjectMeta | Nil)
May contain labels and annotations that will be copied into the PVC when creating it.
-
#spec : PersistentVolumeClaimSpec | Nil
The specification for the PersistentVolumeClaim.
-
#spec=(spec : PersistentVolumeClaimSpec | Nil)
The specification for the PersistentVolumeClaim.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
May contain labels and annotations that will be copied into the PVC when creating it. No other fields are allowed and will be rejected during validation.
The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.
The specification for the PersistentVolumeClaim. The entire content is copied unchanged into the PVC that gets created from this template. The same fields as in a PersistentVolumeClaim are also valid here.