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

Matcher and Webhook Updates #487

Merged
merged 10 commits into from
Jul 25, 2024
Merged

Matcher and Webhook Updates #487

merged 10 commits into from
Jul 25, 2024

Conversation

maurafortino
Copy link
Contributor

  • 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

@@ -47,9 +47,24 @@ type CommonWebhook struct {
logger *zap.Logger
}

func NewMatcher(l Listener, logger *zap.Logger) (matcher Matcher, version int, err error) {
Copy link
Contributor

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

internal/sink/sink.go Outdated Show resolved Hide resolved
internal/sink/matcher.go Outdated Show resolved Hide resolved
internal/sink/sink.go Outdated Show resolved Hide resolved
Copy link
Contributor

@denopink denopink left a 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!

Copy link
Contributor

@denopink denopink left a 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!

Copy link

guardrails bot commented May 20, 2024

⚠️ We detected 1 security issue in this pull request:

Vulnerable Libraries (1)
Severity Details
Medium pkg:golang/github.com/aws/[email protected] - no patch available

More info on how to fix Vulnerable Libraries in Go.


👉 Go to the dashboard for detailed results.

📥 Happy? Share your feedback with us.

caduceus.yaml Outdated Show resolved Hide resolved
@maurafortino maurafortino requested a review from denopink July 24, 2024 15:57
Sink sink.Wrapper
}

func InitializeAncla(lifecycle fx.Lifecycle) fx.Option {
Copy link
Contributor

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 🙂

Copy link
Contributor Author

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

@maurafortino maurafortino merged commit 4017813 into denopink/feat/rewrite Jul 25, 2024
7 of 13 checks passed
@maurafortino maurafortino deleted the clean-up branch July 25, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants