blob: 9082fbd3344bd7c823d974b38342673ad29cae76 [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17
18// This file was autogenerated by go-to-protobuf. Do not edit it manually!
19
20syntax = 'proto2';
21
22package k8s.io.api.node.v1beta1;
23
Zack Williamse940c7a2019-08-21 14:25:39 -070024import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
25import "k8s.io/apimachinery/pkg/runtime/generated.proto";
26import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
27
28// Package-wide variables from generator "generated".
29option go_package = "v1beta1";
30
Zack Williamse940c7a2019-08-21 14:25:39 -070031// RuntimeClass defines a class of container runtime supported in the cluster.
32// The RuntimeClass is used to determine which container runtime is used to run
33// all containers in a pod. RuntimeClasses are (currently) manually defined by a
34// user or cluster provisioner, and referenced in the PodSpec. The Kubelet is
35// responsible for resolving the RuntimeClassName reference before running the
36// pod. For more details, see
37// https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
38message RuntimeClass {
39 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
40 // +optional
41 optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
42
43 // Handler specifies the underlying runtime and configuration that the CRI
44 // implementation will use to handle pods of this class. The possible values
45 // are specific to the node & CRI configuration. It is assumed that all
46 // handlers are available on every node, and handlers of the same name are
47 // equivalent on every node.
48 // For example, a handler called "runc" might specify that the runc OCI
49 // runtime (using native Linux containers) will be used to run the containers
50 // in a pod.
51 // The Handler must conform to the DNS Label (RFC 1123) requirements, and is
52 // immutable.
53 optional string handler = 2;
Zack Williamse940c7a2019-08-21 14:25:39 -070054}
55
56// RuntimeClassList is a list of RuntimeClass objects.
57message RuntimeClassList {
58 // Standard list metadata.
59 // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
60 // +optional
61 optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
62
63 // Items is a list of schema objects.
64 repeated RuntimeClass items = 2;
65}
66