kubernetes-models
Version:
31 lines (30 loc) • 2.27 kB
TypeScript
import { IIoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration } from "./ExemptPriorityLevelConfiguration";
import { IIoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration } from "./LimitedPriorityLevelConfiguration";
import { ModelData, Model } from "@kubernetes-models/base";
/**
* PriorityLevelConfigurationSpec specifies the configuration of a priority level.
*/
export interface IPriorityLevelConfigurationSpec {
/**
* `exempt` specifies how requests are handled for an exempt priority level. This field MUST be empty if `type` is `"Limited"`. This field MAY be non-empty if `type` is `"Exempt"`. If empty and `type` is `"Exempt"` then the default values for `ExemptPriorityLevelConfiguration` apply.
*/
"exempt"?: IIoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration;
/**
* `limited` specifies how requests are handled for a Limited priority level. This field must be non-empty if and only if `type` is `"Limited"`.
*/
"limited"?: IIoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration;
/**
* `type` indicates whether this priority level is subject to limitation on request execution. A value of `"Exempt"` means that requests of this priority level are not subject to a limit (and thus are never queued) and do not detract from the capacity made available to other priority levels. A value of `"Limited"` means that (a) requests of this priority level _are_ subject to limits and (b) some of the server's limited capacity is made available exclusively to this priority level. Required.
*/
"type": string;
}
/**
* PriorityLevelConfigurationSpec specifies the configuration of a priority level.
*/
export declare class PriorityLevelConfigurationSpec extends Model<IPriorityLevelConfigurationSpec> implements IPriorityLevelConfigurationSpec {
"exempt"?: IIoK8sApiFlowcontrolV1beta3ExemptPriorityLevelConfiguration;
"limited"?: IIoK8sApiFlowcontrolV1beta3LimitedPriorityLevelConfiguration;
"type": string;
constructor(data?: ModelData<IPriorityLevelConfigurationSpec>);
}
export { IPriorityLevelConfigurationSpec as IIoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec, PriorityLevelConfigurationSpec as IoK8sApiFlowcontrolV1beta3PriorityLevelConfigurationSpec };