Add EKS auto-mode pre-flight check to kubectl plugin install command#2717
Conversation
Detect EKS auto-mode by checking for the nodeclasses CRD in the eks.amazonaws.com API group before installing Karpenter. When auto-mode is active, Karpenter is already built-in and does not need a separate installation — display a message directing the user to the Datadog autoscaling settings page instead.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2717 +/- ##
==========================================
+ Coverage 38.81% 39.26% +0.44%
==========================================
Files 307 309 +2
Lines 26610 27272 +662
==========================================
+ Hits 10329 10707 +378
- Misses 15501 15771 +270
- Partials 780 794 +14
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 13 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Summary
nodeclassesCRD in theeks.amazonaws.comAPI group via the Kubernetes discovery APIopenAutoscalingSettingsURLhelperTest plan
IsEKSAutoModeEnabled(auto-mode active, group not found, group exists without nodeclasses)go build ./cmd/kubectl-datadog/...