generated.proto 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = "proto2";
  15. package k8s.io.api.storage.v1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
  18. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  20. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  21. // Package-wide variables from generator "generated".
  22. option go_package = "k8s.io/api/storage/v1";
  23. // CSIDriver captures information about a Container Storage Interface (CSI)
  24. // volume driver deployed on the cluster.
  25. // Kubernetes attach detach controller uses this object to determine whether attach is required.
  26. // Kubelet uses this object to determine whether pod information needs to be passed on mount.
  27. // CSIDriver objects are non-namespaced.
  28. message CSIDriver {
  29. // Standard object metadata.
  30. // metadata.Name indicates the name of the CSI driver that this object
  31. // refers to; it MUST be the same name returned by the CSI GetPluginName()
  32. // call for that driver.
  33. // The driver name must be 63 characters or less, beginning and ending with
  34. // an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and
  35. // alphanumerics between.
  36. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  37. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  38. // spec represents the specification of the CSI Driver.
  39. optional CSIDriverSpec spec = 2;
  40. }
  41. // CSIDriverList is a collection of CSIDriver objects.
  42. message CSIDriverList {
  43. // Standard list metadata
  44. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  45. // +optional
  46. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  47. // items is the list of CSIDriver
  48. repeated CSIDriver items = 2;
  49. }
  50. // CSIDriverSpec is the specification of a CSIDriver.
  51. message CSIDriverSpec {
  52. // attachRequired indicates this CSI volume driver requires an attach
  53. // operation (because it implements the CSI ControllerPublishVolume()
  54. // method), and that the Kubernetes attach detach controller should call
  55. // the attach volume interface which checks the volumeattachment status
  56. // and waits until the volume is attached before proceeding to mounting.
  57. // The CSI external-attacher coordinates with CSI volume driver and updates
  58. // the volumeattachment status when the attach operation is complete.
  59. // If the CSIDriverRegistry feature gate is enabled and the value is
  60. // specified to false, the attach operation will be skipped.
  61. // Otherwise the attach operation will be called.
  62. //
  63. // This field is immutable.
  64. //
  65. // +optional
  66. optional bool attachRequired = 1;
  67. // podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.)
  68. // during mount operations, if set to true.
  69. // If set to false, pod information will not be passed on mount.
  70. // Default is false.
  71. //
  72. // The CSI driver specifies podInfoOnMount as part of driver deployment.
  73. // If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls.
  74. // The CSI driver is responsible for parsing and validating the information passed in as VolumeContext.
  75. //
  76. // The following VolumeConext will be passed if podInfoOnMount is set to true.
  77. // This list might grow, but the prefix will be used.
  78. // "csi.storage.k8s.io/pod.name": pod.Name
  79. // "csi.storage.k8s.io/pod.namespace": pod.Namespace
  80. // "csi.storage.k8s.io/pod.uid": string(pod.UID)
  81. // "csi.storage.k8s.io/ephemeral": "true" if the volume is an ephemeral inline volume
  82. // defined by a CSIVolumeSource, otherwise "false"
  83. //
  84. // "csi.storage.k8s.io/ephemeral" is a new feature in Kubernetes 1.16. It is only
  85. // required for drivers which support both the "Persistent" and "Ephemeral" VolumeLifecycleMode.
  86. // Other drivers can leave pod info disabled and/or ignore this field.
  87. // As Kubernetes 1.15 doesn't support this field, drivers can only support one mode when
  88. // deployed on such a cluster and the deployment determines which mode that is, for example
  89. // via a command line parameter of the driver.
  90. //
  91. // This field is immutable.
  92. //
  93. // +optional
  94. optional bool podInfoOnMount = 2;
  95. // volumeLifecycleModes defines what kind of volumes this CSI volume driver supports.
  96. // The default if the list is empty is "Persistent", which is the usage defined by the
  97. // CSI specification and implemented in Kubernetes via the usual PV/PVC mechanism.
  98. //
  99. // The other mode is "Ephemeral". In this mode, volumes are defined inline inside the pod spec
  100. // with CSIVolumeSource and their lifecycle is tied to the lifecycle of that pod.
  101. // A driver has to be aware of this because it is only going to get a NodePublishVolume call for such a volume.
  102. //
  103. // For more information about implementing this mode, see
  104. // https://kubernetes-csi.github.io/docs/ephemeral-local-volumes.html
  105. // A driver can support one or more of these modes and more modes may be added in the future.
  106. //
  107. // This field is beta.
  108. // This field is immutable.
  109. //
  110. // +optional
  111. // +listType=set
  112. repeated string volumeLifecycleModes = 3;
  113. // storageCapacity indicates that the CSI volume driver wants pod scheduling to consider the storage
  114. // capacity that the driver deployment will report by creating
  115. // CSIStorageCapacity objects with capacity information, if set to true.
  116. //
  117. // The check can be enabled immediately when deploying a driver.
  118. // In that case, provisioning new volumes with late binding
  119. // will pause until the driver deployment has published
  120. // some suitable CSIStorageCapacity object.
  121. //
  122. // Alternatively, the driver can be deployed with the field
  123. // unset or false and it can be flipped later when storage
  124. // capacity information has been published.
  125. //
  126. // This field was immutable in Kubernetes <= 1.22 and now is mutable.
  127. //
  128. // +optional
  129. // +featureGate=CSIStorageCapacity
  130. optional bool storageCapacity = 4;
  131. // fsGroupPolicy defines if the underlying volume supports changing ownership and
  132. // permission of the volume before being mounted.
  133. // Refer to the specific FSGroupPolicy values for additional details.
  134. //
  135. // This field is immutable.
  136. //
  137. // Defaults to ReadWriteOnceWithFSType, which will examine each volume
  138. // to determine if Kubernetes should modify ownership and permissions of the volume.
  139. // With the default policy the defined fsGroup will only be applied
  140. // if a fstype is defined and the volume's access mode contains ReadWriteOnce.
  141. //
  142. // +optional
  143. optional string fsGroupPolicy = 5;
  144. // tokenRequests indicates the CSI driver needs pods' service account
  145. // tokens it is mounting volume for to do necessary authentication. Kubelet
  146. // will pass the tokens in VolumeContext in the CSI NodePublishVolume calls.
  147. // The CSI driver should parse and validate the following VolumeContext:
  148. // "csi.storage.k8s.io/serviceAccount.tokens": {
  149. // "<audience>": {
  150. // "token": <token>,
  151. // "expirationTimestamp": <expiration timestamp in RFC3339>,
  152. // },
  153. // ...
  154. // }
  155. //
  156. // Note: Audience in each TokenRequest should be different and at
  157. // most one token is empty string. To receive a new token after expiry,
  158. // RequiresRepublish can be used to trigger NodePublishVolume periodically.
  159. //
  160. // +optional
  161. // +listType=atomic
  162. repeated TokenRequest tokenRequests = 6;
  163. // requiresRepublish indicates the CSI driver wants `NodePublishVolume`
  164. // being periodically called to reflect any possible change in the mounted
  165. // volume. This field defaults to false.
  166. //
  167. // Note: After a successful initial NodePublishVolume call, subsequent calls
  168. // to NodePublishVolume should only update the contents of the volume. New
  169. // mount points will not be seen by a running container.
  170. //
  171. // +optional
  172. optional bool requiresRepublish = 7;
  173. // seLinuxMount specifies if the CSI driver supports "-o context"
  174. // mount option.
  175. //
  176. // When "true", the CSI driver must ensure that all volumes provided by this CSI
  177. // driver can be mounted separately with different `-o context` options. This is
  178. // typical for storage backends that provide volumes as filesystems on block
  179. // devices or as independent shared volumes.
  180. // Kubernetes will call NodeStage / NodePublish with "-o context=xyz" mount
  181. // option when mounting a ReadWriteOncePod volume used in Pod that has
  182. // explicitly set SELinux context. In the future, it may be expanded to other
  183. // volume AccessModes. In any case, Kubernetes will ensure that the volume is
  184. // mounted only with a single SELinux context.
  185. //
  186. // When "false", Kubernetes won't pass any special SELinux mount options to the driver.
  187. // This is typical for volumes that represent subdirectories of a bigger shared filesystem.
  188. //
  189. // Default is "false".
  190. //
  191. // +featureGate=SELinuxMountReadWriteOncePod
  192. // +optional
  193. optional bool seLinuxMount = 8;
  194. }
  195. // CSINode holds information about all CSI drivers installed on a node.
  196. // CSI drivers do not need to create the CSINode object directly. As long as
  197. // they use the node-driver-registrar sidecar container, the kubelet will
  198. // automatically populate the CSINode object for the CSI driver as part of
  199. // kubelet plugin registration.
  200. // CSINode has the same name as a node. If the object is missing, it means either
  201. // there are no CSI Drivers available on the node, or the Kubelet version is low
  202. // enough that it doesn't create this object.
  203. // CSINode has an OwnerReference that points to the corresponding node object.
  204. message CSINode {
  205. // Standard object's metadata.
  206. // metadata.name must be the Kubernetes node name.
  207. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  208. // spec is the specification of CSINode
  209. optional CSINodeSpec spec = 2;
  210. }
  211. // CSINodeDriver holds information about the specification of one CSI driver installed on a node
  212. message CSINodeDriver {
  213. // name represents the name of the CSI driver that this object refers to.
  214. // This MUST be the same name returned by the CSI GetPluginName() call for
  215. // that driver.
  216. optional string name = 1;
  217. // nodeID of the node from the driver point of view.
  218. // This field enables Kubernetes to communicate with storage systems that do
  219. // not share the same nomenclature for nodes. For example, Kubernetes may
  220. // refer to a given node as "node1", but the storage system may refer to
  221. // the same node as "nodeA". When Kubernetes issues a command to the storage
  222. // system to attach a volume to a specific node, it can use this field to
  223. // refer to the node name using the ID that the storage system will
  224. // understand, e.g. "nodeA" instead of "node1". This field is required.
  225. optional string nodeID = 2;
  226. // topologyKeys is the list of keys supported by the driver.
  227. // When a driver is initialized on a cluster, it provides a set of topology
  228. // keys that it understands (e.g. "company.com/zone", "company.com/region").
  229. // When a driver is initialized on a node, it provides the same topology keys
  230. // along with values. Kubelet will expose these topology keys as labels
  231. // on its own node object.
  232. // When Kubernetes does topology aware provisioning, it can use this list to
  233. // determine which labels it should retrieve from the node object and pass
  234. // back to the driver.
  235. // It is possible for different nodes to use different topology keys.
  236. // This can be empty if driver does not support topology.
  237. // +optional
  238. repeated string topologyKeys = 3;
  239. // allocatable represents the volume resources of a node that are available for scheduling.
  240. // This field is beta.
  241. // +optional
  242. optional VolumeNodeResources allocatable = 4;
  243. }
  244. // CSINodeList is a collection of CSINode objects.
  245. message CSINodeList {
  246. // Standard list metadata
  247. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  248. // +optional
  249. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  250. // items is the list of CSINode
  251. repeated CSINode items = 2;
  252. }
  253. // CSINodeSpec holds information about the specification of all CSI drivers installed on a node
  254. message CSINodeSpec {
  255. // drivers is a list of information of all CSI Drivers existing on a node.
  256. // If all drivers in the list are uninstalled, this can become empty.
  257. // +patchMergeKey=name
  258. // +patchStrategy=merge
  259. repeated CSINodeDriver drivers = 1;
  260. }
  261. // CSIStorageCapacity stores the result of one CSI GetCapacity call.
  262. // For a given StorageClass, this describes the available capacity in a
  263. // particular topology segment. This can be used when considering where to
  264. // instantiate new PersistentVolumes.
  265. //
  266. // For example this can express things like:
  267. // - StorageClass "standard" has "1234 GiB" available in "topology.kubernetes.io/zone=us-east1"
  268. // - StorageClass "localssd" has "10 GiB" available in "kubernetes.io/hostname=knode-abc123"
  269. //
  270. // The following three cases all imply that no capacity is available for
  271. // a certain combination:
  272. // - no object exists with suitable topology and storage class name
  273. // - such an object exists, but the capacity is unset
  274. // - such an object exists, but the capacity is zero
  275. //
  276. // The producer of these objects can decide which approach is more suitable.
  277. //
  278. // They are consumed by the kube-scheduler when a CSI driver opts into
  279. // capacity-aware scheduling with CSIDriverSpec.StorageCapacity. The scheduler
  280. // compares the MaximumVolumeSize against the requested size of pending volumes
  281. // to filter out unsuitable nodes. If MaximumVolumeSize is unset, it falls back
  282. // to a comparison against the less precise Capacity. If that is also unset,
  283. // the scheduler assumes that capacity is insufficient and tries some other
  284. // node.
  285. message CSIStorageCapacity {
  286. // Standard object's metadata.
  287. // The name has no particular meaning. It must be a DNS subdomain (dots allowed, 253 characters).
  288. // To ensure that there are no conflicts with other CSI drivers on the cluster,
  289. // the recommendation is to use csisc-<uuid>, a generated name, or a reverse-domain name
  290. // which ends with the unique CSI driver name.
  291. //
  292. // Objects are namespaced.
  293. //
  294. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  295. // +optional
  296. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  297. // nodeTopology defines which nodes have access to the storage
  298. // for which capacity was reported. If not set, the storage is
  299. // not accessible from any node in the cluster. If empty, the
  300. // storage is accessible from all nodes. This field is
  301. // immutable.
  302. //
  303. // +optional
  304. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector nodeTopology = 2;
  305. // storageClassName represents the name of the StorageClass that the reported capacity applies to.
  306. // It must meet the same requirements as the name of a StorageClass
  307. // object (non-empty, DNS subdomain). If that object no longer exists,
  308. // the CSIStorageCapacity object is obsolete and should be removed by its
  309. // creator.
  310. // This field is immutable.
  311. optional string storageClassName = 3;
  312. // capacity is the value reported by the CSI driver in its GetCapacityResponse
  313. // for a GetCapacityRequest with topology and parameters that match the
  314. // previous fields.
  315. //
  316. // The semantic is currently (CSI spec 1.2) defined as:
  317. // The available capacity, in bytes, of the storage that can be used
  318. // to provision volumes. If not set, that information is currently
  319. // unavailable.
  320. //
  321. // +optional
  322. optional k8s.io.apimachinery.pkg.api.resource.Quantity capacity = 4;
  323. // maximumVolumeSize is the value reported by the CSI driver in its GetCapacityResponse
  324. // for a GetCapacityRequest with topology and parameters that match the
  325. // previous fields.
  326. //
  327. // This is defined since CSI spec 1.4.0 as the largest size
  328. // that may be used in a
  329. // CreateVolumeRequest.capacity_range.required_bytes field to
  330. // create a volume with the same parameters as those in
  331. // GetCapacityRequest. The corresponding value in the Kubernetes
  332. // API is ResourceRequirements.Requests in a volume claim.
  333. //
  334. // +optional
  335. optional k8s.io.apimachinery.pkg.api.resource.Quantity maximumVolumeSize = 5;
  336. }
  337. // CSIStorageCapacityList is a collection of CSIStorageCapacity objects.
  338. message CSIStorageCapacityList {
  339. // Standard list metadata
  340. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  341. // +optional
  342. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  343. // items is the list of CSIStorageCapacity objects.
  344. // +listType=map
  345. // +listMapKey=name
  346. repeated CSIStorageCapacity items = 2;
  347. }
  348. // StorageClass describes the parameters for a class of storage for
  349. // which PersistentVolumes can be dynamically provisioned.
  350. //
  351. // StorageClasses are non-namespaced; the name of the storage class
  352. // according to etcd is in ObjectMeta.Name.
  353. message StorageClass {
  354. // Standard object's metadata.
  355. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  356. // +optional
  357. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  358. // provisioner indicates the type of the provisioner.
  359. optional string provisioner = 2;
  360. // parameters holds the parameters for the provisioner that should
  361. // create volumes of this storage class.
  362. // +optional
  363. map<string, string> parameters = 3;
  364. // reclaimPolicy controls the reclaimPolicy for dynamically provisioned PersistentVolumes of this storage class.
  365. // Defaults to Delete.
  366. // +optional
  367. optional string reclaimPolicy = 4;
  368. // mountOptions controls the mountOptions for dynamically provisioned PersistentVolumes of this storage class.
  369. // e.g. ["ro", "soft"]. Not validated -
  370. // mount of the PVs will simply fail if one is invalid.
  371. // +optional
  372. repeated string mountOptions = 5;
  373. // allowVolumeExpansion shows whether the storage class allow volume expand.
  374. // +optional
  375. optional bool allowVolumeExpansion = 6;
  376. // volumeBindingMode indicates how PersistentVolumeClaims should be
  377. // provisioned and bound. When unset, VolumeBindingImmediate is used.
  378. // This field is only honored by servers that enable the VolumeScheduling feature.
  379. // +optional
  380. optional string volumeBindingMode = 7;
  381. // allowedTopologies restrict the node topologies where volumes can be dynamically provisioned.
  382. // Each volume plugin defines its own supported topology specifications.
  383. // An empty TopologySelectorTerm list means there is no topology restriction.
  384. // This field is only honored by servers that enable the VolumeScheduling feature.
  385. // +optional
  386. // +listType=atomic
  387. repeated k8s.io.api.core.v1.TopologySelectorTerm allowedTopologies = 8;
  388. }
  389. // StorageClassList is a collection of storage classes.
  390. message StorageClassList {
  391. // Standard list metadata
  392. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  393. // +optional
  394. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  395. // items is the list of StorageClasses
  396. repeated StorageClass items = 2;
  397. }
  398. // TokenRequest contains parameters of a service account token.
  399. message TokenRequest {
  400. // audience is the intended audience of the token in "TokenRequestSpec".
  401. // It will default to the audiences of kube apiserver.
  402. optional string audience = 1;
  403. // expirationSeconds is the duration of validity of the token in "TokenRequestSpec".
  404. // It has the same default value of "ExpirationSeconds" in "TokenRequestSpec".
  405. //
  406. // +optional
  407. optional int64 expirationSeconds = 2;
  408. }
  409. // VolumeAttachment captures the intent to attach or detach the specified volume
  410. // to/from the specified node.
  411. //
  412. // VolumeAttachment objects are non-namespaced.
  413. message VolumeAttachment {
  414. // Standard object metadata.
  415. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  416. // +optional
  417. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  418. // spec represents specification of the desired attach/detach volume behavior.
  419. // Populated by the Kubernetes system.
  420. optional VolumeAttachmentSpec spec = 2;
  421. // status represents status of the VolumeAttachment request.
  422. // Populated by the entity completing the attach or detach
  423. // operation, i.e. the external-attacher.
  424. // +optional
  425. optional VolumeAttachmentStatus status = 3;
  426. }
  427. // VolumeAttachmentList is a collection of VolumeAttachment objects.
  428. message VolumeAttachmentList {
  429. // Standard list metadata
  430. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  431. // +optional
  432. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  433. // items is the list of VolumeAttachments
  434. repeated VolumeAttachment items = 2;
  435. }
  436. // VolumeAttachmentSource represents a volume that should be attached.
  437. // Right now only PersistenVolumes can be attached via external attacher,
  438. // in future we may allow also inline volumes in pods.
  439. // Exactly one member can be set.
  440. message VolumeAttachmentSource {
  441. // persistentVolumeName represents the name of the persistent volume to attach.
  442. // +optional
  443. optional string persistentVolumeName = 1;
  444. // inlineVolumeSpec contains all the information necessary to attach
  445. // a persistent volume defined by a pod's inline VolumeSource. This field
  446. // is populated only for the CSIMigration feature. It contains
  447. // translated fields from a pod's inline VolumeSource to a
  448. // PersistentVolumeSpec. This field is beta-level and is only
  449. // honored by servers that enabled the CSIMigration feature.
  450. // +optional
  451. optional k8s.io.api.core.v1.PersistentVolumeSpec inlineVolumeSpec = 2;
  452. }
  453. // VolumeAttachmentSpec is the specification of a VolumeAttachment request.
  454. message VolumeAttachmentSpec {
  455. // attacher indicates the name of the volume driver that MUST handle this
  456. // request. This is the name returned by GetPluginName().
  457. optional string attacher = 1;
  458. // source represents the volume that should be attached.
  459. optional VolumeAttachmentSource source = 2;
  460. // nodeName represents the node that the volume should be attached to.
  461. optional string nodeName = 3;
  462. }
  463. // VolumeAttachmentStatus is the status of a VolumeAttachment request.
  464. message VolumeAttachmentStatus {
  465. // attached indicates the volume is successfully attached.
  466. // This field must only be set by the entity completing the attach
  467. // operation, i.e. the external-attacher.
  468. optional bool attached = 1;
  469. // attachmentMetadata is populated with any
  470. // information returned by the attach operation, upon successful attach, that must be passed
  471. // into subsequent WaitForAttach or Mount calls.
  472. // This field must only be set by the entity completing the attach
  473. // operation, i.e. the external-attacher.
  474. // +optional
  475. map<string, string> attachmentMetadata = 2;
  476. // attachError represents the last error encountered during attach operation, if any.
  477. // This field must only be set by the entity completing the attach
  478. // operation, i.e. the external-attacher.
  479. // +optional
  480. optional VolumeError attachError = 3;
  481. // detachError represents the last error encountered during detach operation, if any.
  482. // This field must only be set by the entity completing the detach
  483. // operation, i.e. the external-attacher.
  484. // +optional
  485. optional VolumeError detachError = 4;
  486. }
  487. // VolumeError captures an error encountered during a volume operation.
  488. message VolumeError {
  489. // time represents the time the error was encountered.
  490. // +optional
  491. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time time = 1;
  492. // message represents the error encountered during Attach or Detach operation.
  493. // This string may be logged, so it should not contain sensitive
  494. // information.
  495. // +optional
  496. optional string message = 2;
  497. }
  498. // VolumeNodeResources is a set of resource limits for scheduling of volumes.
  499. message VolumeNodeResources {
  500. // count indicates the maximum number of unique volumes managed by the CSI driver that can be used on a node.
  501. // A volume that is both attached and mounted on a node is considered to be used once, not twice.
  502. // The same rule applies for a unique volume that is shared among multiple pods on the same node.
  503. // If this field is not specified, then the supported number of volumes on this node is unbounded.
  504. // +optional
  505. optional int32 count = 1;
  506. }