-
Notifications
You must be signed in to change notification settings - Fork 87
detect existing svc #2295
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
base: main
Are you sure you want to change the base?
detect existing svc #2295
Conversation
| slog.Any("error", err)) | ||
| return err | ||
| } else { | ||
| updated := false |
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.
@ajssmith I believe we need a similar validation here for listeners defined with exposePodsByName=true.
| return s.updateConnectorConfiguredStatus(connector, err) | ||
| } | ||
|
|
||
| func (s *Site) updateListenerStatus(listener *skupperv2alpha1.Listener, err error) error { |
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.
Not a blocker: should be this method called something like updateListenerErrorStatus, given that it is only used in error cases?
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.
Might lean towards treating in a separate issue. There is a need to look at indicating errors back more generally.
c-kruse
left a comment
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.
Looks good to me! Thanks @ajssmith
Prevent the listener resource from overwriting a pre-existing service. Also, remove log message that would be continuously generated sans configuration change.