Skip to content

Commit f01ea1d

Browse files
authored
Switch DP fallback objective to list (#2217)
* Switch DP fallback objective to list * Fix json field name
1 parent b07f3cc commit f01ea1d

4 files changed

Lines changed: 525 additions & 515 deletions

File tree

api/datadoghq/v1alpha2/datadogpodautoscaler_types.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,10 @@ type DatadogPodAutoscalerHorizontalFallbackPolicy struct {
193193
// +kubebuilder:default=ScaleUp
194194
Direction DatadogPodAutoscalerFallbackDirection `json:"direction,omitempty"`
195195

196-
// Objective is the objective to reach and maintain for the target resource during fallback mode.
197-
// If not set a CPU PodResource from the current objectives will be used or a default one (80% CPU PodResource) if no CPU objective is set.
198-
// +optional
199-
// +kubebuilder:validation:Nullable
200-
Objective *common.DatadogPodAutoscalerObjective `json:"objective,omitempty"`
196+
// Objectives are the objectives to reach and maintain for the target resource in fallback mode.
197+
// If not set, the regular objectives will be used.
198+
// +listType=atomic
199+
Objectives []common.DatadogPodAutoscalerObjective `json:"objectives,omitempty"`
201200
}
202201

203202
// HorizontalFallbackTriggers defines the triggers that will cause local fallback to be enabled.

api/datadoghq/v1alpha2/zz_generated.deepcopy.go

Lines changed: 6 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)