package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Storage_class describes the parameters for a class of storage for which Persistent_volumes can be dynamically provisioned.

storage_classes are non_namespaced; the name of the storage class according to etcd is in Object_meta.name.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?volume_binding_mode:string -> ?reclaim_policy:string -> provisioner:string -> ?parameters:Object.Of_strings.t -> ?mount_options:string list -> ?metadata:Kubernetes.Definitions.Apimachinery.Pkg.Apis.Meta.V1.Object_meta.t -> ?kind:string -> ?api_version:string -> ?allow_volume_expansion:bool -> unit -> t
val allow_volume_expansion : t -> bool option

Allow_volume_expansion shows whether the storage class allow volume expand

val api_version : t -> string option

Api_version defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources

val kind : t -> string option

Kind is a string value representing the Rest resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In Camel_case. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds

Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata

val mount_options : t -> string list option

Dynamically provisioned Persistent_volumes of this storage class are created with these mount_options, e.g. ["ro", "soft"]. Not validated - mount of the Pvs will simply fail if one is invalid.

val parameters : t -> Object.Of_strings.t option

Parameters holds the parameters for the provisioner that should create volumes of this storage class.

val provisioner : t -> string

Provisioner indicates the type of the provisioner.

val reclaim_policy : t -> string option

Dynamically provisioned Persistent_volumes of this storage class are created with this reclaim_policy. Defaults to Delete.

val volume_binding_mode : t -> string option

Volume_binding_mode indicates how Persistent_volume_claims should be provisioned and bound. When unset, Volume_binding_immediate is used. This field is alpha_level and is only honored by servers that enable the Volume_scheduling feature.

module Object : Object.S with type value := t
OCaml

Innovation. Community. Security.