Skip to content

Support oomKill, tcpQueueLength features on GKE COS via provider annotation#3011

Merged
levan-m merged 6 commits into
mainfrom
levan-m/cos-provider
Jun 4, 2026
Merged

Support oomKill, tcpQueueLength features on GKE COS via provider annotation#3011
levan-m merged 6 commits into
mainfrom
levan-m/cos-provider

Conversation

@levan-m
Copy link
Copy Markdown
Collaborator

@levan-m levan-m commented May 13, 2026

What does this PR do?

Support oomKill, tcpQueueLength GKE COS provider via annotation (no introspection).

CONTP-1571

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

  1. Provision GKE cluster with COS nodes
  2. Install Operator
  3. Apply DDA with two features enabled.
apiVersion: datadoghq.com/v2alpha1
kind: DatadogAgent
metadata:
  name: datadog-agent
spec:
  global:
    credentials:
      apiSecret:
        secretName: datadog-secret
        keyName: api-key
      appSecret:
        secretName: datadog-secret
        keyName: app-key
    clusterName: cos-test
  features:
    oomKill:
      enabled: true
    tcpQueueLength:
      enabled: true
  1. DS is create but pod creation is error due to failed to generate spec: failed to mkdir "/usr/src": mkdir /usr/src: read-only file system
  2. Add annotation to DDA and reapply
  annotations:
    datadoghq.com/provider: gke-cos
  1. Pod starts successfully.

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

This comment has been minimized.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 13, 2026

Codecov Report

❌ Patch coverage is 14.28571% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 42.88%. Comparing base (bd0f5e2) to head (b9cdaf8).

Files with missing lines Patch % Lines
...controller/datadogagent/feature/oomkill/feature.go 0.00% 5 Missing ⚠️
...ler/datadogagent/feature/tcpqueuelength/feature.go 0.00% 5 Missing ⚠️
internal/controller/datadogagent/profile.go 50.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3011      +/-   ##
==========================================
- Coverage   42.90%   42.88%   -0.02%     
==========================================
  Files         341      341              
  Lines       29403    29417      +14     
==========================================
+ Hits        12614    12616       +2     
- Misses      15965    15976      +11     
- Partials      824      825       +1     
Flag Coverage Δ
unittests 42.88% <14.28%> (-0.02%) ⬇️

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

Files with missing lines Coverage Δ
pkg/kubernetes/provider.go 86.36% <ø> (ø)
internal/controller/datadogagent/profile.go 72.00% <50.00%> (-0.61%) ⬇️
...controller/datadogagent/feature/oomkill/feature.go 73.21% <0.00%> (-7.18%) ⬇️
...ler/datadogagent/feature/tcpqueuelength/feature.go 73.43% <0.00%> (-6.23%) ⬇️

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 bd0f5e2...b9cdaf8. Read the comment docs.

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

Base automatically changed from levan-m/providers-ddai to main June 2, 2026 19:05
@levan-m levan-m marked this pull request as ready for review June 2, 2026 20:22
@levan-m levan-m requested a review from a team June 2, 2026 20:22
@levan-m levan-m requested review from a team as code owners June 2, 2026 20:22
@levan-m levan-m merged commit f49eb24 into main Jun 4, 2026
39 of 40 checks passed
@levan-m levan-m deleted the levan-m/cos-provider branch June 4, 2026 20:04
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