Skip to content

[CASCL-1386] (11/12) Evict standalone EC2 nodes#3170

Closed
L3n41c wants to merge 1 commit into
lenaic/CASCL-1386-evict-10-asgfrom
lenaic/CASCL-1386-evict-11-standalone
Closed

[CASCL-1386] (11/12) Evict standalone EC2 nodes#3170
L3n41c wants to merge 1 commit into
lenaic/CASCL-1386-evict-10-asgfrom
lenaic/CASCL-1386-evict-11-standalone

Conversation

@L3n41c

@L3n41c L3n41c commented Jun 18, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Implements standalone EC2 node eviction: cordon, drain and terminate the instances.

Motivation

PR #3026 is too large to review as a single change. This is part 11 of 12 of a stack that splits it into small, individually-reviewable pieces that each build and pass tests on their own. See #3026 for the full feature context and end-to-end QA.

Additional Notes

Stacked PR — the base branch is lenaic/CASCL-1386-evict-10-asg, not main, so the diff shows only this step's change. Implements logic that earlier stack parts left stubbed with panic("TODO …"). The code is taken verbatim from #3026 (rebased onto main); there are no logic changes versus #3026.

Minimum Agent Versions

N/A — kubectl-datadog plugin only.

Describe your test plan

go test ./cmd/kubectl-datadog/autoscaling/cluster/... passes at this commit. Full end-to-end QA is tracked on #3026.

Checklist

PR 11 of a stack splitting #3026 into reviewable pieces. Builds and
passes tests on its own; the command is fully functional only once the
whole stack lands.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@datadog-prod-us1-4

datadog-prod-us1-4 Bot commented Jun 18, 2026

Copy link
Copy Markdown

Pipelines  Code Coverage

Fix all issues with BitsAI

⚠️ Warnings

🚦 1 Pipeline job failed

DataDog/datadog-operator | e2e: [1.32]   View in Datadog   GitLab

ℹ️ Info

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 44.79% (+0.04%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 7fb4c7e | Docs | Datadog PR Page | Give us feedback!

@codecov-commenter

codecov-commenter commented Jun 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.56%. Comparing base (749ff4e) to head (7fb4c7e).

Additional details and impacted files

Impacted file tree graph

@@                        Coverage Diff                         @@
##           lenaic/CASCL-1386-evict-10-asg    #3170      +/-   ##
==================================================================
+ Coverage                           44.52%   44.56%   +0.04%     
==================================================================
  Files                                 391      391              
  Lines                               31457    31477      +20     
==================================================================
+ Hits                                14005    14027      +22     
+ Misses                              16547    16545       -2     
  Partials                              905      905              
Flag Coverage Δ
unittests 44.56% <100.00%> (+0.04%) ⬆️

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

Files with missing lines Coverage Δ
...tl-datadog/autoscaling/cluster/evict/standalone.go 100.00% <100.00%> (+100.00%) ⬆️

Continue to review full report in Codecov by Harness.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@L3n41c L3n41c deleted the branch lenaic/CASCL-1386-evict-10-asg June 18, 2026 15:41
@L3n41c L3n41c closed this Jun 18, 2026
@L3n41c L3n41c deleted the lenaic/CASCL-1386-evict-11-standalone branch June 18, 2026 15:41
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.

2 participants