-
Notifications
You must be signed in to change notification settings - Fork 338
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
Various service fixes #1839
Various service fixes #1839
Conversation
@dave-tucker @dcbw @danwinship PTAL |
/hold |
@@ -119,7 +119,13 @@ func (l *localPortWatcher) AddService(svc *kapi.Service) { | |||
} | |||
|
|||
func (l *localPortWatcher) UpdateService(old, new *kapi.Service) { | |||
if reflect.DeepEqual(new.Spec, old.Spec) { | |||
if reflect.DeepEqual(new.Spec.Ports, old.Spec.Ports) && |
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....
But just a though. Could we move this check up to gateway.AddService
?
Then we'd only need to do it once, and not have it done in multiple places?
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 thought about that, but I saw other handlers have different checks like look at port claim watcher:
if reflect.DeepEqual(old.Spec.ExternalIPs, new.Spec.ExternalIPs) && reflect.DeepEqual(old.Spec.Ports, new.Spec.Ports) {
return
}
Code was accidentally doing an add for localPortWatcher when it should be deleting. Also, the comparison for if a service needs update was insufficient. Changed it to use the same check as ovnkube-master uses for services. Note, a separate commit will be coming to fix shared gw mode. Signed-off-by: Tim Rozet <trozet@redhat.com>
ba2204e
to
b93b52e
Compare
Tested it locally and now I'm able to reach the lb ingress service. /hold cancel |
/retest |
/lgtm |
OCPBUGS-17731: move clearInitialNodeNetworkUnavailableCondition to clustermanager
Code was accidentally doing an add for localPortWatcher when it should
be deleting. Also, the comparison for if a service needs update was
insufficient. Changed it to use the same check as ovnkube-master uses
for services.
Note, a separate commit will be coming to fix shared gw mode.
Signed-off-by: Tim Rozet trozet@redhat.com