Skip to content

[BUG] datadogAgentInternal enablement doesn't support duplicate datadogAgent custom resources. #2658

@jess-belliveau

Description

@jess-belliveau

Pre-submission Checklist

  • I have searched existing issues and this is not a duplicate
  • This is a Datadog Operator issue (CRDs, reconciliation, etc.), not a Datadog Agent or Datadog service problem (dashboards, monitors, etc.)

Operator version

1.23.0

Operator Helm chart version

2.18.0

Bug Report

What happened:
Upgrade of the helm chart set;

datadogAgentInternal:
  # datadogAgentInternal.enabled -- Enables the Datadog Agent Internal controller
  enabled: true

This caused the operator to fail to reconcile my existing datadogAgent custom resources causing all agents to be deleted/created in a loop

What I expected:
No change to existing datadogAgent deployments.

Steps to Reproduce

  1. Install operator with helm chart 2.13.1 defaults
  2. Deploy two datadogAgent custom resources
  3. Upgrade operator via helm chart 2.18.0 using defaults
  4. Operator will fail to reconcile existing datadogAgent deployments.

Environment

Kubernetes version: v1.32.11-eks-ac2d5a0
Helm version: v3.17.3
Cloud provider: AWS

Additional Context

Setting the following helm values for the operator chart disabled DDAI allows for deployment of datadogAgent CRs as expected;

        datadogAgentInternal:
          enabled: false
        datadogCRDs:
          crds:
            datadogAgentInternals: false

Screenshot shows successful deployment of two datadogAgent custom resources with the new datadogAgentInternal controller disabled:
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions