generated.proto 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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.discovery.v1beta1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  20. // Package-wide variables from generator "generated".
  21. option go_package = "v1beta1";
  22. // Endpoint represents a single logical "backend" implementing a service.
  23. message Endpoint {
  24. // addresses of this endpoint. The contents of this field are interpreted
  25. // according to the corresponding EndpointSlice addressType field. Consumers
  26. // must handle different types of addresses in the context of their own
  27. // capabilities. This must contain at least one address but no more than
  28. // 100.
  29. // +listType=set
  30. repeated string addresses = 1;
  31. // conditions contains information about the current status of the endpoint.
  32. optional EndpointConditions conditions = 2;
  33. // hostname of this endpoint. This field may be used by consumers of
  34. // endpoints to distinguish endpoints from each other (e.g. in DNS names).
  35. // Multiple endpoints which use the same hostname should be considered
  36. // fungible (e.g. multiple A values in DNS). Must pass DNS Label (RFC 1123)
  37. // validation.
  38. // +optional
  39. optional string hostname = 3;
  40. // targetRef is a reference to a Kubernetes object that represents this
  41. // endpoint.
  42. // +optional
  43. optional k8s.io.api.core.v1.ObjectReference targetRef = 4;
  44. // topology contains arbitrary topology information associated with the
  45. // endpoint. These key/value pairs must conform with the label format.
  46. // https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
  47. // Topology may include a maximum of 16 key/value pairs. This includes, but
  48. // is not limited to the following well known keys:
  49. // * kubernetes.io/hostname: the value indicates the hostname of the node
  50. // where the endpoint is located. This should match the corresponding
  51. // node label.
  52. // * topology.kubernetes.io/zone: the value indicates the zone where the
  53. // endpoint is located. This should match the corresponding node label.
  54. // * topology.kubernetes.io/region: the value indicates the region where the
  55. // endpoint is located. This should match the corresponding node label.
  56. // +optional
  57. map<string, string> topology = 5;
  58. }
  59. // EndpointConditions represents the current condition of an endpoint.
  60. message EndpointConditions {
  61. // ready indicates that this endpoint is prepared to receive traffic,
  62. // according to whatever system is managing the endpoint. A nil value
  63. // indicates an unknown state. In most cases consumers should interpret this
  64. // unknown state as ready.
  65. // +optional
  66. optional bool ready = 1;
  67. }
  68. // EndpointPort represents a Port used by an EndpointSlice
  69. message EndpointPort {
  70. // The name of this port. All ports in an EndpointSlice must have a unique
  71. // name. If the EndpointSlice is dervied from a Kubernetes service, this
  72. // corresponds to the Service.ports[].name.
  73. // Name must either be an empty string or pass DNS_LABEL validation:
  74. // * must be no more than 63 characters long.
  75. // * must consist of lower case alphanumeric characters or '-'.
  76. // * must start and end with an alphanumeric character.
  77. // Default is empty string.
  78. optional string name = 1;
  79. // The IP protocol for this port.
  80. // Must be UDP, TCP, or SCTP.
  81. // Default is TCP.
  82. optional string protocol = 2;
  83. // The port number of the endpoint.
  84. // If this is not specified, ports are not restricted and must be
  85. // interpreted in the context of the specific consumer.
  86. optional int32 port = 3;
  87. // The application protocol for this port.
  88. // This field follows standard Kubernetes label syntax.
  89. // Un-prefixed names are reserved for IANA standard service names (as per
  90. // RFC-6335 and http://www.iana.org/assignments/service-names).
  91. // Non-standard protocols should use prefixed names such as
  92. // mycompany.com/my-custom-protocol.
  93. // +optional
  94. optional string appProtocol = 4;
  95. }
  96. // EndpointSlice represents a subset of the endpoints that implement a service.
  97. // For a given service there may be multiple EndpointSlice objects, selected by
  98. // labels, which must be joined to produce the full set of endpoints.
  99. message EndpointSlice {
  100. // Standard object's metadata.
  101. // +optional
  102. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  103. // addressType specifies the type of address carried by this EndpointSlice.
  104. // All addresses in this slice must be the same type. This field is
  105. // immutable after creation. The following address types are currently
  106. // supported:
  107. // * IPv4: Represents an IPv4 Address.
  108. // * IPv6: Represents an IPv6 Address.
  109. // * FQDN: Represents a Fully Qualified Domain Name.
  110. optional string addressType = 4;
  111. // endpoints is a list of unique endpoints in this slice. Each slice may
  112. // include a maximum of 1000 endpoints.
  113. // +listType=atomic
  114. repeated Endpoint endpoints = 2;
  115. // ports specifies the list of network ports exposed by each endpoint in
  116. // this slice. Each port must have a unique name. When ports is empty, it
  117. // indicates that there are no defined ports. When a port is defined with a
  118. // nil port value, it indicates "all ports". Each slice may include a
  119. // maximum of 100 ports.
  120. // +optional
  121. // +listType=atomic
  122. repeated EndpointPort ports = 3;
  123. }
  124. // EndpointSliceList represents a list of endpoint slices
  125. message EndpointSliceList {
  126. // Standard list metadata.
  127. // +optional
  128. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  129. // List of endpoint slices
  130. repeated EndpointSlice items = 2;
  131. }