-
Notifications
You must be signed in to change notification settings - Fork 19
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
Matcher and Webhook Updates #487
Conversation
maurafortino
commented
Apr 30, 2024
- removed the listener version check out of sender.Update
- added NewMatcher function: checks listener version, returns matcher interface, version and error
- added NewSink function: takes in config, version, id, and logger; returns sink interface
…ion check to matcher
internal/sink/matcher.go
Outdated
@@ -47,9 +47,24 @@ type CommonWebhook struct { | |||
logger *zap.Logger | |||
} | |||
|
|||
func NewMatcher(l Listener, logger *zap.Logger) (matcher Matcher, version int, err 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.
this is more of an artifact from the past, let's take a note to review how loggers are used and passed around in caduceus in general
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 great so far, I just added some suggestions. Keep up the great work!
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.
wonderful, this already feels a lot cleaner. Great job and keep it up!
Vulnerable Libraries (1)
More info on how to fix Vulnerable Libraries in Go. 👉 Go to the dashboard for detailed results. 📥 Happy? Share your feedback with us. |
Sink sink.Wrapper | ||
} | ||
|
||
func InitializeAncla(lifecycle fx.Lifecycle) fx.Option { |
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.
lets move this as a provide.go
file in ancla 🙂
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.
going to work on in another PR