generated.proto 23 KB

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