[CONTP-1598] Add GKE Autopilot e2e test#3158
Conversation
|
🎯 Code Coverage (details) 🔗 Commit SHA: 68d2de1 | Docs | Datadog PR Page | Give us feedback! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3158 +/- ##
=======================================
Coverage 44.03% 44.03%
=======================================
Files 377 377
Lines 30713 30713
=======================================
Hits 13525 13525
Misses 16300 16300
Partials 888 888
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
88326dd to
5563b55
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c9c702631d
ℹ️ 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".
|
The backport to To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-v1.29 v1.29
# Navigate to the new working tree
cd .worktrees/backport-v1.29
# Create a new branch
git switch --create backport-3158-to-v1.29
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 e951e9dd28ef2c70913d215e941f747fdf63690b
# Push it to GitHub
git push --set-upstream origin backport-3158-to-v1.29
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-v1.29Then, create a pull request where the |
* Add GKE Autopilot e2e test * Run GKE Autopilot operator smoke test * Re-enable GKE Autopilot agent validation * Add debugging * Use GCR registry for Autopilot agent pods * Validate Autopilot payloads without pod exec * Revert "Add debugging" This reverts commit 07d5384. * Revert "Use GCR registry for Autopilot agent pods" This reverts commit 6edbc12.
What does this PR do?
Adds a manually triggered GKE Autopilot E2E test path for the Datadog Operator.
The change introduces:
datadog-agente2e framework GCP/GKE resourcesexperimental.agent.datadoghq.com/autopilot: "true", log collection withcontainerCollectAll, and NPM enabledTestGKEAutopilotSuitevalidating the operator, node agent, cluster agent, system-probe container presence, and fakeintake ingestion for Kubernetes metrics, logs, and NPM connection payloadsmake e2e-gke-autopilot-teststargetMotivation
We already exercise the operator on kind, but GKE Autopilot has provider-specific constraints around privileged workloads, host paths, image allowlists, and pod connectivity. This adds a CI entry point for validating the operator's Autopilot path against real GKE Autopilot infrastructure before wiring it into release branch/tag automation.
Additional Notes
This job is manual-only for now. Release branch/tag automation can be added once the job is stable.
The CI setup follows the existing
datadog-agentandhelm-chartse2e patterns:Minimum Agent Versions
No minimum runtime Agent or Cluster Agent version change. This is test/CI coverage only.
Describe your test plan
Manual CI validation:
Local validation:
go test ./internal/controller/datadogagent/experimental -count=1go test ./internal/controller/datadogagent -run Test_AutopilotOverrides -count=1cd test/e2e && GOWORK=off go test ./tests/k8s_suite -run '^$' -count=1 --tags=e2emake lint-e2eChecklist
bug,enhancement,refactoring,documentation,tooling, and/ordependenciesqa/skip-qalabel