-
Notifications
You must be signed in to change notification settings - Fork 76
/
Copy pathv1_persistent_volume_spec.go
104 lines (72 loc) · 6.94 KB
/
v1_persistent_volume_spec.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/*
* 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
// PersistentVolumeSpec is the specification of a persistent volume.
type V1PersistentVolumeSpec struct {
// AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes
AccessModes []string `json:"accessModes,omitempty"`
// AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore
AwsElasticBlockStore *V1AwsElasticBlockStoreVolumeSource `json:"awsElasticBlockStore,omitempty"`
// AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.
AzureDisk *V1AzureDiskVolumeSource `json:"azureDisk,omitempty"`
// AzureFile represents an Azure File Service mount on the host and bind mount to the pod.
AzureFile *V1AzureFilePersistentVolumeSource `json:"azureFile,omitempty"`
// A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity
Capacity map[string]string `json:"capacity,omitempty"`
// CephFS represents a Ceph FS mount on the host that shares a pod's lifetime
Cephfs *V1CephFsPersistentVolumeSource `json:"cephfs,omitempty"`
// Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md
Cinder *V1CinderVolumeSource `json:"cinder,omitempty"`
// ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding
ClaimRef *V1ObjectReference `json:"claimRef,omitempty"`
// CSI represents storage that handled by an external CSI driver (Beta feature).
Csi *V1CsiPersistentVolumeSource `json:"csi,omitempty"`
// FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.
Fc *V1FcVolumeSource `json:"fc,omitempty"`
// FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.
FlexVolume *V1FlexPersistentVolumeSource `json:"flexVolume,omitempty"`
// Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running
Flocker *V1FlockerVolumeSource `json:"flocker,omitempty"`
// GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk
GcePersistentDisk *V1GcePersistentDiskVolumeSource `json:"gcePersistentDisk,omitempty"`
// Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md
Glusterfs *V1GlusterfsVolumeSource `json:"glusterfs,omitempty"`
// HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath
HostPath *V1HostPathVolumeSource `json:"hostPath,omitempty"`
// ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.
Iscsi *V1IscsiPersistentVolumeSource `json:"iscsi,omitempty"`
// Local represents directly-attached storage with node affinity
Local *V1LocalVolumeSource `json:"local,omitempty"`
// A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options
MountOptions []string `json:"mountOptions,omitempty"`
// NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs
Nfs *V1NfsVolumeSource `json:"nfs,omitempty"`
// NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.
NodeAffinity *V1VolumeNodeAffinity `json:"nodeAffinity,omitempty"`
// What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming
PersistentVolumeReclaimPolicy string `json:"persistentVolumeReclaimPolicy,omitempty"`
// PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine
PhotonPersistentDisk *V1PhotonPersistentDiskVolumeSource `json:"photonPersistentDisk,omitempty"`
// PortworxVolume represents a portworx volume attached and mounted on kubelets host machine
PortworxVolume *V1PortworxVolumeSource `json:"portworxVolume,omitempty"`
// Quobyte represents a Quobyte mount on the host that shares a pod's lifetime
Quobyte *V1QuobyteVolumeSource `json:"quobyte,omitempty"`
// RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md
Rbd *V1RbdPersistentVolumeSource `json:"rbd,omitempty"`
// ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.
ScaleIO *V1ScaleIoPersistentVolumeSource `json:"scaleIO,omitempty"`
// Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.
StorageClassName string `json:"storageClassName,omitempty"`
// StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md
Storageos *V1StorageOsPersistentVolumeSource `json:"storageos,omitempty"`
// volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is an alpha feature and may change in the future.
VolumeMode string `json:"volumeMode,omitempty"`
// VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine
VsphereVolume *V1VsphereVirtualDiskVolumeSource `json:"vsphereVolume,omitempty"`
}