diff --git a/api/openapi-spec/swagger.json b/api/openapi-spec/swagger.json index b51128c4c73..1d213c70e5b 100644 --- a/api/openapi-spec/swagger.json +++ b/api/openapi-spec/swagger.json @@ -52649,6 +52649,35 @@ } ] }, + "io.k8s.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerCondition": { + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "required": [ + "type", + "status" + ], + "properties": { + "lastTransitionTime": { + "description": "lastTransitionTime is the last time the condition transitioned from one status to another", + "$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.Time" + }, + "message": { + "description": "message is a human-readable explanation containing details about the transition", + "type": "string" + }, + "reason": { + "description": "reason is the reason for the condition's last transition.", + "type": "string" + }, + "status": { + "description": "status is the status of the condition (True, False, Unknown)", + "type": "string" + }, + "type": { + "description": "type describes the current condition", + "type": "string" + } + } + }, "io.k8s.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerList": { "description": "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.", "required": [ @@ -52718,9 +52747,17 @@ "required": [ "currentReplicas", "desiredReplicas", - "currentMetrics" + "currentMetrics", + "conditions" ], "properties": { + "conditions": { + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.", + "type": "array", + "items": { + "$ref": "#/definitions/io.k8s.kubernetes.pkg.apis.autoscaling.v2alpha1.HorizontalPodAutoscalerCondition" + } + }, "currentMetrics": { "description": "currentMetrics is the last read state of the metrics used by this autoscaler.", "type": "array", diff --git a/api/swagger-spec/autoscaling_v2alpha1.json b/api/swagger-spec/autoscaling_v2alpha1.json index c17c11688ab..4d4d8440c1f 100644 --- a/api/swagger-spec/autoscaling_v2alpha1.json +++ b/api/swagger-spec/autoscaling_v2alpha1.json @@ -1512,7 +1512,8 @@ "required": [ "currentReplicas", "desiredReplicas", - "currentMetrics" + "currentMetrics", + "conditions" ], "properties": { "observedGeneration": { @@ -1540,6 +1541,13 @@ "$ref": "v2alpha1.MetricStatus" }, "description": "currentMetrics is the last read state of the metrics used by this autoscaler." + }, + "conditions": { + "type": "array", + "items": { + "$ref": "v2alpha1.HorizontalPodAutoscalerCondition" + }, + "description": "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met." } } }, @@ -1632,6 +1640,36 @@ } } }, + "v2alpha1.HorizontalPodAutoscalerCondition": { + "id": "v2alpha1.HorizontalPodAutoscalerCondition", + "description": "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.", + "required": [ + "type", + "status" + ], + "properties": { + "type": { + "type": "string", + "description": "type describes the current condition" + }, + "status": { + "type": "string", + "description": "status is the status of the condition (True, False, Unknown)" + }, + "lastTransitionTime": { + "type": "string", + "description": "lastTransitionTime is the last time the condition transitioned from one status to another" + }, + "reason": { + "type": "string", + "description": "reason is the reason for the condition's last transition." + }, + "message": { + "type": "string", + "description": "message is a human-readable explanation containing details about the transition" + } + } + }, "v1.WatchEvent": { "id": "v1.WatchEvent", "required": [ diff --git a/docs/api-reference/autoscaling/v2alpha1/definitions.html b/docs/api-reference/autoscaling/v2alpha1/definitions.html index 5c24208cb53..9653cc3d765 100755 --- a/docs/api-reference/autoscaling/v2alpha1/definitions.html +++ b/docs/api-reference/autoscaling/v2alpha1/definitions.html @@ -536,6 +536,13 @@ span.icon > [class^="icon-"], span.icon > [class*=" icon-"] { cursor: default; }
v2alpha1.MetricStatus array
conditions
conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.
true
HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.
+Name | +Description | +Required | +Schema | +Default | +
---|---|---|---|---|
type |
+type describes the current condition |
+true |
+string |
++ |
status |
+status is the status of the condition (True, False, Unknown) |
+true |
+string |
++ |
lastTransitionTime |
+lastTransitionTime is the last time the condition transitioned from one status to another |
+false |
+string |
++ |
reason |
+reason is the reason for the condition’s last transition. |
+false |
+string |
++ |
message |
+message is a human-readable explanation containing details about the transition |
+false |
+string |
++ |