generated.proto 46 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067
  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.extensions.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 = "k8s.io/api/extensions/v1beta1";
  23. // DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for
  24. // more information.
  25. // DaemonSet represents the configuration of a daemon set.
  26. message DaemonSet {
  27. // Standard object's metadata.
  28. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  29. // +optional
  30. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  31. // The desired behavior of this daemon set.
  32. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  33. // +optional
  34. optional DaemonSetSpec spec = 2;
  35. // The current status of this daemon set. This data may be
  36. // out of date by some window of time.
  37. // Populated by the system.
  38. // Read-only.
  39. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  40. // +optional
  41. optional DaemonSetStatus status = 3;
  42. }
  43. // DaemonSetCondition describes the state of a DaemonSet at a certain point.
  44. message DaemonSetCondition {
  45. // Type of DaemonSet condition.
  46. optional string type = 1;
  47. // Status of the condition, one of True, False, Unknown.
  48. optional string status = 2;
  49. // Last time the condition transitioned from one status to another.
  50. // +optional
  51. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
  52. // The reason for the condition's last transition.
  53. // +optional
  54. optional string reason = 4;
  55. // A human readable message indicating details about the transition.
  56. // +optional
  57. optional string message = 5;
  58. }
  59. // DaemonSetList is a collection of daemon sets.
  60. message DaemonSetList {
  61. // Standard list metadata.
  62. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  63. // +optional
  64. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  65. // A list of daemon sets.
  66. repeated DaemonSet items = 2;
  67. }
  68. // DaemonSetSpec is the specification of a daemon set.
  69. message DaemonSetSpec {
  70. // A label query over pods that are managed by the daemon set.
  71. // Must match in order to be controlled.
  72. // If empty, defaulted to labels on Pod template.
  73. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  74. // +optional
  75. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 1;
  76. // An object that describes the pod that will be created.
  77. // The DaemonSet will create exactly one copy of this pod on every node
  78. // that matches the template's node selector (or on every node if no node
  79. // selector is specified).
  80. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template
  81. optional .k8s.io.api.core.v1.PodTemplateSpec template = 2;
  82. // An update strategy to replace existing DaemonSet pods with new pods.
  83. // +optional
  84. optional DaemonSetUpdateStrategy updateStrategy = 3;
  85. // The minimum number of seconds for which a newly created DaemonSet pod should
  86. // be ready without any of its container crashing, for it to be considered
  87. // available. Defaults to 0 (pod will be considered available as soon as it
  88. // is ready).
  89. // +optional
  90. optional int32 minReadySeconds = 4;
  91. // DEPRECATED.
  92. // A sequence number representing a specific generation of the template.
  93. // Populated by the system. It can be set only during the creation.
  94. // +optional
  95. optional int64 templateGeneration = 5;
  96. // The number of old history to retain to allow rollback.
  97. // This is a pointer to distinguish between explicit zero and not specified.
  98. // Defaults to 10.
  99. // +optional
  100. optional int32 revisionHistoryLimit = 6;
  101. }
  102. // DaemonSetStatus represents the current status of a daemon set.
  103. message DaemonSetStatus {
  104. // The number of nodes that are running at least 1
  105. // daemon pod and are supposed to run the daemon pod.
  106. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
  107. optional int32 currentNumberScheduled = 1;
  108. // The number of nodes that are running the daemon pod, but are
  109. // not supposed to run the daemon pod.
  110. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
  111. optional int32 numberMisscheduled = 2;
  112. // The total number of nodes that should be running the daemon
  113. // pod (including nodes correctly running the daemon pod).
  114. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
  115. optional int32 desiredNumberScheduled = 3;
  116. // The number of nodes that should be running the daemon pod and have one
  117. // or more of the daemon pod running and ready.
  118. optional int32 numberReady = 4;
  119. // The most recent generation observed by the daemon set controller.
  120. // +optional
  121. optional int64 observedGeneration = 5;
  122. // The total number of nodes that are running updated daemon pod
  123. // +optional
  124. optional int32 updatedNumberScheduled = 6;
  125. // The number of nodes that should be running the
  126. // daemon pod and have one or more of the daemon pod running and
  127. // available (ready for at least spec.minReadySeconds)
  128. // +optional
  129. optional int32 numberAvailable = 7;
  130. // The number of nodes that should be running the
  131. // daemon pod and have none of the daemon pod running and available
  132. // (ready for at least spec.minReadySeconds)
  133. // +optional
  134. optional int32 numberUnavailable = 8;
  135. // Count of hash collisions for the DaemonSet. The DaemonSet controller
  136. // uses this field as a collision avoidance mechanism when it needs to
  137. // create the name for the newest ControllerRevision.
  138. // +optional
  139. optional int32 collisionCount = 9;
  140. // Represents the latest available observations of a DaemonSet's current state.
  141. // +optional
  142. // +patchMergeKey=type
  143. // +patchStrategy=merge
  144. // +listType=map
  145. // +listMapKey=type
  146. repeated DaemonSetCondition conditions = 10;
  147. }
  148. // DaemonSetUpdateStrategy indicates the strategy that the DaemonSet
  149. // controller will use to perform updates. It includes any additional parameters
  150. // necessary to perform the update for the indicated strategy.
  151. message DaemonSetUpdateStrategy {
  152. // Type of daemon set update. Can be "RollingUpdate" or "OnDelete".
  153. // Default is OnDelete.
  154. // +optional
  155. optional string type = 1;
  156. // Rolling update config params. Present only if type = "RollingUpdate".
  157. // ---
  158. // TODO: Update this to follow our convention for oneOf, whatever we decide it
  159. // to be. Same as Deployment `strategy.rollingUpdate`.
  160. // See https://github.com/kubernetes/kubernetes/issues/35345
  161. // +optional
  162. optional RollingUpdateDaemonSet rollingUpdate = 2;
  163. }
  164. // DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for
  165. // more information.
  166. // Deployment enables declarative updates for Pods and ReplicaSets.
  167. message Deployment {
  168. // Standard object metadata.
  169. // +optional
  170. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  171. // Specification of the desired behavior of the Deployment.
  172. // +optional
  173. optional DeploymentSpec spec = 2;
  174. // Most recently observed status of the Deployment.
  175. // +optional
  176. optional DeploymentStatus status = 3;
  177. }
  178. // DeploymentCondition describes the state of a deployment at a certain point.
  179. message DeploymentCondition {
  180. // Type of deployment condition.
  181. optional string type = 1;
  182. // Status of the condition, one of True, False, Unknown.
  183. optional string status = 2;
  184. // The last time this condition was updated.
  185. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6;
  186. // Last time the condition transitioned from one status to another.
  187. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7;
  188. // The reason for the condition's last transition.
  189. optional string reason = 4;
  190. // A human readable message indicating details about the transition.
  191. optional string message = 5;
  192. }
  193. // DeploymentList is a list of Deployments.
  194. message DeploymentList {
  195. // Standard list metadata.
  196. // +optional
  197. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  198. // Items is the list of Deployments.
  199. repeated Deployment items = 2;
  200. }
  201. // DEPRECATED.
  202. // DeploymentRollback stores the information required to rollback a deployment.
  203. message DeploymentRollback {
  204. // Required: This must match the Name of a deployment.
  205. optional string name = 1;
  206. // The annotations to be updated to a deployment
  207. // +optional
  208. map<string, string> updatedAnnotations = 2;
  209. // The config of this deployment rollback.
  210. optional RollbackConfig rollbackTo = 3;
  211. }
  212. // DeploymentSpec is the specification of the desired behavior of the Deployment.
  213. message DeploymentSpec {
  214. // Number of desired pods. This is a pointer to distinguish between explicit
  215. // zero and not specified. Defaults to 1.
  216. // +optional
  217. optional int32 replicas = 1;
  218. // Label selector for pods. Existing ReplicaSets whose pods are
  219. // selected by this will be the ones affected by this deployment.
  220. // +optional
  221. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
  222. // Template describes the pods that will be created.
  223. optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
  224. // The deployment strategy to use to replace existing pods with new ones.
  225. // +optional
  226. // +patchStrategy=retainKeys
  227. optional DeploymentStrategy strategy = 4;
  228. // Minimum number of seconds for which a newly created pod should be ready
  229. // without any of its container crashing, for it to be considered available.
  230. // Defaults to 0 (pod will be considered available as soon as it is ready)
  231. // +optional
  232. optional int32 minReadySeconds = 5;
  233. // The number of old ReplicaSets to retain to allow rollback.
  234. // This is a pointer to distinguish between explicit zero and not specified.
  235. // This is set to the max value of int32 (i.e. 2147483647) by default, which
  236. // means "retaining all old ReplicaSets".
  237. // +optional
  238. optional int32 revisionHistoryLimit = 6;
  239. // Indicates that the deployment is paused and will not be processed by the
  240. // deployment controller.
  241. // +optional
  242. optional bool paused = 7;
  243. // DEPRECATED.
  244. // The config this deployment is rolling back to. Will be cleared after rollback is done.
  245. // +optional
  246. optional RollbackConfig rollbackTo = 8;
  247. // The maximum time in seconds for a deployment to make progress before it
  248. // is considered to be failed. The deployment controller will continue to
  249. // process failed deployments and a condition with a ProgressDeadlineExceeded
  250. // reason will be surfaced in the deployment status. Note that progress will
  251. // not be estimated during the time a deployment is paused. This is set to
  252. // the max value of int32 (i.e. 2147483647) by default, which means "no deadline".
  253. // +optional
  254. optional int32 progressDeadlineSeconds = 9;
  255. }
  256. // DeploymentStatus is the most recently observed status of the Deployment.
  257. message DeploymentStatus {
  258. // The generation observed by the deployment controller.
  259. // +optional
  260. optional int64 observedGeneration = 1;
  261. // Total number of non-terminating pods targeted by this deployment (their labels match the selector).
  262. // +optional
  263. optional int32 replicas = 2;
  264. // Total number of non-terminating pods targeted by this deployment that have the desired template spec.
  265. // +optional
  266. optional int32 updatedReplicas = 3;
  267. // Total number of non-terminating pods targeted by this Deployment with a Ready Condition.
  268. // +optional
  269. optional int32 readyReplicas = 7;
  270. // Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.
  271. // +optional
  272. optional int32 availableReplicas = 4;
  273. // Total number of unavailable pods targeted by this deployment. This is the total number of
  274. // pods that are still required for the deployment to have 100% available capacity. They may
  275. // either be pods that are running but not yet available or pods that still have not been created.
  276. // +optional
  277. optional int32 unavailableReplicas = 5;
  278. // Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
  279. // .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
  280. //
  281. // This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).
  282. // +optional
  283. optional int32 terminatingReplicas = 9;
  284. // Represents the latest available observations of a deployment's current state.
  285. // +patchMergeKey=type
  286. // +patchStrategy=merge
  287. // +listType=map
  288. // +listMapKey=type
  289. repeated DeploymentCondition conditions = 6;
  290. // Count of hash collisions for the Deployment. The Deployment controller uses this
  291. // field as a collision avoidance mechanism when it needs to create the name for the
  292. // newest ReplicaSet.
  293. // +optional
  294. optional int32 collisionCount = 8;
  295. }
  296. // DeploymentStrategy describes how to replace existing pods with new ones.
  297. message DeploymentStrategy {
  298. // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
  299. // +optional
  300. optional string type = 1;
  301. // Rolling update config params. Present only if DeploymentStrategyType =
  302. // RollingUpdate.
  303. // ---
  304. // TODO: Update this to follow our convention for oneOf, whatever we decide it
  305. // to be.
  306. // +optional
  307. optional RollingUpdateDeployment rollingUpdate = 2;
  308. }
  309. // HTTPIngressPath associates a path with a backend. Incoming urls matching the
  310. // path are forwarded to the backend.
  311. message HTTPIngressPath {
  312. // Path is matched against the path of an incoming request. Currently it can
  313. // contain characters disallowed from the conventional "path" part of a URL
  314. // as defined by RFC 3986. Paths must begin with a '/'. When unspecified,
  315. // all paths from incoming requests are matched.
  316. // +optional
  317. optional string path = 1;
  318. // PathType determines the interpretation of the Path matching. PathType can
  319. // be one of the following values:
  320. // * Exact: Matches the URL path exactly.
  321. // * Prefix: Matches based on a URL path prefix split by '/'. Matching is
  322. // done on a path element by element basis. A path element refers is the
  323. // list of labels in the path split by the '/' separator. A request is a
  324. // match for path p if every p is an element-wise prefix of p of the
  325. // request path. Note that if the last element of the path is a substring
  326. // of the last element in request path, it is not a match (e.g. /foo/bar
  327. // matches /foo/bar/baz, but does not match /foo/barbaz).
  328. // * ImplementationSpecific: Interpretation of the Path matching is up to
  329. // the IngressClass. Implementations can treat this as a separate PathType
  330. // or treat it identically to Prefix or Exact path types.
  331. // Implementations are required to support all path types.
  332. // Defaults to ImplementationSpecific.
  333. optional string pathType = 3;
  334. // Backend defines the referenced service endpoint to which the traffic
  335. // will be forwarded to.
  336. optional IngressBackend backend = 2;
  337. }
  338. // HTTPIngressRuleValue is a list of http selectors pointing to backends.
  339. // In the example: http://<host>/<path>?<searchpart> -> backend where
  340. // where parts of the url correspond to RFC 3986, this resource will be used
  341. // to match against everything after the last '/' and before the first '?'
  342. // or '#'.
  343. message HTTPIngressRuleValue {
  344. // A collection of paths that map requests to backends.
  345. // +listType=atomic
  346. repeated HTTPIngressPath paths = 1;
  347. }
  348. // DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock.
  349. // IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed
  350. // to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs
  351. // that should not be included within this rule.
  352. message IPBlock {
  353. // CIDR is a string representing the IP Block
  354. // Valid examples are "192.168.1.0/24" or "2001:db8::/64"
  355. optional string cidr = 1;
  356. // Except is a slice of CIDRs that should not be included within an IP Block
  357. // Valid examples are "192.168.1.0/24" or "2001:db8::/64"
  358. // Except values will be rejected if they are outside the CIDR range
  359. // +optional
  360. // +listType=atomic
  361. repeated string except = 2;
  362. }
  363. // Ingress is a collection of rules that allow inbound connections to reach the
  364. // endpoints defined by a backend. An Ingress can be configured to give services
  365. // externally-reachable urls, load balance traffic, terminate SSL, offer name
  366. // based virtual hosting etc.
  367. // DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information.
  368. message Ingress {
  369. // Standard object's metadata.
  370. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  371. // +optional
  372. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  373. // Spec is the desired state of the Ingress.
  374. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  375. // +optional
  376. optional IngressSpec spec = 2;
  377. // Status is the current state of the Ingress.
  378. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  379. // +optional
  380. optional IngressStatus status = 3;
  381. }
  382. // IngressBackend describes all endpoints for a given service and port.
  383. message IngressBackend {
  384. // Specifies the name of the referenced service.
  385. // +optional
  386. optional string serviceName = 1;
  387. // Specifies the port of the referenced service.
  388. // +optional
  389. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString servicePort = 2;
  390. // Resource is an ObjectRef to another Kubernetes resource in the namespace
  391. // of the Ingress object. If resource is specified, serviceName and servicePort
  392. // must not be specified.
  393. // +optional
  394. optional .k8s.io.api.core.v1.TypedLocalObjectReference resource = 3;
  395. }
  396. // IngressList is a collection of Ingress.
  397. message IngressList {
  398. // Standard object's metadata.
  399. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  400. // +optional
  401. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  402. // Items is the list of Ingress.
  403. repeated Ingress items = 2;
  404. }
  405. // IngressLoadBalancerIngress represents the status of a load-balancer ingress point.
  406. message IngressLoadBalancerIngress {
  407. // IP is set for load-balancer ingress points that are IP based.
  408. // +optional
  409. optional string ip = 1;
  410. // Hostname is set for load-balancer ingress points that are DNS based.
  411. // +optional
  412. optional string hostname = 2;
  413. // Ports provides information about the ports exposed by this LoadBalancer.
  414. // +listType=atomic
  415. // +optional
  416. repeated IngressPortStatus ports = 4;
  417. }
  418. // LoadBalancerStatus represents the status of a load-balancer.
  419. message IngressLoadBalancerStatus {
  420. // Ingress is a list containing ingress points for the load-balancer.
  421. // +optional
  422. // +listType=atomic
  423. repeated IngressLoadBalancerIngress ingress = 1;
  424. }
  425. // IngressPortStatus represents the error condition of a service port
  426. message IngressPortStatus {
  427. // Port is the port number of the ingress port.
  428. optional int32 port = 1;
  429. // Protocol is the protocol of the ingress port.
  430. // The supported values are: "TCP", "UDP", "SCTP"
  431. optional string protocol = 2;
  432. // Error is to record the problem with the service port
  433. // The format of the error shall comply with the following rules:
  434. // - built-in error values shall be specified in this file and those shall use
  435. // CamelCase names
  436. // - cloud provider specific error values must have names that comply with the
  437. // format foo.example.com/CamelCase.
  438. // ---
  439. // The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
  440. // +optional
  441. // +kubebuilder:validation:Required
  442. // +kubebuilder:validation:Pattern=`^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$`
  443. // +kubebuilder:validation:MaxLength=316
  444. optional string error = 3;
  445. }
  446. // IngressRule represents the rules mapping the paths under a specified host to
  447. // the related backend services. Incoming requests are first evaluated for a host
  448. // match, then routed to the backend associated with the matching IngressRuleValue.
  449. message IngressRule {
  450. // Host is the fully qualified domain name of a network host, as defined by RFC 3986.
  451. // Note the following deviations from the "host" part of the
  452. // URI as defined in RFC 3986:
  453. // 1. IPs are not allowed. Currently an IngressRuleValue can only apply to
  454. // the IP in the Spec of the parent Ingress.
  455. // 2. The `:` delimiter is not respected because ports are not allowed.
  456. // Currently the port of an Ingress is implicitly :80 for http and
  457. // :443 for https.
  458. // Both these may change in the future.
  459. // Incoming requests are matched against the host before the
  460. // IngressRuleValue. If the host is unspecified, the Ingress routes all
  461. // traffic based on the specified IngressRuleValue.
  462. //
  463. // Host can be "precise" which is a domain name without the terminating dot of
  464. // a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name
  465. // prefixed with a single wildcard label (e.g. "*.foo.com").
  466. // The wildcard character '*' must appear by itself as the first DNS label and
  467. // matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*").
  468. // Requests will be matched against the Host field in the following way:
  469. // 1. If Host is precise, the request matches this rule if the http host header is equal to Host.
  470. // 2. If Host is a wildcard, then the request matches this rule if the http host header
  471. // is to equal to the suffix (removing the first label) of the wildcard rule.
  472. // +optional
  473. optional string host = 1;
  474. // IngressRuleValue represents a rule to route requests for this IngressRule.
  475. // If unspecified, the rule defaults to a http catch-all. Whether that sends
  476. // just traffic matching the host to the default backend or all traffic to the
  477. // default backend, is left to the controller fulfilling the Ingress. Http is
  478. // currently the only supported IngressRuleValue.
  479. // +optional
  480. optional IngressRuleValue ingressRuleValue = 2;
  481. }
  482. // IngressRuleValue represents a rule to apply against incoming requests. If the
  483. // rule is satisfied, the request is routed to the specified backend. Currently
  484. // mixing different types of rules in a single Ingress is disallowed, so exactly
  485. // one of the following must be set.
  486. message IngressRuleValue {
  487. // http is a list of http selectors pointing to backends.
  488. // A path is matched against the path of an incoming request. Currently it can
  489. // contain characters disallowed from the conventional "path" part of a URL
  490. // as defined by RFC 3986. Paths must begin with a '/'.
  491. // A backend defines the referenced service endpoint to which the traffic
  492. // will be forwarded to.
  493. optional HTTPIngressRuleValue http = 1;
  494. }
  495. // IngressSpec describes the Ingress the user wishes to exist.
  496. message IngressSpec {
  497. // IngressClassName is the name of the IngressClass cluster resource. The
  498. // associated IngressClass defines which controller will implement the
  499. // resource. This replaces the deprecated `kubernetes.io/ingress.class`
  500. // annotation. For backwards compatibility, when that annotation is set, it
  501. // must be given precedence over this field. The controller may emit a
  502. // warning if the field and annotation have different values.
  503. // Implementations of this API should ignore Ingresses without a class
  504. // specified. An IngressClass resource may be marked as default, which can
  505. // be used to set a default value for this field. For more information,
  506. // refer to the IngressClass documentation.
  507. // +optional
  508. optional string ingressClassName = 4;
  509. // A default backend capable of servicing requests that don't match any
  510. // rule. At least one of 'backend' or 'rules' must be specified. This field
  511. // is optional to allow the loadbalancer controller or defaulting logic to
  512. // specify a global default.
  513. // +optional
  514. optional IngressBackend backend = 1;
  515. // TLS configuration. Currently the Ingress only supports a single TLS
  516. // port, 443. If multiple members of this list specify different hosts, they
  517. // will be multiplexed on the same port according to the hostname specified
  518. // through the SNI TLS extension, if the ingress controller fulfilling the
  519. // ingress supports SNI.
  520. // +optional
  521. // +listType=atomic
  522. repeated IngressTLS tls = 2;
  523. // A list of host rules used to configure the Ingress. If unspecified, or
  524. // no rule matches, all traffic is sent to the default backend.
  525. // +optional
  526. // +listType=atomic
  527. repeated IngressRule rules = 3;
  528. }
  529. // IngressStatus describe the current state of the Ingress.
  530. message IngressStatus {
  531. // LoadBalancer contains the current status of the load-balancer.
  532. // +optional
  533. optional IngressLoadBalancerStatus loadBalancer = 1;
  534. }
  535. // IngressTLS describes the transport layer security associated with an Ingress.
  536. message IngressTLS {
  537. // Hosts are a list of hosts included in the TLS certificate. The values in
  538. // this list must match the name/s used in the tlsSecret. Defaults to the
  539. // wildcard host setting for the loadbalancer controller fulfilling this
  540. // Ingress, if left unspecified.
  541. // +optional
  542. // +listType=atomic
  543. repeated string hosts = 1;
  544. // SecretName is the name of the secret used to terminate SSL traffic on 443.
  545. // Field is left optional to allow SSL routing based on SNI hostname alone.
  546. // If the SNI host in a listener conflicts with the "Host" header field used
  547. // by an IngressRule, the SNI host is used for termination and value of the
  548. // Host header is used for routing.
  549. // +optional
  550. optional string secretName = 2;
  551. }
  552. // DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy.
  553. // NetworkPolicy describes what network traffic is allowed for a set of Pods
  554. message NetworkPolicy {
  555. // Standard object's metadata.
  556. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  557. // +optional
  558. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  559. // Specification of the desired behavior for this NetworkPolicy.
  560. // +optional
  561. optional NetworkPolicySpec spec = 2;
  562. }
  563. // DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule.
  564. // NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods
  565. // matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to.
  566. // This type is beta-level in 1.8
  567. message NetworkPolicyEgressRule {
  568. // List of destination ports for outgoing traffic.
  569. // Each item in this list is combined using a logical OR. If this field is
  570. // empty or missing, this rule matches all ports (traffic not restricted by port).
  571. // If this field is present and contains at least one item, then this rule allows
  572. // traffic only if the traffic matches at least one port in the list.
  573. // +optional
  574. // +listType=atomic
  575. repeated NetworkPolicyPort ports = 1;
  576. // List of destinations for outgoing traffic of pods selected for this rule.
  577. // Items in this list are combined using a logical OR operation. If this field is
  578. // empty or missing, this rule matches all destinations (traffic not restricted by
  579. // destination). If this field is present and contains at least one item, this rule
  580. // allows traffic only if the traffic matches at least one item in the to list.
  581. // +optional
  582. // +listType=atomic
  583. repeated NetworkPolicyPeer to = 2;
  584. }
  585. // DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule.
  586. // This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.
  587. message NetworkPolicyIngressRule {
  588. // List of ports which should be made accessible on the pods selected for this rule.
  589. // Each item in this list is combined using a logical OR.
  590. // If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
  591. // If this field is present and contains at least one item, then this rule allows traffic
  592. // only if the traffic matches at least one port in the list.
  593. // +optional
  594. // +listType=atomic
  595. repeated NetworkPolicyPort ports = 1;
  596. // List of sources which should be able to access the pods selected for this rule.
  597. // Items in this list are combined using a logical OR operation.
  598. // If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
  599. // If this field is present and contains at least one item, this rule allows traffic only if the
  600. // traffic matches at least one item in the from list.
  601. // +optional
  602. // +listType=atomic
  603. repeated NetworkPolicyPeer from = 2;
  604. }
  605. // DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList.
  606. // Network Policy List is a list of NetworkPolicy objects.
  607. message NetworkPolicyList {
  608. // Standard list metadata.
  609. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  610. // +optional
  611. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  612. // Items is a list of schema objects.
  613. repeated NetworkPolicy items = 2;
  614. }
  615. // DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer.
  616. message NetworkPolicyPeer {
  617. // This is a label selector which selects Pods. This field follows standard label
  618. // selector semantics; if present but empty, it selects all pods.
  619. //
  620. // If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects
  621. // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
  622. // Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.
  623. // +optional
  624. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
  625. // Selects Namespaces using cluster-scoped labels. This field follows standard label
  626. // selector semantics; if present but empty, it selects all namespaces.
  627. //
  628. // If PodSelector is also set, then the NetworkPolicyPeer as a whole selects
  629. // the Pods matching PodSelector in the Namespaces selected by NamespaceSelector.
  630. // Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.
  631. // +optional
  632. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 2;
  633. // IPBlock defines policy on a particular IPBlock. If this field is set then
  634. // neither of the other fields can be.
  635. // +optional
  636. optional IPBlock ipBlock = 3;
  637. }
  638. // DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.
  639. message NetworkPolicyPort {
  640. // Optional. The protocol (TCP, UDP, or SCTP) which traffic must match.
  641. // If not specified, this field defaults to TCP.
  642. // +optional
  643. optional string protocol = 1;
  644. // The port on the given protocol. This can either be a numerical or named
  645. // port on a pod. If this field is not provided, this matches all port names and
  646. // numbers.
  647. // If present, only traffic on the specified protocol AND port will be matched.
  648. // +optional
  649. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString port = 2;
  650. // If set, indicates that the range of ports from port to endPort, inclusive,
  651. // should be allowed by the policy. This field cannot be defined if the port field
  652. // is not defined or if the port field is defined as a named (string) port.
  653. // The endPort must be equal or greater than port.
  654. // +optional
  655. optional int32 endPort = 3;
  656. }
  657. // DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.
  658. message NetworkPolicySpec {
  659. // Selects the pods to which this NetworkPolicy object applies. The array of ingress rules
  660. // is applied to any pods selected by this field. Multiple network policies can select the
  661. // same set of pods. In this case, the ingress rules for each are combined additively.
  662. // This field is NOT optional and follows standard label selector semantics.
  663. // An empty podSelector matches all pods in this namespace.
  664. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;
  665. // List of ingress rules to be applied to the selected pods.
  666. // Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod
  667. // OR if the traffic source is the pod's local node,
  668. // OR if the traffic matches at least one ingress rule across all of the NetworkPolicy
  669. // objects whose podSelector matches the pod.
  670. // If this field is empty then this NetworkPolicy does not allow any traffic
  671. // (and serves solely to ensure that the pods it selects are isolated by default).
  672. // +optional
  673. // +listType=atomic
  674. repeated NetworkPolicyIngressRule ingress = 2;
  675. // List of egress rules to be applied to the selected pods. Outgoing traffic is
  676. // allowed if there are no NetworkPolicies selecting the pod (and cluster policy
  677. // otherwise allows the traffic), OR if the traffic matches at least one egress rule
  678. // across all of the NetworkPolicy objects whose podSelector matches the pod. If
  679. // this field is empty then this NetworkPolicy limits all outgoing traffic (and serves
  680. // solely to ensure that the pods it selects are isolated by default).
  681. // This field is beta-level in 1.8
  682. // +optional
  683. // +listType=atomic
  684. repeated NetworkPolicyEgressRule egress = 3;
  685. // List of rule types that the NetworkPolicy relates to.
  686. // Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"].
  687. // If this field is not specified, it will default based on the existence of Ingress or Egress rules;
  688. // policies that contain an Egress section are assumed to affect Egress, and all policies
  689. // (whether or not they contain an Ingress section) are assumed to affect Ingress.
  690. // If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ].
  691. // Likewise, if you want to write a policy that specifies that no egress is allowed,
  692. // you must specify a policyTypes value that include "Egress" (since such a policy would not include
  693. // an Egress section and would otherwise default to just [ "Ingress" ]).
  694. // This field is beta-level in 1.8
  695. // +optional
  696. // +listType=atomic
  697. repeated string policyTypes = 4;
  698. }
  699. // DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for
  700. // more information.
  701. // ReplicaSet ensures that a specified number of pod replicas are running at any given time.
  702. message ReplicaSet {
  703. // If the Labels of a ReplicaSet are empty, they are defaulted to
  704. // be the same as the Pod(s) that the ReplicaSet manages.
  705. // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  706. // +optional
  707. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  708. // Spec defines the specification of the desired behavior of the ReplicaSet.
  709. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  710. // +optional
  711. optional ReplicaSetSpec spec = 2;
  712. // Status is the most recently observed status of the ReplicaSet.
  713. // This data may be out of date by some window of time.
  714. // Populated by the system.
  715. // Read-only.
  716. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
  717. // +optional
  718. optional ReplicaSetStatus status = 3;
  719. }
  720. // ReplicaSetCondition describes the state of a replica set at a certain point.
  721. message ReplicaSetCondition {
  722. // Type of replica set condition.
  723. optional string type = 1;
  724. // Status of the condition, one of True, False, Unknown.
  725. optional string status = 2;
  726. // The last time the condition transitioned from one status to another.
  727. // +optional
  728. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
  729. // The reason for the condition's last transition.
  730. // +optional
  731. optional string reason = 4;
  732. // A human readable message indicating details about the transition.
  733. // +optional
  734. optional string message = 5;
  735. }
  736. // ReplicaSetList is a collection of ReplicaSets.
  737. message ReplicaSetList {
  738. // Standard list metadata.
  739. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  740. // +optional
  741. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  742. // List of ReplicaSets.
  743. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
  744. repeated ReplicaSet items = 2;
  745. }
  746. // ReplicaSetSpec is the specification of a ReplicaSet.
  747. message ReplicaSetSpec {
  748. // Replicas is the number of desired pods.
  749. // This is a pointer to distinguish between explicit zero and unspecified.
  750. // Defaults to 1.
  751. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
  752. // +optional
  753. optional int32 replicas = 1;
  754. // Minimum number of seconds for which a newly created pod should be ready
  755. // without any of its container crashing, for it to be considered available.
  756. // Defaults to 0 (pod will be considered available as soon as it is ready)
  757. // +optional
  758. optional int32 minReadySeconds = 4;
  759. // Selector is a label query over pods that should match the replica count.
  760. // If the selector is empty, it is defaulted to the labels present on the pod template.
  761. // Label keys and values that must match in order to be controlled by this replica set.
  762. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  763. // +optional
  764. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
  765. // Template is the object that describes the pod that will be created if
  766. // insufficient replicas are detected.
  767. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/#pod-template
  768. // +optional
  769. optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
  770. }
  771. // ReplicaSetStatus represents the current status of a ReplicaSet.
  772. message ReplicaSetStatus {
  773. // Replicas is the most recently observed number of non-terminating pods.
  774. // More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset
  775. optional int32 replicas = 1;
  776. // The number of non-terminating pods that have labels matching the labels of the pod template of the replicaset.
  777. // +optional
  778. optional int32 fullyLabeledReplicas = 2;
  779. // The number of non-terminating pods targeted by this ReplicaSet with a Ready Condition.
  780. // +optional
  781. optional int32 readyReplicas = 4;
  782. // The number of available non-terminating pods (ready for at least minReadySeconds) for this replica set.
  783. // +optional
  784. optional int32 availableReplicas = 5;
  785. // The number of terminating pods for this replica set. Terminating pods have a non-null .metadata.deletionTimestamp
  786. // and have not yet reached the Failed or Succeeded .status.phase.
  787. //
  788. // This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).
  789. // +optional
  790. optional int32 terminatingReplicas = 7;
  791. // ObservedGeneration reflects the generation of the most recently observed ReplicaSet.
  792. // +optional
  793. optional int64 observedGeneration = 3;
  794. // Represents the latest available observations of a replica set's current state.
  795. // +optional
  796. // +patchMergeKey=type
  797. // +patchStrategy=merge
  798. // +listType=map
  799. // +listMapKey=type
  800. repeated ReplicaSetCondition conditions = 6;
  801. }
  802. // DEPRECATED.
  803. message RollbackConfig {
  804. // The revision to rollback to. If set to 0, rollback to the last revision.
  805. // +optional
  806. optional int64 revision = 1;
  807. }
  808. // Spec to control the desired behavior of daemon set rolling update.
  809. message RollingUpdateDaemonSet {
  810. // The maximum number of DaemonSet pods that can be unavailable during the
  811. // update. Value can be an absolute number (ex: 5) or a percentage of total
  812. // number of DaemonSet pods at the start of the update (ex: 10%). Absolute
  813. // number is calculated from percentage by rounding up.
  814. // This cannot be 0 if MaxSurge is 0
  815. // Default value is 1.
  816. // Example: when this is set to 30%, at most 30% of the total number of nodes
  817. // that should be running the daemon pod (i.e. status.desiredNumberScheduled)
  818. // can have their pods stopped for an update at any given time. The update
  819. // starts by stopping at most 30% of those DaemonSet pods and then brings
  820. // up new DaemonSet pods in their place. Once the new pods are available,
  821. // it then proceeds onto other DaemonSet pods, thus ensuring that at least
  822. // 70% of original number of DaemonSet pods are available at all times during
  823. // the update.
  824. // +optional
  825. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
  826. // The maximum number of nodes with an existing available DaemonSet pod that
  827. // can have an updated DaemonSet pod during during an update.
  828. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  829. // This can not be 0 if MaxUnavailable is 0.
  830. // Absolute number is calculated from percentage by rounding up to a minimum of 1.
  831. // Default value is 0.
  832. // Example: when this is set to 30%, at most 30% of the total number of nodes
  833. // that should be running the daemon pod (i.e. status.desiredNumberScheduled)
  834. // can have their a new pod created before the old pod is marked as deleted.
  835. // The update starts by launching new pods on 30% of nodes. Once an updated
  836. // pod is available (Ready for at least minReadySeconds) the old DaemonSet pod
  837. // on that node is marked deleted. If the old pod becomes unavailable for any
  838. // reason (Ready transitions to false, is evicted, or is drained) an updated
  839. // pod is immediately created on that node without considering surge limits.
  840. // Allowing surge implies the possibility that the resources consumed by the
  841. // daemonset on any given node can double if the readiness check fails, and
  842. // so resource intensive daemonsets should take into account that they may
  843. // cause evictions during disruption.
  844. // This is an alpha field and requires enabling DaemonSetUpdateSurge feature gate.
  845. // +optional
  846. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
  847. }
  848. // Spec to control the desired behavior of rolling update.
  849. message RollingUpdateDeployment {
  850. // The maximum number of pods that can be unavailable during the update.
  851. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  852. // Absolute number is calculated from percentage by rounding down.
  853. // This can not be 0 if MaxSurge is 0.
  854. // By default, a fixed value of 1 is used.
  855. // Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
  856. // immediately when the rolling update starts. Once new pods are ready, old RC
  857. // can be scaled down further, followed by scaling up the new RC, ensuring
  858. // that the total number of pods available at all times during the update is at
  859. // least 70% of desired pods.
  860. // +optional
  861. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
  862. // The maximum number of pods that can be scheduled above the desired number of
  863. // pods.
  864. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  865. // This can not be 0 if MaxUnavailable is 0.
  866. // Absolute number is calculated from percentage by rounding up.
  867. // By default, a value of 1 is used.
  868. // Example: when this is set to 30%, the new RC can be scaled up immediately when
  869. // the rolling update starts, such that the total number of old and new pods do not exceed
  870. // 130% of desired pods. Once old pods have been killed,
  871. // new RC can be scaled up further, ensuring that total number of pods running
  872. // at any time during the update is at most 130% of desired pods.
  873. // +optional
  874. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
  875. }
  876. // represents a scaling request for a resource.
  877. message Scale {
  878. // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
  879. // +optional
  880. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  881. // defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
  882. // +optional
  883. optional ScaleSpec spec = 2;
  884. // current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
  885. // +optional
  886. optional ScaleStatus status = 3;
  887. }
  888. // describes the attributes of a scale subresource
  889. message ScaleSpec {
  890. // desired number of instances for the scaled object.
  891. // +optional
  892. // +k8s:optional
  893. // +default=0
  894. // +k8s:minimum=0
  895. optional int32 replicas = 1;
  896. }
  897. // represents the current status of a scale subresource.
  898. message ScaleStatus {
  899. // actual number of observed instances of the scaled object.
  900. optional int32 replicas = 1;
  901. // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  902. // +optional
  903. // +mapType=atomic
  904. map<string, string> selector = 2;
  905. // label selector for pods that should match the replicas count. This is a serializated
  906. // version of both map-based and more expressive set-based selectors. This is done to
  907. // avoid introspection in the clients. The string will be in the same format as the
  908. // query-param syntax. If the target type only supports map-based selectors, both this
  909. // field and map-based selector field are populated.
  910. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  911. // +optional
  912. optional string targetSelector = 3;
  913. }