1/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8    http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17
18// This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20syntax = "proto2";
21
22package k8s.io.api.scheduling.v1alpha1;
23
24import "k8s.io/api/core/v1/generated.proto";
25import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
26import "k8s.io/apimachinery/pkg/runtime/generated.proto";
27import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
28
29// Package-wide variables from generator "generated".
30option go_package = "v1alpha1";
31
32// DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass.
33// PriorityClass defines mapping from a priority class name to the priority
34// integer value. The value can be any valid integer.
35message PriorityClass {
36  // Standard object's metadata.
37  // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
38  // +optional
39  optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
40
41  // The value of this priority class. This is the actual priority that pods
42  // receive when they have the name of this class in their pod spec.
43  optional int32 value = 2;
44
45  // globalDefault specifies whether this PriorityClass should be considered as
46  // the default priority for pods that do not have any priority class.
47  // Only one PriorityClass can be marked as `globalDefault`. However, if more than
48  // one PriorityClasses exists with their `globalDefault` field set to true,
49  // the smallest value of such global default PriorityClasses will be used as the default priority.
50  // +optional
51  optional bool globalDefault = 3;
52
53  // description is an arbitrary string that usually provides guidelines on
54  // when this priority class should be used.
55  // +optional
56  optional string description = 4;
57
58  // PreemptionPolicy is the Policy for preempting pods with lower priority.
59  // One of Never, PreemptLowerPriority.
60  // Defaults to PreemptLowerPriority if unset.
61  // This field is beta-level, gated by the NonPreemptingPriority feature-gate.
62  // +optional
63  optional string preemptionPolicy = 5;
64}
65
66// PriorityClassList is a collection of priority classes.
67message PriorityClassList {
68  // Standard list metadata
69  // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
70  // +optional
71  optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
72
73  // items is the list of PriorityClasses
74  repeated PriorityClass items = 2;
75}
76
77