-
Notifications
You must be signed in to change notification settings - Fork 288
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
Added an additional check to make sure etcdadm and capi clusters are available #6806
Conversation
/test eks-anywhere-presubmit |
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6806 +/- ##
==========================================
+ Coverage 71.84% 71.99% +0.14%
==========================================
Files 531 532 +1
Lines 41365 41597 +232
==========================================
+ Hits 29718 29947 +229
+ Misses 9981 9978 -3
- Partials 1666 1672 +6
☔ View full report in Codecov by Sentry. |
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 don't understand how this is possible. What are the circumstances for this happening? It feels peculiar to conditionally update conditions based on the existence of objects we're responsible for creating all in the same algorithm.
When we apply the workload cluster config in the API tests, the controller would attempt to update the status of the workload cluster before the CAPI cluster could be created. In UpdateClusterStatusForControlPlane, controller.GetCAPICluster would return nil and the controller would get stuck in a a cycle of panicking and restarting. Since the controller was always restarting, the webhooks were unreachable. |
Do you mean for the cluster to actually be created or for the Cluster API Cluster object to be submitted to the cluster? |
6e02548
to
0091ce6
Compare
0091ce6
to
5bc1e3f
Compare
…available for workoad cluster
5bc1e3f
to
e9905c9
Compare
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
Description of changes:
We are having an issue in creating workload cluster using the controller if external Etcd is configured on the workload cluster. It used to fail with
failed calling webhook "mutation.vspheremachineconfig.anywhere.amazonaws.com
error. This issue happens because reconciler tries to get the CAPI cluster before the CAPI cluster becomes available for the workload cluster.Added additional checks to make sure CAPI cluster are Etcdadm cluster are available before moving to check if the etcd machines are available or not.
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.