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