-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add the finalizer via webhook when creating resourceFlavor #299
Add the finalizer via webhook when creating resourceFlavor #299
Conversation
ff7dfc1
to
0a5c402
Compare
main.go
Outdated
@@ -177,6 +177,10 @@ func setupControllers(mgr ctrl.Manager, cCache *cache.Cache, queues *queue.Manag | |||
setupLog.Error(err, "unable to create webhook", "webhook", "Workload") | |||
os.Exit(1) | |||
} | |||
if err := (&kueuev1alpha1.ResourceFlavor{}).SetupWebhookWithManager(mgr); err != nil { |
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.
We should have a function in pkg/controller/core that adds all the webhooks
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.
I was intended to add this when adding webhook to clusterQueue, in this pr is fine too.
test/integration/controller/core/resourceflavor_controller_test.go
Outdated
Show resolved
Hide resolved
deaa278
to
95f98ed
Compare
d552944
to
88211b2
Compare
pls squash |
1 similar comment
pls squash |
Signed-off-by: kerthcet <kerthcet@gmail.com>
88211b2
to
05174cb
Compare
squashed |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, kerthcet 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 |
Signed-off-by: kerthcet kerthcet@gmail.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #283
Special notes for your reviewer: