Skip to content

support nested SGC config options#3120

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
saad/sgc-type-fix
Jun 10, 2026
Merged

support nested SGC config options#3120
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit into
mainfrom
saad/sgc-type-fix

Conversation

@s-alad

@s-alad s-alad commented Jun 9, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Changes spec.global.secretBackend.config from map[string]string to map[string]apiextensionsv1.JSON, so it can hold the nested config that built-in secret backends require

Motivation

https://datadoghq.atlassian.net/browse/AGENT-16274

Additional Notes

map[string]interface{} as a solution doesn't work, make generate manifests can't build a schema or correct deepcopy for bare interface{}

Minimum Agent Versions

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

  • Agent: v7.70.0+
  • Cluster Agent: v7.70.0+

Describe your test plan

Unit Tests:

  • TestSecretBackendConfigNestedDecode
  • TestNodeAgentComponenGlobalSettings
    Manual:
  • use the operator with sgc secrets that has a nested config and ensure secrets load

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)

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Jun 9, 2026

Copy link
Copy Markdown

Code Coverage

🎯 Code Coverage (details)
Patch Coverage: 100.00%
Overall Coverage: 43.78% (+0.00%)

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

@s-alad s-alad added this to the v1.28.0 milestone Jun 9, 2026
@s-alad
s-alad marked this pull request as ready for review June 9, 2026 13:40
@s-alad
s-alad requested a review from a team June 9, 2026 13:40
@s-alad
s-alad requested a review from a team as a code owner June 9, 2026 13:40
@codecov-commenter

codecov-commenter commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 43.49%. Comparing base (68287b2) to head (f4b3541).

Files with missing lines Patch % Lines
pkg/testutils/builder.go 0.00% 1 Missing ⚠️
pkg/testutils/ddai_builder.go 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3120   +/-   ##
=======================================
  Coverage   43.49%   43.49%           
=======================================
  Files         352      352           
  Lines       30025    30025           
=======================================
  Hits        13058    13058           
  Misses      16095    16095           
  Partials      872      872           
Flag Coverage Δ
unittests 43.49% <0.00%> (ø)

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

Files with missing lines Coverage Δ
pkg/testutils/builder.go 0.00% <0.00%> (ø)
pkg/testutils/ddai_builder.go 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Harness.

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

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

@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: b23a5b7490

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread api/datadoghq/v2alpha1/datadogagent_types.go
@s-alad
s-alad force-pushed the saad/sgc-type-fix branch from ac38641 to f4b3541 Compare June 9, 2026 17:43
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.

4 participants