-
Notifications
You must be signed in to change notification settings - Fork 5
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
Feature/admission controller #189
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
PR Description updated to latest commit (27dc44a) |
PR Review
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Signed-off-by: Amit Schendel <amitschendel@gmail.com>
Type
enhancement, documentation
Description
AdmissionControlData
struct to encapsulate data related to admission control alerts.Changes walkthrough
main.go
Add Admission Controller Mode Support in Main Application
cmd/main.go
command line argument
--mode-admission-controller
.admission controller mode.
execution.
types.go
Define Admission Control Data Structure
pkg/admission/types.go
AdmissionControlData
to hold data related toadmission control alerts.
server.go
Implement Admission Webhook Server
pkg/admission/webhook/server.go
start, handle health checks, and validate requests.
validator.go
Implement Admission Validator Logic
pkg/admission/webhook/validator.go
cluster role bindings.
*.go
Implement Admission Control Alert in Exporters
pkg/exporters/*.go
SendAdmissionControlAlert
method implementation across variousexporter types to handle admission control alerts.
engine_test.go
Update Engine Tests with Admission Control Alert Mock
pkg/engine/engine_test.go
SendAdmissionControlAlert
to theMockExporter
fortesting purposes.
admission-*.yaml
Add Kubernetes Manifests for Admission Controller Deployment
chart/kubecop/templates/admission-*.yaml
including a deployment, service, and validating webhook configuration.
go.mod go.sum
Update Go Module Dependencies
go.mod
go.sum
k8s.io/apiserver
for admission webhook support.