[Backport v1.30] [TON-742] Support managed DatadogAgent creation and removal - #3341
Merged
Conversation
Harden lifecycle readiness prerequisites Add EKS add-on lifecycle handling Generalize lifecycle ownership metadata Rename managed Agent installation support Fix managed installation lint failures Generalize managed Agent installation flow Harden managed Agent installation handoff Simplify managed Agent installation coordination Limit managed installation integration scope Preserve installation acknowledgement during uninstall Separate managed installation from Remote Config fix managed installation task arbitration harden managed Agent installation handling Improve managed installation test coverage Preserve updates when managed install is disabled Simplify managed installation flow Fix managed Windows profile validation Align managed installation namespace Harden managed installation recovery Use operator namespace for managed installs Modernize owner reference pointers Fix managed installation task recovery Harden managed installation recovery Fix managed installation cleanup retrigger ci Co-authored-by: swang392 <sarah.wang@datadoghq.com> (cherry picked from commit bf9fb87)
gabedos
approved these changes
Aug 10, 2026
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6d05d99c3e
ℹ️ 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".
This comment has been minimized.
This comment has been minimized.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport bf9fb87 from #3268.
What does this PR do?
Adds opt-in support for managed DatadogAgent creation and removal. The Operator reads lifecycle requests from a ConfigMap, creates or removes the DatadogAgent and Windows AgentProfile resources, and reports progress and completion through Remote Config.
The new flow coordinates with existing Fleet configuration updates so the two operations do not overwrite each other's state.
Motivation
After the EKS instrumenter installs the Operator EKS add-on, it needs a reliable way to create the DatadogAgent and confirm that removal has completed before removing the add-on.
Additional Notes
The feature is disabled by default. EKS is the first supported provider, while the managed-DatadogAgent flow remains provider-neutral and extensible. Existing DatadogAgent and DatadogAgentInternal reconciliation behavior is unchanged.
Minimum Agent Versions
Describe your test plan
CGO_ENABLED=0 go test ./cmd ./pkg/config ./pkg/fleet ./pkg/remoteconfigCGO_ENABLED=0 make lintChecklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel