-
Notifications
You must be signed in to change notification settings - Fork 575
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 basic unit test for EKS AWSManagedControlPlaneReconciler
#4808
Conversation
/test pull-cluster-api-provider-aws-build-docker |
/test pull-cluster-api-provider-aws-e2e-eks |
This is really helpful @AndiDog, could you please add what all tests have you covered as part of description? It would be helpful in the review. |
@Ankitasw Added some more description, but really it's "just" about making the controller testable and adding a basic test |
Thanks @AndiDog. This is really helpful and as a base it will enable us to improve our test coverage on the EKS side. From my side: /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: richardcase The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
What type of PR is this?
/kind support
What this PR does / why we need it:
The EKS reconciliation was not covered in unit tests at all, making it hard to contribute changes with confidence. So like for
AWSCluster
reconciliation, I added a similar type of test that checks the basic creation of a cluster and the expected AWS API calls.For now, the only test is for
AWSManagedControlPlane creation with managed VPC
, but more can be added more easily after this PR, since I'm making the controller testable.This meant to fix a few small things along the way, such as version parsing which ignored errors or panicked until now.
Checklist:
Release note: