← Back to Pull requests

[opentelemetry-kube-stack] Deprecate `ddot/install` and `ddot/uninstall` in favor of the parent scripts #557

Closed
unknown closed this pull request without merging on Nov 26, 2026 12:22 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 22:23 UTC
Author

Summary

The parent install script installs the DDOT components with DD_INSTALL_FLOW=ddot, and ddot/install had drifted from it. ddot/install still installed the OpenTelemetry Kube Stack Helm chart 0.26.1 with a ddot/values.yaml written for 0.27.3, and the Datadog Operator chart 2.28.1 instead of 2.33.0. It also lacked the parent script's API key handling, option reuse on re-runs, permission checks, and Fleet Automation support.

This PR makes the parent scripts the only installer and uninstaller:

  • ddot/install is deprecated. It prints a deprecation warning and runs ../install with DD_INSTALL_FLOW=ddot. It keeps --local, --config-url, overlay values files given as a URL or relative path, and the legacy host-profiler and ddagent-kube-stack Helm release check.

  • Upgrades of earlier ddot/install installations. ../install refuses to install over an OpenTelemetry Operator or a Datadog Operator that it didn't install. The wrapper detects installations made by earlier versions of ddot/install and records DD_INSTALL_FLOW=ddot in the opentelemetry-kube-stack-install-options ConfigMap, so that ../install upgrades them. ddot/INSTALL.md documents the manual steps.

  • ddot/uninstall is removed. Use ../uninstall.

  • ../uninstall now deletes the Datadog Operator CRDs. Its warning listed them, but it didn't delete them. The list now also includes the four CRDs that ddot/uninstall deleted: datadogagentprofiles, datadogslos, datadogdashboards, and datadoggenericresources.

  • Docs. ddot/README.md and ddot/INSTALL.md document ../install with DD_INSTALL_FLOW=ddot, and link to the parent README for the environment variables. INSTALL.md covers overlay values files, local copies of the configuration files, the cluster changes, troubleshooting, and the chart versions of the manual installation. The astronomy-store README points to the parent script.
  • Behavior changes for ddot/install users

  • Chart versions follow ../install: OpenTelemetry Kube Stack 0.27.3, Datadog Operator 2.33.0, and cert-manager pinned to v1.21.3.

  • On K8S_CLUSTER_TYPE=other, K8S_CLUSTER_NAME no longer defaults to unknown-k8s-cluster: it stays unset, as in ../install.

  • --local needs the parent folder's layout (install, upstream/values.yaml, ddot/...).
  • Open question

    Local copies of the configuration files rely on the TESTING_BASE_URL environment variable of ../install, which ddot/INSTALL.md now documents. A clearer name, such as CONFIG_BASE_URL, might fit better for a user-facing option.

    Test plan

  • ddot/install --help, unknown options, DD_INSTALL_FLOW=upstream, a missing DD_API_KEY, and a --config-url outside a ddot folder fail with the expected errors.

  • With stub kubectl and helm commands, --local, the default tag download, and relative overlay paths all hand off to ../install. With --local, ../install downloads its configuration files from file://.

  • bash -n uninstall.

  • The shellcheck CI check passes. shellcheck wasn't available locally.

  • Install on a test cluster with DD_INSTALL_FLOW=ddot ./install, then uninstall with ./uninstall.

  • Upgrade a cluster installed with the v0.1.0 ddot/install by running the new ddot/install.
  • 🤖 Generated with Claude Code

    Diff: 422 lines (+316 / -106) across 5 files Reviewer: mx-psi Review duration: 838m
    All Vouch review confidence checks passed
    Residual risk 0.27 = Change Risk (0.68) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.68 · 422 lines diff across 5 files
    0.68
    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.362
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.068
    Real PR Conversation Timeline
    1 comments
    "Review active on #557"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    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: 68.2% (HIGH) · Higher = larger blast radius
    68.2%
    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: 26.9% · Safe to merge
    26.9%