Skip to content

Operator manifest renderer#2947

Open
levan-m wants to merge 1 commit intomainfrom
levan-m/operator-render
Open

Operator manifest renderer#2947
levan-m wants to merge 1 commit intomainfrom
levan-m/operator-render

Conversation

@levan-m
Copy link
Copy Markdown
Collaborator

@levan-m levan-m commented Apr 27, 2026

What does this PR do?

Offline renderer to generate k8s manifests from DDA, DAP custom resources without running a cluster.

Motivation

What inspired you to submit this pull request?

Additional Notes

Anything else we should know when reviewing?

Minimum Agent Versions

Are there minimum versions of the Datadog Agent and/or Cluster Agent required?

  • Agent: vX.Y.Z
  • Cluster Agent: vX.Y.Z

Describe your test plan

see the README.md in the diff.

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)

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

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: a1adbe6a4d

ℹ️ 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".

DDAFile: ddaFile,
DAPFiles: dapFiles,
SupportCilium: supportCilium,
ProfileEnabled: len(dapFiles) > 0,
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Enable profile mode independently from --dap inputs

ProfileEnabled is currently tied to len(dapFiles) > 0, which means the renderer cannot reproduce clusters where DatadogAgentProfileEnabled is on but no DatadogAgentProfile resources exist. In the real reconciler, that flag still triggers profile reconciliation and applies the default profile path (which adjusts node-agent scheduling overrides), so this shortcut yields different manifests for profile-enabled deployments and can produce incorrect golden baselines even when users intentionally render with zero DAP files.

Useful? React with 👍 / 👎.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 271 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.52%. Comparing base (78490c3) to head (a1adbe6).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/operator-render/render.go 0.00% 106 Missing ⚠️
cmd/operator-render/output.go 0.00% 61 Missing ⚠️
cmd/operator-render/main.go 0.00% 43 Missing ⚠️
cmd/operator-render/collect.go 0.00% 32 Missing ⚠️
cmd/operator-render/sort.go 0.00% 29 Missing ⚠️

❌ Your patch status has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2947      +/-   ##
==========================================
- Coverage   40.91%   40.52%   -0.39%     
==========================================
  Files         324      329       +5     
  Lines       28743    29016     +273     
==========================================
  Hits        11760    11760              
- Misses      16129    16402     +273     
  Partials      854      854              
Flag Coverage Δ
unittests 40.52% <0.00%> (-0.39%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cmd/operator-render/sort.go 0.00% <0.00%> (ø)
cmd/operator-render/collect.go 0.00% <0.00%> (ø)
cmd/operator-render/main.go 0.00% <0.00%> (ø)
cmd/operator-render/output.go 0.00% <0.00%> (ø)
cmd/operator-render/render.go 0.00% <0.00%> (ø)

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78490c3...a1adbe6. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@datadog-datadog-prod-us1
Copy link
Copy Markdown

Code Coverage

Fix all issues with BitsAI

🛑 Gate Violations

🎯 1 Code Coverage issue detected

A Patch coverage percentage gate may be blocking this PR.

Patch coverage: 0.00% (threshold: 80.00%)

ℹ️ Info

🎯 Code Coverage (details)
Patch Coverage: 0.00%
Overall Coverage: 40.63% (-0.39%)

Useful? React with 👍 / 👎

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: a1adbe6 | Docs | Datadog PR Page | Give us feedback!

@drichards-87 drichards-87 self-assigned this Apr 27, 2026
@drichards-87 drichards-87 removed their assignment Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants