UNPKG

kubernetes-models

Version:
38 lines (37 loc) 2.12 kB
import { ModelData, Model } from "@kubernetes-models/base"; /** * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ export interface IModifyVolumeStatus { /** * status is the status of the ControllerModifyVolume operation. It can be in any of following states: * - Pending * Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as * the specified VolumeAttributesClass not existing. * - InProgress * InProgress indicates that the volume is being modified. * - Infeasible * Infeasible indicates that the request has been rejected as invalid by the CSI driver. To * resolve the error, a valid VolumeAttributesClass needs to be specified. * Note: New statuses can be added in the future. Consumers should check for unknown statuses and fail appropriately. * * Possible enum values: * - `"InProgress"` InProgress indicates that the volume is being modified * - `"Infeasible"` Infeasible indicates that the request has been rejected as invalid by the CSI driver. To resolve the error, a valid VolumeAttributesClass needs to be specified * - `"Pending"` Pending indicates that the PersistentVolumeClaim cannot be modified due to unmet requirements, such as the specified VolumeAttributesClass not existing */ "status": "InProgress" | "Infeasible" | "Pending"; /** * targetVolumeAttributesClassName is the name of the VolumeAttributesClass the PVC currently being reconciled */ "targetVolumeAttributesClassName"?: string; } /** * ModifyVolumeStatus represents the status object of ControllerModifyVolume operation */ export declare class ModifyVolumeStatus extends Model<IModifyVolumeStatus> implements IModifyVolumeStatus { "status": "InProgress" | "Infeasible" | "Pending"; "targetVolumeAttributesClassName"?: string; constructor(data?: ModelData<IModifyVolumeStatus>); } export { IModifyVolumeStatus as IIoK8sApiCoreV1ModifyVolumeStatus, ModifyVolumeStatus as IoK8sApiCoreV1ModifyVolumeStatus };