forked from openshift/assisted-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release-ocm-2.8] MGMT-15306: Fix UpdateCluster for requests that inc…
…lude VIPS and UMA (openshift#5554) This is a combination of 2 commits. This is the 1st commit message: MGMT-14416: VipDhcpAllocation from update params should take precedence (openshift#5209) This change fixes a case where UserManagedNetworking and VipDhcpAllocation are being changed at the same API update. The ValidateClusterUpdateVIPAddresses func will now use VipDhcpAllocation from update params, if relevant, before taking the DB cluster VipDhcpAllocation into account. Additionally, an additional error surfaced while fixing the aforementioned issue, displaying a "User Managed Networking cannot be set with API VIP" to the user. This change will also handle such a scenario by clearing up API and Ingress VIPs that were set by DHCP, in case the user switched to 'User Managed Networking'. This is the commit message #2: MGMT-15306: Fix UpdateCluster for requests that include VIPS and UMA (openshift#5547) This fix handles cluster updates that patch UMN and VIPs at the same request. There was an issue in which the code overrode an empty VIPs array (which is how VIPs should get deleted) with a nil, indicating no update to this field. This change also includes tests that validate those exact scenarios.
- Loading branch information
Nir Magnezi
authored
Oct 17, 2023
1 parent
d318938
commit 32621ea
Showing
2 changed files
with
277 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.