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
Most of the logic in `setDefaultProviderParameters` didn't execute if `alreadyAdmitted` is true. However, in the case `alreadyAdmitted` was true and the IngressController's spec had `providerParameters` set, `setDefaultProviderParameters` incorrectly forced the LB type to `Classic`. There is no clear advantage to running `setDefaultProviderParameters` when `alreadyAdmitted` is true. This fix removes `alreadyAdmitted` as a parameter from `setDefaultProviderParameters` and instead prevents it from being invoked entirely when `alreadyAdmitted` is true.
- Loading branch information