-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCPBUGS-43692: Fix LB Type Defaulting with ProviderParameters Set
In the case that `alreadyAdmitted` was true and the IngressController's spec had `providerParameters` set, `setDefaultProviderParameters` incorrectly forced the LB type to `Classic`. This fix removes `alreadyAdmitted` as a parameter from `setDefaultProviderParameters` and completely prevents it from being invoked when `alreadyAdmitted`, preventing the update of defaulted values after an IngressController has been admitted. Previously, `setDefaultProviderParameters` always ensured that `specLB.ProviderParameters.AWS` was initialized. Now that the function is conditionally invoked, an additional nil check has been added to handle cases when it's not called. An unit test has been added for this scenario to prevent regression.
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 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
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