Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new version of DatadogPodAutoscaler CRD #1621

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

jbartosik
Copy link

What does this PR do?

A brief description of the change being made with this pull request.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

Write there any instructions and details you may have to test your PR.

Checklist

  • PR has at least one valid label: bug, enhancement, refactoring, documentation, tooling, and/or dependencies
  • PR has a milestone or the qa/skip-qa label

@jbartosik jbartosik changed the title Cascl 120 new ddas crd Add new version of DatadogPodAutoscaler CRD Jan 13, 2025
@jbartosik jbartosik added enhancement New feature or request qa/skip-qa labels Jan 13, 2025
@jbartosik jbartosik force-pushed the CASCL-120-new-ddas-crd branch 3 times, most recently from 3c1e64d to 2f562af Compare January 13, 2025 15:55
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.14%. Comparing base (7f198ad) to head (580f389).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1621   +/-   ##
=======================================
  Coverage   49.14%   49.14%           
=======================================
  Files         218      218           
  Lines       21017    21017           
=======================================
  Hits        10328    10328           
  Misses      10148    10148           
  Partials      541      541           
Flag Coverage Δ
unittests 49.14% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7f198ad...580f389. Read the comment docs.

@jbartosik jbartosik force-pushed the CASCL-120-new-ddas-crd branch 4 times, most recently from 32b049f to fb5a478 Compare January 13, 2025 16:15
@jbartosik jbartosik marked this pull request as ready for review January 13, 2025 16:33
@jbartosik jbartosik requested a review from a team as a code owner January 13, 2025 16:33
@levan-m levan-m requested a review from a team January 13, 2025 16:37
PROJECT Outdated Show resolved Hide resolved
api/datadoghq/v2alpha1/datadogpodautoscaler_types.go Outdated Show resolved Hide resolved
api/datadoghq/v2alpha1/datadogpodautoscaler_types.go Outdated Show resolved Hide resolved
api/datadoghq/v2alpha1/datadogpodautoscaler_types.go Outdated Show resolved Hide resolved
api/datadoghq/v2alpha1/datadogpodautoscaler_types.go Outdated Show resolved Hide resolved
config/rbac/kustomization.yaml Outdated Show resolved Hide resolved
@jbartosik jbartosik force-pushed the CASCL-120-new-ddas-crd branch 7 times, most recently from eb18115 to b188755 Compare January 29, 2025 12:53
PROJECT Outdated Show resolved Hide resolved
api/datadoghq/v1alpha1/datadogpodautoscaler_types.go Outdated Show resolved Hide resolved
api/datadoghq/v1alpha2/datadogpodautoscaler_types.go Outdated Show resolved Hide resolved
@@ -0,0 +1,749 @@
{
"additionalProperties": false,
Copy link
Contributor

Choose a reason for hiding this comment

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

Leftover from v2alpha1 version, should be deleted.

Copy link
Contributor

Choose a reason for hiding this comment

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

Still pending deletion!

config/crd/kustomization.yaml Outdated Show resolved Hide resolved
config/rbac/kustomization.yaml Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
@jbartosik jbartosik force-pushed the CASCL-120-new-ddas-crd branch from b188755 to 6cdfa1c Compare January 29, 2025 14:22
`operator-sdk create api --group datadoghq --kind DatadogPodAutoscaler --version v2alpha1`
Similar to v1alpah1, with the following changes:
- `spec.policy` renamed to `spec.actuation`
- `spec.policy.applyMode` replaced with `spec.actuation.mode` (allowed values
   `Apply` and `Preview`)
- `spec.policy.upscale.match` and `spec.policy.donwscale.match` removed
- `spec.policy.targets` renamed to `spec.policy.objectives`
- `sepc.policy.contraints.containers[].limits` removed
@jbartosik jbartosik force-pushed the CASCL-120-new-ddas-crd branch from c06ea28 to 580f389 Compare January 30, 2025 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request qa/skip-qa
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants