-
Notifications
You must be signed in to change notification settings - Fork 34
Move webhook code to internal/webhook #727
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
Conversation
✅ Deploy Preview for kubernetes-sigs-kmm ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: qbarrand The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #727 +/- ##
==========================================
- Coverage 79.09% 78.40% -0.70%
==========================================
Files 51 49 -2
Lines 5109 3959 -1150
==========================================
- Hits 4041 3104 -937
+ Misses 882 663 -219
- Partials 186 192 +6 ☔ View full report in Codecov by Sentry. |
ad5266f
to
30b1cfc
Compare
30b1cfc
to
1b60a35
Compare
m admission.CustomValidator | ||
} | ||
|
||
func NewManagedClusterModule(logger logr.Logger) *ManagedClusterModuleValidator { |
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.
Lets change the New... function name also to NewManagedClusterModuleValidator
internal/webhook/module.go
Outdated
logger logr.Logger | ||
} | ||
|
||
func NewModule(logger logr.Logger) *ModuleValidator { |
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.
lets change the New function to NewModuleValidator
1b60a35
to
4a12b08
Compare
Remove webhook code from the api{,-hub} packages to avoid depending on controller-runtime there. Implement the new admission.CustomValidator interface as the old webhook.Validator is now deprecated. Bump controller-gen to v0.14.0.
4a12b08
to
ca8fe8f
Compare
/lgtm |
Remove webhook code from the
api{,-hub}
packages to avoid depending on controller-runtime there.Implement the new
admission.CustomValidator
interface as the oldwebhook.Validator
is now deprecated.Bump controller-gen to v0.14.0.
/cc @mresvanis @yevgeny-shnaidman