-
Notifications
You must be signed in to change notification settings - Fork 83
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
Stop creation of service entires with dummy endpoints #255
Conversation
5c054e2
to
9b92b41
Compare
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.
The functionality looks good. I think it can be simplified.
admiral/pkg/clusters/handler.go
Outdated
log.Infof(LogFormat+" SE=%s", op, "ServiceEntry", obj.Name, rc.ClusterID, "New SE", obj.Spec.String()) | ||
} else { | ||
//se will be created if endpoints are valid, in case they are not valid se will be created with just valid endpoints | ||
if areEndpointsValid || (!areEndpointsValid && len(validEndpoints) > 0) { |
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.
It would be simpler if we can filter them inline during validation. Log any filtered endpoints in the method itself.
Signed-off-by: vjoshi3 <[email protected]>
Signed-off-by: vjoshi3 <[email protected]>
b824ccd
to
a44f07a
Compare
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
* fix concurrent map iteration and map write causing panic * prevent panics when vs/ds controllers or remote controller is not set for a given cluster (#255) * prevent panics when vs/ds controllers or remote controller is not set for a given cluster * use resource type variable for logs * cover nil controller check when replicating in dependent clusters, and add for all events (add,update,delete) * Removing servicenow agent image * Updating log format Co-authored-by: Anubhav Aeron <[email protected]>
Updates to avoid creation of service entry with dummy endpoints. Include updates to delete existing service entry with only dummy endpoints.