-
Notifications
You must be signed in to change notification settings - Fork 261
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
🌱 Reduce cyclomatic complexity of reconcileNetworkComponents #1905
🌱 Reduce cyclomatic complexity of reconcileNetworkComponents #1905
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mdbooth 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 |
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
3581dfa
to
d1e55e0
Compare
/test pull-cluster-api-provider-openstack-e2e-test |
d1e55e0
to
c4f82b2
Compare
@mdbooth I've added little tests to it, but I think we need to:
|
c4f82b2
to
b33a0ca
Compare
Lazily hoping that was a flake without checking: /test pull-cluster-api-provider-openstack-e2e-test |
Testing if our jobs now work in the community prow cluster Update: Looks like it is working 🎉 Sorry for the noice. (It does not matter if this test fails, I just wanted to make sure we could get the devstack up) |
Looks like something related to floating IPs is borked because we run out. Perhaps they're not being deleted, or created in a loop. It's hard to tell, though, because of #1840 |
b33a0ca
to
68bff52
Compare
f9bb7e8
to
196022d
Compare
I think I found the problem from code inspection, although this PR also currently includes #1913 for improved logging just in case. The issue was that we were re-executing floating IP creation on every cluster reconcile when not using an Octavia loadbalancer. |
Yay! Looks like that fixed it. |
This change refactors reconcileNetworkComponents into several smaller logical functions which are easier to read and reason about. It also makes the gocyclo linter happy when making new changes to this code. Co-Authored-By: Emilien Macchi <[email protected]>
196022d
to
268645a
Compare
/hold cancel |
/lgtm |
This change refactors reconcileNetworkComponents into several smaller logical functions which are easier to read and reason about.
It also makes the gocyclo linter happy when making new changes to this code.
/hold