blob: 996dc18401d75cdedae3eae24c7ecb0625e5fb9b [file] [log] [blame]
Zack Williamse940c7a2019-08-21 14:25:39 -07001/*
2Copyright The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package v2beta2
18
19// This file contains a collection of methods that can be used from go-restful to
20// generate Swagger API documentation for its models. Please read this PR for more
21// information on the implementation: https://github.com/emicklei/go-restful/pull/215
22//
23// TODOs are ignored from the parser (e.g. TODO(andronat):... || TODO:...) if and only if
24// they are on one line! For multiple line or blocks that you want to ignore use ---.
25// Any context after a --- is ignored.
26//
27// Those methods can be generated by using hack/update-generated-swagger-docs.sh
28
29// AUTO-GENERATED FUNCTIONS START HERE. DO NOT EDIT.
30var map_CrossVersionObjectReference = map[string]string{
31 "": "CrossVersionObjectReference contains enough information to let you identify the referred resource.",
32 "kind": "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\"",
33 "name": "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names",
34 "apiVersion": "API version of the referent",
35}
36
37func (CrossVersionObjectReference) SwaggerDoc() map[string]string {
38 return map_CrossVersionObjectReference
39}
40
41var map_ExternalMetricSource = map[string]string{
42 "": "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
43 "metric": "metric identifies the target metric by name and selector",
44 "target": "target specifies the target value for the given metric",
45}
46
47func (ExternalMetricSource) SwaggerDoc() map[string]string {
48 return map_ExternalMetricSource
49}
50
51var map_ExternalMetricStatus = map[string]string{
52 "": "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.",
53 "metric": "metric identifies the target metric by name and selector",
54 "current": "current contains the current value for the given metric",
55}
56
57func (ExternalMetricStatus) SwaggerDoc() map[string]string {
58 return map_ExternalMetricStatus
59}
60
61var map_HorizontalPodAutoscaler = map[string]string{
62 "": "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.",
63 "metadata": "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata",
64 "spec": "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.",
65 "status": "status is the current information about the autoscaler.",
66}
67
68func (HorizontalPodAutoscaler) SwaggerDoc() map[string]string {
69 return map_HorizontalPodAutoscaler
70}
71
72var map_HorizontalPodAutoscalerCondition = map[string]string{
73 "": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.",
74 "type": "type describes the current condition",
75 "status": "status is the status of the condition (True, False, Unknown)",
76 "lastTransitionTime": "lastTransitionTime is the last time the condition transitioned from one status to another",
77 "reason": "reason is the reason for the condition's last transition.",
78 "message": "message is a human-readable explanation containing details about the transition",
79}
80
81func (HorizontalPodAutoscalerCondition) SwaggerDoc() map[string]string {
82 return map_HorizontalPodAutoscalerCondition
83}
84
85var map_HorizontalPodAutoscalerList = map[string]string{
86 "": "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.",
87 "metadata": "metadata is the standard list metadata.",
88 "items": "items is the list of horizontal pod autoscaler objects.",
89}
90
91func (HorizontalPodAutoscalerList) SwaggerDoc() map[string]string {
92 return map_HorizontalPodAutoscalerList
93}
94
95var map_HorizontalPodAutoscalerSpec = map[string]string{
96 "": "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.",
97 "scaleTargetRef": "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.",
98 "minReplicas": "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.",
99 "maxReplicas": "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.",
100 "metrics": "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.",
101}
102
103func (HorizontalPodAutoscalerSpec) SwaggerDoc() map[string]string {
104 return map_HorizontalPodAutoscalerSpec
105}
106
107var map_HorizontalPodAutoscalerStatus = map[string]string{
108 "": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.",
109 "observedGeneration": "observedGeneration is the most recent generation observed by this autoscaler.",
110 "lastScaleTime": "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.",
111 "currentReplicas": "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.",
112 "desiredReplicas": "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.",
113 "currentMetrics": "currentMetrics is the last read state of the metrics used by this autoscaler.",
114 "conditions": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.",
115}
116
117func (HorizontalPodAutoscalerStatus) SwaggerDoc() map[string]string {
118 return map_HorizontalPodAutoscalerStatus
119}
120
121var map_MetricIdentifier = map[string]string{
122 "": "MetricIdentifier defines the name and optionally selector for a metric",
123 "name": "name is the name of the given metric",
124 "selector": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.",
125}
126
127func (MetricIdentifier) SwaggerDoc() map[string]string {
128 return map_MetricIdentifier
129}
130
131var map_MetricSpec = map[string]string{
132 "": "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).",
133 "type": "type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.",
134 "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
135 "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
136 "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
137 "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
138}
139
140func (MetricSpec) SwaggerDoc() map[string]string {
141 return map_MetricSpec
142}
143
144var map_MetricStatus = map[string]string{
145 "": "MetricStatus describes the last-read state of a single metric.",
146 "type": "type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.",
147 "object": "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).",
148 "pods": "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
149 "resource": "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
150 "external": "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).",
151}
152
153func (MetricStatus) SwaggerDoc() map[string]string {
154 return map_MetricStatus
155}
156
157var map_MetricTarget = map[string]string{
158 "": "MetricTarget defines the target value, average value, or average utilization of a specific metric",
159 "type": "type represents whether the metric type is Utilization, Value, or AverageValue",
160 "value": "value is the target value of the metric (as a quantity).",
161 "averageValue": "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)",
162 "averageUtilization": "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type",
163}
164
165func (MetricTarget) SwaggerDoc() map[string]string {
166 return map_MetricTarget
167}
168
169var map_MetricValueStatus = map[string]string{
170 "": "MetricValueStatus holds the current value for a metric",
171 "value": "value is the current value of the metric (as a quantity).",
172 "averageValue": "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)",
173 "averageUtilization": "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.",
174}
175
176func (MetricValueStatus) SwaggerDoc() map[string]string {
177 return map_MetricValueStatus
178}
179
180var map_ObjectMetricSource = map[string]string{
181 "": "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
182 "target": "target specifies the target value for the given metric",
183 "metric": "metric identifies the target metric by name and selector",
184}
185
186func (ObjectMetricSource) SwaggerDoc() map[string]string {
187 return map_ObjectMetricSource
188}
189
190var map_ObjectMetricStatus = map[string]string{
191 "": "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).",
192 "metric": "metric identifies the target metric by name and selector",
193 "current": "current contains the current value for the given metric",
194}
195
196func (ObjectMetricStatus) SwaggerDoc() map[string]string {
197 return map_ObjectMetricStatus
198}
199
200var map_PodsMetricSource = map[string]string{
201 "": "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.",
202 "metric": "metric identifies the target metric by name and selector",
203 "target": "target specifies the target value for the given metric",
204}
205
206func (PodsMetricSource) SwaggerDoc() map[string]string {
207 return map_PodsMetricSource
208}
209
210var map_PodsMetricStatus = map[string]string{
211 "": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).",
212 "metric": "metric identifies the target metric by name and selector",
213 "current": "current contains the current value for the given metric",
214}
215
216func (PodsMetricStatus) SwaggerDoc() map[string]string {
217 return map_PodsMetricStatus
218}
219
220var map_ResourceMetricSource = map[string]string{
221 "": "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.",
222 "name": "name is the name of the resource in question.",
223 "target": "target specifies the target value for the given metric",
224}
225
226func (ResourceMetricSource) SwaggerDoc() map[string]string {
227 return map_ResourceMetricSource
228}
229
230var map_ResourceMetricStatus = map[string]string{
231 "": "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.",
232 "name": "Name is the name of the resource in question.",
233 "current": "current contains the current value for the given metric",
234}
235
236func (ResourceMetricStatus) SwaggerDoc() map[string]string {
237 return map_ResourceMetricStatus
238}
239
240// AUTO-GENERATED FUNCTIONS END HERE