-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CONTP-519] Support k8s admin events in operator #1575
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1575 +/- ##
==========================================
- Coverage 48.66% 48.65% -0.01%
==========================================
Files 226 226
Lines 20370 20385 +15
==========================================
+ Hits 9913 9919 +6
- Misses 9940 9947 +7
- Partials 517 519 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
|
43fbc46
to
d0c213b
Compare
@@ -69,6 +71,10 @@ type AgentSidecarInjectionConfig struct { | |||
profiles []*v2alpha1.Profile | |||
} | |||
|
|||
type KubernetesAdmissionEventConfig struct { | |||
enabled bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created struct for k8s admin event config bc there is potential future use case for users to customize the feature such as having more control in which events are recorded
What does this PR do?
Adds support for the Kubernetes Admission Events configuration in the Operator.
Motivation
Allow customers to enabled the feature using the Operator
Additional Notes
N/A
Minimum Agent Versions
Describe your test plan
Load up the operator and apply the following agent configuration
k apply -f datadog-agent.yaml
Note: depending on when you test this you may need to either get a custom cluster agent image build, one of the nightly image build tags, the release candidate image tag (late Dec), or utilize the officially published 7.62.0 image in late Jan. Eg.
Then connect to the cluster agent and check for the status of the kubernetesAdmissionEvents webhook.
Checklist
bug
,enhancement
,refactoring
,documentation
,tooling
, and/ordependencies
qa/skip-qa
label