Skip to content

Gate remote agent registry on vsock by resolved agent version - #3335

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 4 commits into
mainfrom
rahul.kaukuntla/enable-rar-vsock
Aug 7, 2026
Merged

Gate remote agent registry on vsock by resolved agent version#3335
gh-worker-dd-mergequeue-cf854d[bot] merged 4 commits into
mainfrom
rahul.kaukuntla/enable-rar-vsock

Conversation

@rahulkaukuntla

@rahulkaukuntla rahulkaukuntla commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

What does this PR do?

Instead of unconditionally dropping the DD_REMOTE_AGENT_REGISTRY_ENABLED=false override on vsock clusters, only drop it when the node agent's resolved image tag is 7.83+.

Motivation

RAR's AF_VSOCK support (DataDog/datadog-agent#54474) only ships from agent 7.83. Since customers can upgrade the operator and agent versions independently, there's no point at which the operator can assume the agent is 7.83+ — so the override must stay version-gated rather than removed outright, or older agents on vsock clusters would crash-loop.

Describe how you validated your changes

Added test cases covering both below- and at-minimum-version scenarios; go test ./internal/controller/datadogagent/... passes.

RAR gained AF_VSOCK support in DataDog/datadog-agent#54474 (agent 7.83), so the
`DD_REMOTE_AGENT_REGISTRY_ENABLED=false` override forced by `UseVSock` is no
longer needed and can be removed.

Note: rollout to vsock clusters should wait until they're running an agent
build with the vsock fix, otherwise older agents will crash-loop with RAR
enabled.
@rahulkaukuntla
rahulkaukuntla requested a review from a team August 6, 2026 15:05
@rahulkaukuntla rahulkaukuntla added enhancement New feature or request qa/skip-qa labels Aug 6, 2026

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

ℹ️ 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 internal/controller/datadogagent/global/agent.go
@datadog-datadog-prod-us1-2

This comment has been minimized.

Only drop the DD_REMOTE_AGENT_REGISTRY_ENABLED=false override when the
node agent's resolved image tag is 7.83+, since RAR's AF_VSOCK support
(DataDog/datadog-agent#54474) only ships from that version. Operator and
agent versions can be upgraded independently, so the override can't be
dropped unconditionally without risking a crash-loop on older agents.
@rahulkaukuntla rahulkaukuntla changed the title Stop disabling remote agent registry on vsock clusters Gate remote agent registry on vsock by resolved agent version Aug 6, 2026

@Mathew-Estafanous Mathew-Estafanous left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

one small nit, but everything else looks good

Comment thread internal/controller/datadogagent/global/agent.go Outdated
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.

2 participants