2021-12-07 13:18:08 -05:00

62 lines
2.5 KiB
JavaScript

"use strict";
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: v1.22.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.V1alpha1CSIStorageCapacity = void 0;
/**
* CSIStorageCapacity stores the result of one CSI GetCapacity call. For a given StorageClass, this describes the available capacity in a particular topology segment. This can be used when considering where to instantiate new PersistentVolumes. For example this can express things like: - StorageClass \"standard\" has \"1234 GiB\" available in \"topology.kubernetes.io/zone=us-east1\" - StorageClass \"localssd\" has \"10 GiB\" available in \"kubernetes.io/hostname=knode-abc123\" The following three cases all imply that no capacity is available for a certain combination: - no object exists with suitable topology and storage class name - such an object exists, but the capacity is unset - such an object exists, but the capacity is zero The producer of these objects can decide which approach is more suitable. They are consumed by the kube-scheduler if the CSIStorageCapacity beta feature gate is enabled there and a CSI driver opts into capacity-aware scheduling with CSIDriver.StorageCapacity.
*/
class V1alpha1CSIStorageCapacity {
static getAttributeTypeMap() {
return V1alpha1CSIStorageCapacity.attributeTypeMap;
}
}
exports.V1alpha1CSIStorageCapacity = V1alpha1CSIStorageCapacity;
V1alpha1CSIStorageCapacity.discriminator = undefined;
V1alpha1CSIStorageCapacity.attributeTypeMap = [
{
"name": "apiVersion",
"baseName": "apiVersion",
"type": "string"
},
{
"name": "capacity",
"baseName": "capacity",
"type": "string"
},
{
"name": "kind",
"baseName": "kind",
"type": "string"
},
{
"name": "maximumVolumeSize",
"baseName": "maximumVolumeSize",
"type": "string"
},
{
"name": "metadata",
"baseName": "metadata",
"type": "V1ObjectMeta"
},
{
"name": "nodeTopology",
"baseName": "nodeTopology",
"type": "V1LabelSelector"
},
{
"name": "storageClassName",
"baseName": "storageClassName",
"type": "string"
}
];
//# sourceMappingURL=v1alpha1CSIStorageCapacity.js.map