-
Notifications
You must be signed in to change notification settings - Fork 9
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
refactor: moves the admission-webhook code into pkg/webhook from api #516
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. CI Failure Feedback 🧐
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR:
where Configuration options
See more information about the |
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.
lgtm
User description
What type of PR is this?
Which issue(s) this PR fixes:
#333
What this PR does / why we need it:
pkg/webhook/
Special notes for your reviewer:
Not Available
Additional documentation (e.g. design docs, usage docs, etc.):
Not Available
PR Type
Enhancement, Tests
Description
api/
topkg/webhook/
.pkg/webhook
.Changes walkthrough 📝
16 files
cnset_webhook.go
Remove CNSet webhook from api/core/v1alpha1
api/core/v1alpha1/cnset_webhook.go
directory.
dnset_webhook.go
Remove DNSet webhook from api/core/v1alpha1
api/core/v1alpha1/dnset_webhook.go
directory.
matrixonecluster_webhook.go
Remove MatrixOneCluster webhook from api/core/v1alpha1
api/core/v1alpha1/matrixonecluster_webhook.go
api/core/v1alpha1 directory.
common_helpers.go
Update logging in common_helpers.go
api/core/v1alpha1/common_helpers.go
logset_helpers.go
Add setDefaultRetentionPolicy to LogSetSpec
api/core/v1alpha1/logset_helpers.go
logset_types.go
Add defaultStoreFailureTimeout constant
api/core/v1alpha1/logset_types.go
main.go
Update webhook registration in main.go
cmd/operator/main.go
cnset_webhook.go
Add CNSet webhook implementation
pkg/webhook/cnset_webhook.go
dnset_webhook.go
Add DNSet webhook implementation
pkg/webhook/dnset_webhook.go
logset_webhook.go
Add LogSet webhook implementation
pkg/webhook/logset_webhook.go
matrixonecluster_webhook.go
Add MatrixOneCluster webhook implementation
pkg/webhook/matrixonecluster_webhook.go
directory.
proxy_webhook.go
Add ProxySet webhook implementation
pkg/webhook/proxy_webhook.go
utils.go
Add utility functions for webhooks
pkg/webhook/utils.go
webhook.go
Add centralized webhook registration
pkg/webhook/webhook.go
webui_webhook.go
Add WebUI webhook implementation
pkg/webhook/webui_webhook.go
Makefile
Add envtest setup for unit tests
Makefile
7 files
cnset_webhook_test.go
Add tests for CNSet webhook
pkg/webhook/cnset_webhook_test.go
dnset_webhook_test.go
Add tests for DNSet webhook
pkg/webhook/dnset_webhook_test.go
logset_webhook_test.go
Add tests for LogSet webhook
pkg/webhook/logset_webhook_test.go
matrixonecluster_webhook_test.go
Add tests for MatrixOneCluster webhook
pkg/webhook/matrixonecluster_webhook_test.go
proxy_webhook_test.go
Add tests for ProxySet webhook
pkg/webhook/proxy_webhook_test.go
webhook_suite_test.go
Add test suite setup for webhooks
pkg/webhook/webhook_suite_test.go
matrixonecluster_test.go
Update e2e tests for new webhook constants
test/e2e/matrixonecluster_test.go
2 files
go.mod
Update dependencies for new webhook implementation
go.mod
go.sum
Update dependencies for new webhook implementation
go.sum