Skip to content
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

fix: ignore inferenceserivce MWC CR for modelmesh #156

Closed

Conversation

zdtsw
Copy link

@zdtsw zdtsw commented Dec 8, 2023

No description provided.

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
@@ -337,7 +337,13 @@ var saPredicates = predicate.Funcs{
// a workaround for 2.5 due to modelmesh-servingruntime.serving.kserve.io keeps updates
var modelMeshwebhookPredicates = predicate.Funcs{
UpdateFunc: func(e event.UpdateEvent) bool {
return e.ObjectNew.GetName() != "modelmesh-servingruntime.serving.kserve.io"
if e.ObjectNew.GetName() == "modelmesh-servingruntime.serving.kserve.io" {
return false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zdtsw Since we do not have any other webhooks for now, lets just ignore all update events

var modelMeshwebhookPredicates = predicate.Funcs{
	UpdateFunc: func(e event.UpdateEvent) bool {
                       return false
}

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we have one webhook from workbench, not sure if that need to be skip?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but ok, i can just set all to be ignored

@zdtsw
Copy link
Author

zdtsw commented Dec 8, 2023

close this one as we changed solution for 293=> #157

@zdtsw zdtsw closed this Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants