kyverno: add container-based config discovery support - #24511
Draft
vitkyrka wants to merge 1 commit into
Draft
Conversation
vitkyrka
added a commit
that referenced
this pull request
Jul 10, 2026
Also renames the inherited keda-discovery changelog entries (24459.added in keda/ and datadog_checks_dev/) to this PR's number, since the Check PR changelog CI job flags them as belonging to a different PR while this branch is based on the unmerged vwhitchurch/keda-discovery branch. Environment: Datadog workspace Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 3c32b04 | Docs | Datadog PR Page | Give us feedback! |
vitkyrka
changed the base branch from
vwhitchurch/keda-discovery
to
graphite-base/24511
July 16, 2026 08:50
vitkyrka
force-pushed
the
vwhitchurch/kyverno-discovery
branch
from
July 16, 2026 08:50
23cd8fa to
a1920d3
Compare
vitkyrka
force-pushed
the
graphite-base/24511
branch
from
July 16, 2026 08:50
2c0dc75 to
50cc010
Compare
Contributor
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
vitkyrka
force-pushed
the
vwhitchurch/kyverno-discovery
branch
from
July 16, 2026 08:51
a1920d3 to
f156b2d
Compare
vitkyrka
changed the base branch from
graphite-base/24511
to
vwhitchurch/argo_workflows-discovery
July 16, 2026 08:51
This was referenced Jul 16, 2026
Scopes discovery to the kyverno-admission-controller (image ghcr.io/kyverno/kyverno, port 8000), the integration's namesake component. The background/cleanup/reports controllers use distinct images and are not yet covered. Environment: Datadog workspace Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
vitkyrka
force-pushed
the
vwhitchurch/kyverno-discovery
branch
from
July 16, 2026 08:55
f156b2d to
3c32b04
Compare
Contributor
Validation Report
Run Passed validations (19)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What does this PR do?
Adds container-based config discovery support to kyverno.
Discovery finds the Kyverno controller metrics endpoints using named Kubernetes ports (
metrics-portandmetrics) instead of a numeric port hint.The
ad_identifierstargets somewhat generic image names (background-controller, etc.) so we use a CEL selector to narrow those to Kyverno images.The E2E coverage validates that Kubernetes Autodiscovery finds the four Kyverno controller instances and that generated discovery candidates can probe a Kyverno controller without destabilizing it.
Motivation
https://datadoghq.atlassian.net/browse/DSCVR-527
Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged