generated.proto 3.1 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.node.v1alpha1;
  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 = "v1alpha1";
  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. // Specification of the RuntimeClass
  33. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
  34. optional RuntimeClassSpec spec = 2;
  35. }
  36. // RuntimeClassList is a list of RuntimeClass objects.
  37. message RuntimeClassList {
  38. // Standard list metadata.
  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.ListMeta metadata = 1;
  42. // Items is a list of schema objects.
  43. repeated RuntimeClass items = 2;
  44. }
  45. // RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters
  46. // that are required to describe the RuntimeClass to the Container Runtime
  47. // Interface (CRI) implementation, as well as any other components that need to
  48. // understand how the pod will be run. The RuntimeClassSpec is immutable.
  49. message RuntimeClassSpec {
  50. // RuntimeHandler specifies the underlying runtime and configuration that the
  51. // CRI implementation will use to handle pods of this class. The possible
  52. // values are specific to the node & CRI configuration. It is assumed that
  53. // all handlers are available on every node, and handlers of the same name are
  54. // equivalent on every node.
  55. // For example, a handler called "runc" might specify that the runc OCI
  56. // runtime (using native Linux containers) will be used to run the containers
  57. // in a pod.
  58. // The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements
  59. // and is immutable.
  60. optional string runtimeHandler = 1;
  61. }