-
Notifications
You must be signed in to change notification settings - Fork 33
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
[refactor] GW utils for all types of policies #134
Conversation
a0ad7ca
to
ae2c3fd
Compare
…teways renamed as GatewaysMissingPolicyRef, GatewaysWithValidPolicyRef and GatewaysWithInvalidPolicyRef respectively
7df54dc
to
7688fd1
Compare
3c843da
to
af8814c
Compare
…yRef and GatewaysWithInvalidPolicyRef
af8814c
to
fa82453
Compare
|
||
gwKeys, err := r.TargetedGatewayKeys(ctx, policy.GetTargetRef(), policy.GetNamespace()) | ||
if err != nil { | ||
return nil, err |
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 think we should only return an error here if it's other than not found.
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.
right. On NotFound error, it should return an empty list.
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'll make the change.
Preparation for #126.
RateLimitPolicyReconciler
to the baseTargetRefReconciler
NewGateways
,SameGateways
andLeftGateways
) andGatewayWrapper
type of the Gateway utils topkg/common
GatewayWrapper
type asTargetGateway