-
Notifications
You must be signed in to change notification settings - Fork 20
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
chore: feedback for @maurafortino 's #587 PR #591
chore: feedback for @maurafortino 's #587 PR #591
Conversation
55e79a2
to
b3a7a34
Compare
b3a7a34
to
4ca4e17
Compare
Went over the code with marua on a slack call. We'll merge this either today or tomorrow morning. |
case *ancla.RegistryV2: | ||
if len(l.Registration.Kafkas) == 0 && len(l.Registration.Webhooks) == 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.
would it make sense to add this to the validation portion of web hook-schema? just thinking about ways to try and clean up the this switch statement
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.
Yeah, I think.
I suggest leaving it here until we successfully move it cleanly
} | ||
if len(wh.ReceiverURLs) == 0 && len(wh.DNSSrvRecord.FQDNs) == 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.
same with this?
} | ||
|
||
transport, err := NewSRVRecordDailer(wh.DNSSrvRecord) |
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 know it was already mentioned but just making a note so we remember to change this to NewSRVRecordDialer
} | ||
|
||
if v2.client != nil { | ||
resp, err = v2.client.Do(req) | ||
} else { |
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.
do we want this else statement? are we not trying to have retry logic for the custom client that we have?
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.
yeah, that's exactly what I want to do. i.e.: use the retry client with a given dailer (the dailer may be custom or be default).
Either of us can do that. If you're busy, I can knock that out tomorrow morning.
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 should be able to work on this
internal/sink/srvRecordDailer.go
Outdated
return d.srvs[i].Priority < d.srvs[j].Priority | ||
}) | ||
default: | ||
return nil, fmt.Errorf("unknwon loadBalancingScheme type: %s", d.dnsSrvRecord.LoadBalancingScheme) |
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.
spelling change: unknown
internal/sink/sink.go
Outdated
} | ||
return nil | ||
|
||
return nil, fmt.Errorf("unknow webhook registry type") |
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.
spelling change: unknown
No description provided.