Documentation ¶
Index ¶
Constants ¶
View Source
const ( HPARecommendationValueAnnotation = "analysis.crane.io/hpa-recommendation" ReplicasRecommendationValueAnnotation = "analysis.crane.io/replicas-recommendation" ResourceRecommendationValueAnnotation = "analysis.crane.io/resource-recommendation" RunNumberAnnotation = "analysis.crane.io/run-number" AnalyticsConversionAnnotation = "analysis.crane.io/analytics-conversion" LastStartTimeAnnotation = "analysis.crane.io/last-start-time" MessageAnnotation = "analysis.crane.io/message" )
View Source
const ( EffectiveHorizontalPodAutoscalerCurrentMetricsAnnotation = "autoscaling.crane.io/effective-hpa-current-metrics" EffectiveHorizontalPodAutoscalerExternalMetricsAnnotationPrefix = "metric-query.autoscaling.crane.io" )
View Source
const ( MetricNamePrediction = "crane_autoscaling_prediction" MetricNameCron = "crane_autoscaling_cron" MetricNamePodCpuUsage = "crane_pod_cpu_usage" )
View Source
const ( DefaultCoolDownSeconds = 300 DefaultRestoredThreshold = 1 DefaultAvoidedThreshold = 1 DefaultDeletionGracePeriodSeconds = 30 MaxMinCPURatio = 100 MaxStepCPURatio = 100 )
View Source
const ( EffectiveHorizontalPodAutoscalerUidLabel = "autoscaling.crane.io/effective-hpa-uid" EffectiveHorizontalPodAutoscalerManagedBy = "effective-hpa-controller" )
View Source
const ( EnsuranceAnalyzedPressureTaintKey = "interference.crane.io" EnsuranceAnalyzedPressureConditionKey = "interference-identified" )
View Source
const ( AnalyticsNameLabel = "analysis.crane.io/analytics-name" AnalyticsUidLabel = "analysis.crane.io/analytics-uid" AnalyticsTypeLabel = "analysis.crane.io/analytics-type" )
View Source
const ( RecommendationRuleNameLabel = "analysis.crane.io/recommendation-rule-name" RecommendationRuleUidLabel = "analysis.crane.io/recommendation-rule-uid" RecommendationRuleRecommenderLabel = "analysis.crane.io/recommendation-rule-recommender" RecommendationRuleTargetKindLabel = "analysis.crane.io/recommendation-target-kind" RecommendationRuleTargetVersionLabel = "analysis.crane.io/recommendation-target-version" RecommendationRuleTargetNameLabel = "analysis.crane.io/recommendation-target-name" RecommendationRuleTargetNamespaceLabel = "analysis.crane.io/recommendation-target-namespace" )
View Source
const ( ReasonTimeSeriesPredictFailed = "PredictFailed" ReasonTimeSeriesPredictPartial = "PredictPartial" ReasonTimeSeriesPredictSucceed = "PredictSucceed" )
View Source
const (
AutoscalingFinalizer = "autoscaling.crane.io/finalizer"
)
Variables ¶
View Source
var (
CraneSystemNamespace = "crane-system"
)
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.