Skip to content

[Backport v1.30] [TON-742] Support managed DatadogAgent creation and removal - #3341

Merged
gabedos merged 1 commit into
v1.30from
backport-3268-to-v1.30
Aug 11, 2026
Merged

[Backport v1.30] [TON-742] Support managed DatadogAgent creation and removal#3341
gabedos merged 1 commit into
v1.30from
backport-3268-to-v1.30

Conversation

@dd-octo-sts

@dd-octo-sts dd-octo-sts Bot commented Aug 10, 2026

Copy link
Copy Markdown

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

  • Agent: N/A
  • Cluster Agent: N/A

Describe your test plan

  • CGO_ENABLED=0 go test ./cmd ./pkg/config ./pkg/fleet ./pkg/remoteconfig
  • CGO_ENABLED=0 make lint

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
  • All commits are signed (see: signing commits)

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)
@dd-octo-sts dd-octo-sts Bot added enhancement New feature or request mergequeue-status: done labels Aug 10, 2026
@dd-octo-sts
dd-octo-sts Bot requested a review from a team as a code owner August 10, 2026 19:50
@dd-octo-sts dd-octo-sts Bot added backport label added by backport action bot label added by backport bot labels Aug 10, 2026
@dd-octo-sts
dd-octo-sts Bot requested a review from a team as a code owner August 10, 2026 19:50
@dd-octo-sts
dd-octo-sts Bot requested a review from a team as a code owner August 10, 2026 19:50
@dd-octo-sts dd-octo-sts Bot added this to the v1.30.0 milestone Aug 10, 2026

@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: 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".

Comment thread pkg/fleet/daemon.go
@datadog-official

This comment has been minimized.

@gabedos
gabedos merged commit 5a0cdc2 into v1.30 Aug 11, 2026
72 checks passed
@gabedos
gabedos deleted the backport-3268-to-v1.30 branch August 11, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport label added by backport action bot label added by backport bot enhancement New feature or request mergequeue-status: done team/agent-delivery team/container-platform team/fleet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants