kubernetes-models
Version:
49 lines (48 loc) • 2.81 kB
TypeScript
import { IIoK8sApimachineryPkgApisMetaV1ObjectMeta } from "@kubernetes-models/apimachinery/apis/meta/v1/ObjectMeta";
import { ModelData, TypeMeta, Model } from "@kubernetes-models/base";
/**
* DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
* @deprecated
*/
export interface IPriorityClass extends TypeMeta {
"apiVersion": "scheduling.k8s.io/v1beta1";
/**
* description is an arbitrary string that usually provides guidelines on when this priority class should be used.
*/
"description"?: string;
/**
* globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.
*/
"globalDefault"?: boolean;
"kind": "PriorityClass";
/**
* Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
*/
"metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
/**
* PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is beta-level, gated by the NonPreemptingPriority feature-gate.
*/
"preemptionPolicy"?: string;
/**
* The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.
*/
"value": number;
}
/**
* DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.
* @deprecated
*/
export declare class PriorityClass extends Model<IPriorityClass> implements IPriorityClass {
"apiVersion": IPriorityClass["apiVersion"];
"description"?: string;
"globalDefault"?: boolean;
"kind": IPriorityClass["kind"];
"metadata"?: IIoK8sApimachineryPkgApisMetaV1ObjectMeta;
"preemptionPolicy"?: string;
"value": number;
static apiVersion: IPriorityClass["apiVersion"];
static kind: IPriorityClass["kind"];
static is: import("@kubernetes-models/base").TypeMetaGuard<IPriorityClass>;
constructor(data?: ModelData<IPriorityClass>);
}
export { IPriorityClass as IIoK8sApiSchedulingV1beta1PriorityClass, PriorityClass as IoK8sApiSchedulingV1beta1PriorityClass };