generated.proto 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.v1beta1;
  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 = "v1beta1";
  21. // RuntimeClass defines a class of container runtime supported in the cluster.
  22. // The RuntimeClass is used to determine which container runtime is used to run
  23. // all containers in a pod. RuntimeClasses are (currently) manually defined by a
  24. // user or cluster provisioner, and referenced in the PodSpec. The Kubelet is
  25. // responsible for resolving the RuntimeClassName reference before running the
  26. // pod. For more details, see
  27. // https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md
  28. message RuntimeClass {
  29. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
  30. // +optional
  31. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  32. // Handler specifies the underlying runtime and configuration that the CRI
  33. // implementation will use to handle pods of this class. The possible values
  34. // are specific to the node & CRI configuration. It is assumed that all
  35. // handlers are available on every node, and handlers of the same name are
  36. // equivalent on every node.
  37. // For example, a handler called "runc" might specify that the runc OCI
  38. // runtime (using native Linux containers) will be used to run the containers
  39. // in a pod.
  40. // The Handler must conform to the DNS Label (RFC 1123) requirements, and is
  41. // immutable.
  42. optional string handler = 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/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. }