generated.proto 2.5 KB

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