-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1beta1_storage_class.go
41 lines (30 loc) · 2.43 KB
/
v1beta1_storage_class.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* Kubernetes
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* API version: v1.10.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package client
// 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.
type V1beta1StorageClass struct {
// AllowVolumeExpansion shows whether the storage class allow volume expand
AllowVolumeExpansion bool `json:"allowVolumeExpansion,omitempty"`
// APIVersion 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
ApiVersion string `json:"apiVersion,omitempty"`
// 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 CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
Kind string `json:"kind,omitempty"`
// Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
Metadata *V1ObjectMeta `json:"metadata,omitempty"`
// Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.
MountOptions []string `json:"mountOptions,omitempty"`
// Parameters holds the parameters for the provisioner that should create volumes of this storage class.
Parameters map[string]string `json:"parameters,omitempty"`
// Provisioner indicates the type of the provisioner.
Provisioner string `json:"provisioner"`
// Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.
ReclaimPolicy string `json:"reclaimPolicy,omitempty"`
// VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is alpha-level and is only honored by servers that enable the VolumeScheduling feature.
VolumeBindingMode string `json:"volumeBindingMode,omitempty"`
}