-
Notifications
You must be signed in to change notification settings - Fork 18
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
Add CidrCollection support to route53 controller #47
base: main
Are you sure you want to change the base?
Add CidrCollection support to route53 controller #47
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: gvdhart The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @gvdhart. Thanks for your PR. I'm waiting for a aws-controllers-k8s member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
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.
Thank you @gvdhart !! i did a quick review to the API and the comparison functions, please let me know what you think.
|
||
// Information about changes to a CIDR collection. | ||
// +kubebuilder:validation:Required | ||
Locations []*CIDRCollectionChange `json:"locations"` |
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 to be a [][]CIDRBlocks
? Also wondering if we really need the Action
field.
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 agree, we technically do not need the Action field in the resource definition, however I used the generator to create this field, let me check if I can simplify this part as indeed it would be nicer to have a cidrBlock representation here.
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.
After investigation I do not think that a CIdrBlock type is the best here, there is just a string in it that contains all cidrblocks, not a list of strings. Furthermore I would have to complicate things in the genrator file to get that working. I would prefer to leave it like this.
Sure the Action field is not required as I set it in the code, but i could not manage to have it removed with the generator.
1cfc8f2
to
92a2bff
Compare
/retest |
92a2bff
to
2d9f8d3
Compare
@a-hilaly I think it is good to go! |
/retest |
@gvdhart: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Issue #, if available: NA
Description of changes:
Adding CidrCollection compatibility to the route53 controller
All using a single k8s resource for each AWS cidr Collection.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.