kubernetes-models
Version:
34 lines (33 loc) • 1.65 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1Time } from "@kubernetes-models/apimachinery/apis/meta/v1/Time";
import { IIoK8sApiResourceV1DeviceAllocationResult } from "./DeviceAllocationResult.js";
import { IIoK8sApiCoreV1NodeSelector } from "../../v1/NodeSelector.js";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* AllocationResult contains attributes of an allocated resource.
*/
export interface IAllocationResult {
/**
* AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown.
*
* This is a beta field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate.
*/
"allocationTimestamp"?: IIoK8sApimachineryPkgApisMetaV1Time;
/**
* Devices is the result of allocating devices.
*/
"devices"?: IIoK8sApiResourceV1DeviceAllocationResult;
/**
* NodeSelector defines where the allocated resources are available. If unset, they are available everywhere.
*/
"nodeSelector"?: IIoK8sApiCoreV1NodeSelector;
}
/**
* AllocationResult contains attributes of an allocated resource.
*/
export declare class AllocationResult extends Model<IAllocationResult> implements IAllocationResult {
"allocationTimestamp"?: IIoK8sApimachineryPkgApisMetaV1Time;
"devices"?: IIoK8sApiResourceV1DeviceAllocationResult;
"nodeSelector"?: IIoK8sApiCoreV1NodeSelector;
constructor(data?: ModelData<IAllocationResult>);
}
export type { IAllocationResult as IIoK8sApiResourceV1AllocationResult, AllocationResult as IoK8sApiResourceV1AllocationResult };