/
const.go
47 lines (45 loc) · 2.6 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Unless explicitly stated otherwise all files in this repository are licensed
// under the Apache License Version 2.0.
// This product includes software developed at Datadog (https://www.datadoghq.com/).
// Copyright 2016-present Datadog, Inc.
package v1alpha1
const (
// ConditionReasonSuccessfulGetScale Condition when the target's scale can be retrieved
ConditionReasonSuccessfulGetScale = "SucceededGetScale"
// ConditionReasonScalingDisabled Condition when scaling is disable for the target
ConditionReasonScalingDisabled = "ScalingDisabled"
// ConditionReasonSuccessfulScale Condition reason for Succeeded Rescale
ConditionReasonSuccessfulScale = "SuccessfulScale"
// ConditionReasonFailedScale Condition reason for Failed Rescale
ConditionReasonFailedScale = "FailedScale"
// ConditionReasonReadyForScale Condition reason when the target is ready to be Scaled
ConditionReasonReadyForScale = "ReadyForScale"
// ConditionReasonFailedUpdateReplicasStatus Condition when unable to scale and update the target's status
ConditionReasonFailedUpdateReplicasStatus = "FailedUpdateReplicas"
// ConditionReasonBackOffDownscale Condition when downscaling is forbidden
ConditionReasonBackOffDownscale = "BackoffDownscale"
// ConditionReasonBackOffUpscale Condition when upscaling is forbidden
ConditionReasonBackOffUpscale = "BackoffUpscale"
// ConditionReasonBackOff Condition when scaling is forbidden
ConditionReasonBackOff = "BackoffBoth"
// ConditionReasonFailedGetExternalMetrics Condition when the External Metrics Server does not serve a metric
ConditionReasonFailedGetExternalMetrics = "FailedGetExternalMetric"
// ConditionReasonFailedGetResourceMetric Condition when the Resource Metrics Server does not serve a metric
ConditionReasonFailedGetResourceMetric = "FailedGetResourceMetric"
// ConditionValidMetricFound Condition when a valid metric is retrieved
ConditionValidMetricFound = "ValidMetricFound"
// ReasonFailedSpecCheck Reason when the spec of the WPA is incorrect
ReasonFailedSpecCheck = "FailedSpecCheck"
// ReasonNotScaling Reason when not scaling
ReasonNotScaling = "NotScaling"
// ReasonScaling Reason when scaling
ReasonScaling = "Scaling"
// ReasonFailedScale Reason when unable to scale
ReasonFailedScale = "FailedScale"
// ReasonFailedUpdateReplicasStatus Reason when unable to scale and update the target's status
ReasonFailedUpdateReplicasStatus = "FailedUpdateReplicas"
// ReasonFailedUpdateStatus Reason when the status can't be updated
ReasonFailedUpdateStatus = "FailedUpdateStatus"
// ReasonFailedProcessWPA Reason when the WPA can't be processed
ReasonFailedProcessWPA = "FailedProcessWPA"
)