Skip to content
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

fix .status.default when initializing the default vpc #3086

Merged
merged 1 commit into from
Jul 28, 2023

Conversation

zhangzujian
Copy link
Member

@zhangzujian zhangzujian commented Jul 28, 2023

What type of this PR

  • Bug fixes

Which issue(s) this PR fixes:

Fixes occasional incorrect field .status.default of the default vpc.

kube-ovn-controller updates status of cached vpc objects in function initLoadBalancer(). In some scenarios field .status.default of the cached object is false while it's supposed to be true.

WHAT

🤖 Generated by Copilot at 701ad17

Fix controller crash and improve default VPC initialization. This pull request modifies controller.go to handle the default VPC creation and update more robustly and efficiently.

🤖 Generated by Copilot at 701ad17

Oh we are the coders of the sea
And we fix the bugs that make us flee
We heave and we ho and we init the VPC
On the count of three, one, two, three!

HOW

🤖 Generated by Copilot at 701ad17

  • Remove the redundant initialization of the default VPC in the Run function (link)
  • Move the initialization of the default VPC to a later point in the Run function, after the kube client is initialized (link)

@zhangzujian zhangzujian added the bug Something isn't working label Jul 28, 2023
@zhangzujian zhangzujian merged commit 4c1161e into kubeovn:master Jul 28, 2023
58 checks passed
@zhangzujian zhangzujian deleted the fix-vpc-default branch July 28, 2023 14:04
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request Jul 28, 2023
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request Jul 28, 2023
zhangzujian added a commit to zhangzujian/kube-ovn that referenced this pull request Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need backport
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants