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