Skip to content

Empty objectives are fine for DPA manifest - #3400

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
mainfrom
alexey.kosmachev/CASCL-1715-remove-objectives-min-items
Aug 28, 2026
Merged

Empty objectives are fine for DPA manifest#3400
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
mainfrom
alexey.kosmachev/CASCL-1715-remove-objectives-min-items

Conversation

@ADKosm

@ADKosm ADKosm commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Remove MinItems=1 validation from the Objectives field on both DatadogPodAutoscaler and DatadogPodAutoscalerClusterProfile. This allows users to define a DPA with an empty objectives array, which is needed when all scaling configuration comes from the custom-recommender annotation settings or vertical-only autoscalers.

@ADKosm ADKosm self-assigned this Aug 25, 2026
@ADKosm
ADKosm requested a review from a team August 25, 2026 12:53
@ADKosm
ADKosm requested a review from a team as a code owner August 25, 2026 12:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 710e2c58e4

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread api/datadoghq/v1alpha2/datadogpodautoscaler_types.go
@datadog-datadog-us1-prod

datadog-datadog-us1-prod Bot commented Aug 25, 2026

Copy link
Copy Markdown

Code Coverage

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 50.18% (+0.00%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 87f9335 | Docs | View more details | Give us feedback!

@vboulineau

Copy link
Copy Markdown
Contributor

I thought we already did it, make sure the Cluster Agent requires an objective for horizontal or multi-dim.

Note: you need to use the proper versions of tools to generate (wipe bin and use the Makefile).

Comment thread config/rbac/role.yaml Outdated
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ADKosm
ADKosm force-pushed the alexey.kosmachev/CASCL-1715-remove-objectives-min-items branch from c4fe0aa to 87f9335 Compare August 25, 2026 14:54
@ADKosm ADKosm added the enhancement New feature or request label Aug 26, 2026
@ADKosm

ADKosm commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

@vboulineau for now, we agreed with @clamoriniere that we will rely on default of 75% on CPU set by backend - https://dd.slack.com/archives/C08FUDH30EA/p1787778072416079?thread_ts=1787755494.894189&cid=C08FUDH30EA
We can reconsider this later

@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot merged commit 3209b94 into main Aug 28, 2026
58 of 59 checks passed
@gh-worker-dd-mergequeue-cf854d
gh-worker-dd-mergequeue-cf854d Bot deleted the alexey.kosmachev/CASCL-1715-remove-objectives-min-items branch August 28, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants