cue.dev/x/k8s.io@v0.7.0

api/scheduling/v1/schema.cue raw

 1package v1
 2
 3import "cue.dev/x/k8s.io/apimachinery/pkg/apis/meta/v1"
 4
 5// PriorityClass defines mapping from a priority class name to the
 6// priority integer value. The value can be any valid integer.
 7#PriorityClass: {
 8	// APIVersion defines the versioned schema of this representation
 9	// of an object. Servers should convert recognized schemas to the
10	// latest internal value, and may reject unrecognized values.
11	// More info:
12	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
13	"apiVersion": "scheduling.k8s.io/v1"
14
15	// description is an arbitrary string that usually provides
16	// guidelines on when this priority class should be used.
17	"description"?: string
18
19	// globalDefault specifies whether this PriorityClass should be
20	// considered as the default priority for pods that do not have
21	// any priority class. Only one PriorityClass can be marked as
22	// `globalDefault`. However, if more than one PriorityClasses
23	// exists with their `globalDefault` field set to true, the
24	// smallest value of such global default PriorityClasses will be
25	// used as the default priority.
26	"globalDefault"?: bool
27
28	// Kind is a string value representing the REST resource this
29	// object represents. Servers may infer this from the endpoint
30	// the client submits requests to. Cannot be updated. In
31	// CamelCase. More info:
32	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
33	"kind": "PriorityClass"
34
35	// Standard object's metadata. More info:
36	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
37	"metadata"?: v1.#ObjectMeta
38
39	// preemptionPolicy is the Policy for preempting pods with lower
40	// priority. One of Never, PreemptLowerPriority. Defaults to
41	// PreemptLowerPriority if unset.
42	"preemptionPolicy"?: string
43
44	// value represents the integer value of this priority class. This
45	// is the actual priority that pods receive when they have the
46	// name of this class in their pod spec.
47	"value"!: int32 & int
48}
49
50// PriorityClassList is a collection of priority classes.
51#PriorityClassList: {
52	// APIVersion defines the versioned schema of this representation
53	// of an object. Servers should convert recognized schemas to the
54	// latest internal value, and may reject unrecognized values.
55	// More info:
56	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
57	"apiVersion": "scheduling.k8s.io/v1"
58
59	// items is the list of PriorityClasses
60	"items"!: [...#PriorityClass]
61
62	// Kind is a string value representing the REST resource this
63	// object represents. Servers may infer this from the endpoint
64	// the client submits requests to. Cannot be updated. In
65	// CamelCase. More info:
66	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
67	"kind": "PriorityClassList"
68
69	// Standard list metadata More info:
70	// https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
71	"metadata"?: v1.#ListMeta
72}