generated.proto 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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.node.v1alpha1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/api/resource/generated.proto";
  18. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  20. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  21. // Package-wide variables from generator "generated".
  22. option go_package = "v1alpha1";
  23. // Overhead structure represents the resource overhead associated with running a pod.
  24. message Overhead {
  25. // PodFixed represents the fixed resource overhead associated with running a pod.
  26. // +optional
  27. map<string, k8s.io.apimachinery.pkg.api.resource.Quantity> podFixed = 1;
  28. }
  29. // RuntimeClass defines a class of container runtime supported in the cluster.
  30. // The RuntimeClass is used to determine which container runtime is used to run
  31. // all containers in a pod. RuntimeClasses are (currently) manually defined by a
  32. // user or cluster provisioner, and referenced in the PodSpec. The Kubelet is
  33. // responsible for resolving the RuntimeClassName reference before running the
  34. // pod. For more details, see
  35. // https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
  36. message RuntimeClass {
  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. // Specification of the RuntimeClass
  41. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  42. optional RuntimeClassSpec spec = 2;
  43. }
  44. // RuntimeClassList is a list of RuntimeClass objects.
  45. message RuntimeClassList {
  46. // Standard list metadata.
  47. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  48. // +optional
  49. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  50. // Items is a list of schema objects.
  51. repeated RuntimeClass items = 2;
  52. }
  53. // RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters
  54. // that are required to describe the RuntimeClass to the Container Runtime
  55. // Interface (CRI) implementation, as well as any other components that need to
  56. // understand how the pod will be run. The RuntimeClassSpec is immutable.
  57. message RuntimeClassSpec {
  58. // RuntimeHandler specifies the underlying runtime and configuration that the
  59. // CRI implementation will use to handle pods of this class. The possible
  60. // values are specific to the node & CRI configuration. It is assumed that
  61. // all handlers are available on every node, and handlers of the same name are
  62. // equivalent on every node.
  63. // For example, a handler called "runc" might specify that the runc OCI
  64. // runtime (using native Linux containers) will be used to run the containers
  65. // in a pod.
  66. // The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements
  67. // and is immutable.
  68. optional string runtimeHandler = 1;
  69. // Overhead represents the resource overhead associated with running a pod for a
  70. // given RuntimeClass. For more details, see
  71. // https://git.k8s.io/enhancements/keps/sig-node/20190226-pod-overhead.md
  72. // This field is alpha-level as of Kubernetes v1.15, and is only honored by servers that enable the PodOverhead feature.
  73. // +optional
  74. optional Overhead overhead = 2;
  75. // Scheduling holds the scheduling constraints to ensure that pods running
  76. // with this RuntimeClass are scheduled to nodes that support it.
  77. // If scheduling is nil, this RuntimeClass is assumed to be supported by all
  78. // nodes.
  79. // +optional
  80. optional Scheduling scheduling = 3;
  81. }
  82. // Scheduling specifies the scheduling constraints for nodes supporting a
  83. // RuntimeClass.
  84. message Scheduling {
  85. // nodeSelector lists labels that must be present on nodes that support this
  86. // RuntimeClass. Pods using this RuntimeClass can only be scheduled to a
  87. // node matched by this selector. The RuntimeClass nodeSelector is merged
  88. // with a pod's existing nodeSelector. Any conflicts will cause the pod to
  89. // be rejected in admission.
  90. // +optional
  91. map<string, string> nodeSelector = 1;
  92. // tolerations are appended (excluding duplicates) to pods running with this
  93. // RuntimeClass during admission, effectively unioning the set of nodes
  94. // tolerated by the pod and the RuntimeClass.
  95. // +optional
  96. // +listType=atomic
  97. repeated k8s.io.api.core.v1.Toleration tolerations = 2;
  98. }