generated.proto 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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.v1alpha1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  20. // Package-wide variables from generator "generated".
  21. option go_package = "v1alpha1";
  22. // DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass.
  23. // PriorityClass defines mapping from a priority class name to the priority
  24. // integer value. The value can be any valid integer.
  25. message PriorityClass {
  26. // Standard object's metadata.
  27. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  28. // +optional
  29. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  30. // The value of this priority class. This is the actual priority that pods
  31. // receive when they have the name of this class in their pod spec.
  32. optional int32 value = 2;
  33. // globalDefault specifies whether this PriorityClass should be considered as
  34. // the default priority for pods that do not have any priority class.
  35. // Only one PriorityClass can be marked as `globalDefault`. However, if more than
  36. // one PriorityClasses exists with their `globalDefault` field set to true,
  37. // the smallest value of such global default PriorityClasses will be used as the default priority.
  38. // +optional
  39. optional bool globalDefault = 3;
  40. // description is an arbitrary string that usually provides guidelines on
  41. // when this priority class should be used.
  42. // +optional
  43. optional string description = 4;
  44. // PreemptionPolicy is the Policy for preempting pods with lower priority.
  45. // One of Never, PreemptLowerPriority.
  46. // Defaults to PreemptLowerPriority if unset.
  47. // This field is beta-level, gated by the NonPreemptingPriority feature-gate.
  48. // +optional
  49. optional string preemptionPolicy = 5;
  50. }
  51. // PriorityClassList is a collection of priority classes.
  52. message PriorityClassList {
  53. // Standard list metadata
  54. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  55. // +optional
  56. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  57. // items is the list of PriorityClasses
  58. repeated PriorityClass items = 2;
  59. }