1 /* 2 Copyright 2016 The Kubernetes Authors. 3 4 Licensed under the Apache License, Version 2.0 (the "License"); 5 you may not use this file except in compliance with the License. 6 You may obtain a copy of the License at 7 8 http://www.apache.org/licenses/LICENSE-2.0 9 10 Unless required by applicable law or agreed to in writing, software 11 distributed under the License is distributed on an "AS IS" BASIS, 12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 See the License for the specific language governing permissions and 14 limitations under the License. 15 */ 16 17 package autoscaling 18 19 // MetricSpecsAnnotation is the annotation which holds non-CPU-utilization HPA metric 20 // specs when converting the `Metrics` field from autoscaling/v2beta1 21 const MetricSpecsAnnotation = "autoscaling.alpha.kubernetes.io/metrics" 22 23 // MetricStatusesAnnotation is the annotation which holds non-CPU-utilization HPA metric 24 // statuses when converting the `CurrentMetrics` field from autoscaling/v2beta1 25 const MetricStatusesAnnotation = "autoscaling.alpha.kubernetes.io/current-metrics" 26 27 // HorizontalPodAutoscalerConditionsAnnotation is the annotation which holds the conditions 28 // of an HPA when converting the `Conditions` field from autoscaling/v2beta1 29 const HorizontalPodAutoscalerConditionsAnnotation = "autoscaling.alpha.kubernetes.io/conditions" 30 31 // DefaultCPUUtilization is the default value for CPU utilization, provided no other 32 // metrics are present. This is here because it's used by both the v2beta1 defaulting 33 // logic, and the pseudo-defaulting done in v1 conversion. 34 const DefaultCPUUtilization = 80 35 36 // BehaviorSpecsAnnotation is the annotation which holds the HPA constraints specs 37 // when converting the `Behavior` field from autoscaling/v2beta2 38 const BehaviorSpecsAnnotation = "autoscaling.alpha.kubernetes.io/behavior" 39