class K8S::Api::Storage::V1::StorageClass
- K8S::Api::Storage::V1::StorageClass
- K8S::Kubernetes::Resource
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- K8S::Kubernetes::Resource::Object
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.15/api/storage/v1/storage_class.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, provisioner : String, allow_volume_expansion : Bool? = nil, allowed_topologies : Array(Api::Core::V1::TopologySelectorTerm)? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, mount_options : Array(String)? = nil, parameters : Hash(String, String)? = nil, reclaim_policy : String? = nil, volume_binding_mode : String? = nil)
Class Method Summary
Instance Method Summary
- #allow_volume_expansion : Bool?
- #allow_volume_expansion=(allow_volume_expansion : Bool?)
- #allowed_topologies : Array(Api::Core::V1::TopologySelectorTerm)?
- #allowed_topologies=(allowed_topologies : Array(Api::Core::V1::TopologySelectorTerm)?)
- #api_version : String
- #kind : String
- #merge(other)
-
#metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
Standard object's metadata.
-
#metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
Standard object's metadata.
- #mount_options : Array(String)?
- #mount_options=(mount_options : Array(String)?)
- #parameters : Hash(String, String)?
- #parameters=(parameters : Hash(String, String)?)
- #provisioner : String
- #provisioner=(provisioner : String)
- #reclaim_policy : String?
- #reclaim_policy=(reclaim_policy : String?)
- #to_h
- #volume_binding_mode : String?
- #volume_binding_mode=(volume_binding_mode : String?)
Instance methods inherited from module K8S::Kubernetes::Resource::Object
api_version : String
api_version,
kind : String
kind,
metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
metadata,
metadata! : Apimachinery::Apis::Meta::V1::ObjectMeta
metadata!
Instance methods inherited from class K8S::Kubernetes::Resource
api_version : String
api_version,
kind : String
kind
Constructor methods inherited from class K8S::Kubernetes::Resource
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Class methods inherited from class K8S::Kubernetes::Resource
from_file(file)
from_file,
from_files(*paths)
from_files
Constructor Detail
def self.new(*, provisioner : String, allow_volume_expansion : Bool? = nil, allowed_topologies : Array(Api::Core::V1::TopologySelectorTerm)? = nil, metadata : Apimachinery::Apis::Meta::V1::ObjectMeta? = nil, mount_options : Array(String)? = nil, parameters : Hash(String, String)? = nil, reclaim_policy : String? = nil, volume_binding_mode : String? = nil)
#
Class Method Detail
Instance Method Detail
def allowed_topologies=(allowed_topologies : Array(Api::Core::V1::TopologySelectorTerm)?)
#
def metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?
#
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
def metadata=(metadata : Apimachinery::Apis::Meta::V1::ObjectMeta?)
#
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata