feat(VPCEndpointService): add custom resource and allowedPrincipals functionality#172
Conversation
|
Hi @marcdavoli. 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. DetailsInstructions 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 |
…vice)/add-custom-resource
allowPrincipals and verifyPrivateDnsName functionality
allowPrincipals and verifyPrivateDnsName functionalityallowPrincipals functionality
a-hilaly
left a comment
There was a problem hiding this comment.
Thank you, very much! i have few comments in-line
| go_version: go1.21.5 | ||
| version: v0.28.0 | ||
| api_directory_checksum: d452bf19bfd1496aacdc215bf7cc9ea86c55c122 | ||
| version: 994d9ab |
There was a problem hiding this comment.
Can you generate this file using v0.28.0 tag please? git pull --all --tags should help i beleive
There was a problem hiding this comment.
I regen'd but I used the main branch version, because the v0.28.0 tag does not seem to allow me to use aws_sdk_go_version: v1.44.93 and that comes with a bunch of unwanted changes.
| nlb = NetworkLoadBalancer("vpc-ep-service-test") | ||
| nlb.bootstrap() |
There was a problem hiding this comment.
Ideally you want to set this in tests/service_bootstrap.py and service_cleanup.py, same for L92
| _, deleted = k8s.delete_custom_resource(ref, 3, 10) | ||
| assert deleted |
There was a problem hiding this comment.
We might wanna call the validator after this to assert that VPCESC is indeeded deleted from AWS
There was a problem hiding this comment.
We do this a little lower at L136, in def test_vpc_endpoint_service_configuration_create_delete function.
Co-authored-by: Amine <hilalyamine@gmail.com>
Co-authored-by: Amine <hilalyamine@gmail.com>
Co-authored-by: Amine <hilalyamine@gmail.com>
a-hilaly
left a comment
There was a problem hiding this comment.
Thank you very much, sir!
/approve
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: a-hilaly, marcdavoli The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
… functionality (aws-controllers-k8s#172) Related to: - aws-controllers-k8s/community#1711 Description of changes: This is the continuation of PR aws-controllers-k8s#134 (Credit to @ib-ak !). This PR: - Adds the `VPCEndpointService` custom resource from the code-generator - Adds the field `spec.allowedPrincipals` of type `[]string`, which allows the user to specify a list of ARNs to share the VPC Endpoint Service with. Any Principals added to this list will have the VPC Endpoint Service shared with them. This field also ensures that Principals that are removed from the list have the VPC Endpoint Service share removed. - Tests are added for creation/deletion and for adding/deleting Principals to the Allowed List By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Merged PRs since last release: - aws-controllers-k8s#167 - aws-controllers-k8s#168 - aws-controllers-k8s#172 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Related to:
Description of changes:
This is the continuation of PR #134 (Credit to @ib-ak !).
This PR:
VPCEndpointServicecustom resource from the code-generatorspec.allowedPrincipalsof type[]string, which allows the user to specify a list of ARNs to share the VPC Endpoint Service with. Any Principals added to this list will have the VPC Endpoint Service shared with them. This field also ensures that Principals that are removed from the list have the VPC Endpoint Service share removed.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.