generated.proto 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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.networking.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. import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
  21. // Package-wide variables from generator "generated".
  22. option go_package = "v1beta1";
  23. // HTTPIngressPath associates a path regex with a backend. Incoming urls matching
  24. // the path are forwarded to the backend.
  25. message HTTPIngressPath {
  26. // Path is an extended POSIX regex as defined by IEEE Std 1003.1,
  27. // (i.e this follows the egrep/unix syntax, not the perl syntax)
  28. // matched against the path of an incoming request. Currently it can
  29. // contain characters disallowed from the conventional "path"
  30. // part of a URL as defined by RFC 3986. Paths must begin with
  31. // a '/'. If unspecified, the path defaults to a catch all sending
  32. // traffic to the backend.
  33. // +optional
  34. optional string path = 1;
  35. // Backend defines the referenced service endpoint to which the traffic
  36. // will be forwarded to.
  37. optional IngressBackend backend = 2;
  38. }
  39. // HTTPIngressRuleValue is a list of http selectors pointing to backends.
  40. // In the example: http://<host>/<path>?<searchpart> -> backend where
  41. // where parts of the url correspond to RFC 3986, this resource will be used
  42. // to match against everything after the last '/' and before the first '?'
  43. // or '#'.
  44. message HTTPIngressRuleValue {
  45. // A collection of paths that map requests to backends.
  46. repeated HTTPIngressPath paths = 1;
  47. }
  48. // Ingress is a collection of rules that allow inbound connections to reach the
  49. // endpoints defined by a backend. An Ingress can be configured to give services
  50. // externally-reachable urls, load balance traffic, terminate SSL, offer name
  51. // based virtual hosting etc.
  52. message Ingress {
  53. // Standard object's metadata.
  54. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
  55. // +optional
  56. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  57. // Spec is the desired state of the Ingress.
  58. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
  59. // +optional
  60. optional IngressSpec spec = 2;
  61. // Status is the current state of the Ingress.
  62. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status
  63. // +optional
  64. optional IngressStatus status = 3;
  65. }
  66. // IngressBackend describes all endpoints for a given service and port.
  67. message IngressBackend {
  68. // Specifies the name of the referenced service.
  69. optional string serviceName = 1;
  70. // Specifies the port of the referenced service.
  71. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2;
  72. }
  73. // IngressList is a collection of Ingress.
  74. message IngressList {
  75. // Standard object's metadata.
  76. // More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata
  77. // +optional
  78. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  79. // Items is the list of Ingress.
  80. repeated Ingress items = 2;
  81. }
  82. // IngressRule represents the rules mapping the paths under a specified host to
  83. // the related backend services. Incoming requests are first evaluated for a host
  84. // match, then routed to the backend associated with the matching IngressRuleValue.
  85. message IngressRule {
  86. // Host is the fully qualified domain name of a network host, as defined
  87. // by RFC 3986. Note the following deviations from the "host" part of the
  88. // URI as defined in the RFC:
  89. // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the
  90. // IP in the Spec of the parent Ingress.
  91. // 2. The `:` delimiter is not respected because ports are not allowed.
  92. // Currently the port of an Ingress is implicitly :80 for http and
  93. // :443 for https.
  94. // Both these may change in the future.
  95. // Incoming requests are matched against the host before the IngressRuleValue.
  96. // If the host is unspecified, the Ingress routes all traffic based on the
  97. // specified IngressRuleValue.
  98. // +optional
  99. optional string host = 1;
  100. // IngressRuleValue represents a rule to route requests for this IngressRule.
  101. // If unspecified, the rule defaults to a http catch-all. Whether that sends
  102. // just traffic matching the host to the default backend or all traffic to the
  103. // default backend, is left to the controller fulfilling the Ingress. Http is
  104. // currently the only supported IngressRuleValue.
  105. // +optional
  106. optional IngressRuleValue ingressRuleValue = 2;
  107. }
  108. // IngressRuleValue represents a rule to apply against incoming requests. If the
  109. // rule is satisfied, the request is routed to the specified backend. Currently
  110. // mixing different types of rules in a single Ingress is disallowed, so exactly
  111. // one of the following must be set.
  112. message IngressRuleValue {
  113. // +optional
  114. optional HTTPIngressRuleValue http = 1;
  115. }
  116. // IngressSpec describes the Ingress the user wishes to exist.
  117. message IngressSpec {
  118. // A default backend capable of servicing requests that don't match any
  119. // rule. At least one of 'backend' or 'rules' must be specified. This field
  120. // is optional to allow the loadbalancer controller or defaulting logic to
  121. // specify a global default.
  122. // +optional
  123. optional IngressBackend backend = 1;
  124. // TLS configuration. Currently the Ingress only supports a single TLS
  125. // port, 443. If multiple members of this list specify different hosts, they
  126. // will be multiplexed on the same port according to the hostname specified
  127. // through the SNI TLS extension, if the ingress controller fulfilling the
  128. // ingress supports SNI.
  129. // +optional
  130. repeated IngressTLS tls = 2;
  131. // A list of host rules used to configure the Ingress. If unspecified, or
  132. // no rule matches, all traffic is sent to the default backend.
  133. // +optional
  134. repeated IngressRule rules = 3;
  135. }
  136. // IngressStatus describe the current state of the Ingress.
  137. message IngressStatus {
  138. // LoadBalancer contains the current status of the load-balancer.
  139. // +optional
  140. optional k8s.io.api.core.v1.LoadBalancerStatus loadBalancer = 1;
  141. }
  142. // IngressTLS describes the transport layer security associated with an Ingress.
  143. message IngressTLS {
  144. // Hosts are a list of hosts included in the TLS certificate. The values in
  145. // this list must match the name/s used in the tlsSecret. Defaults to the
  146. // wildcard host setting for the loadbalancer controller fulfilling this
  147. // Ingress, if left unspecified.
  148. // +optional
  149. repeated string hosts = 1;
  150. // SecretName is the name of the secret used to terminate SSL traffic on 443.
  151. // Field is left optional to allow SSL routing based on SNI hostname alone.
  152. // If the SNI host in a listener conflicts with the "Host" header field used
  153. // by an IngressRule, the SNI host is used for termination and value of the
  154. // Host header is used for routing.
  155. // +optional
  156. optional string secretName = 2;
  157. }