← Back to Pull requests

[TON-991] Make managed EKS installation site-agnostic #3572

Closed
unknown closed this pull request without merging on Oct 08, 2026 17:33 UTC
View on GitHub
unknown unknown commented on Oct 08, 2026 15:50 UTC
Author

What does this PR do?

Makes the EKS managed Agent installation path site-agnostic:

  • replaces the EKS add-on schema's fixed site enum with bounded DNS hostname validation;

  • removes the duplicate Operator runtime product-site allowlist;

  • keeps the schema and runtime constraints aligned, including DNS label and total-length limits;

  • uses the neutral reserved hostname site.example in managed-installation tests.
  • The managed intent payload remains compatible with version v1, and the requested site continues to populate DatadogAgent.spec.global.site.

    Motivation

    The regular DatadogAgent API is site-agnostic, but the managed EKS installation path maintained a separate list of public sites in both the AWS add-on schema and Operator runtime. That duplication prevented valid non-public deployments and could drift as sites change.

    This change validates the shape of the hostname rather than embedding deployment policy or internal site names in the open-source Operator.

    Jira: https://datadoghq.atlassian.net/browse/TON-991

    Additional Notes

    Existing managed-installation restrictions for custom endpoints, credential sources, images, registries, and other execution or egress surfaces are unchanged.

    Both the Operator binary and corresponding EKS add-on chart must include this change before a hostname outside the former enum can be used through the managed path.

    Minimum Agent Versions

    Agent: N/A
    Cluster Agent: N/A

    Describe your test plan

  • go test ./pkg/fleet -count=1

  • go test ./...

  • make lint

  • helm lint marketplaces/charts/operator-eks-addon

  • Validate the add-on schema against valid and malformed neutral hostname fixtures.

  • Verify the diff adds no internal staging hostname.
  • 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][1])
  • [1]: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits

    Diff: 262 lines (+196 / -66) across 3 files Reviewer: Mathew-Estafanous Review duration: 102m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 262 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.333
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3572"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.3% (MEDIUM) · Higher = larger blast radius
    39.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.5% · Safe to merge
    15.5%