Skip to content

Commit

Permalink
enableMultipleStandardLoadBalancers shouldnt have a default value
Browse files Browse the repository at this point in the history
  • Loading branch information
harjain99 committed Aug 8, 2024
1 parent 6255e9e commit 37abdbf
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@ public void setEffectiveOutboundIps(List<String> effectiveOutboundIps) {
* If set to ``true`` enables multiple standard load balancer. Defaults to ``false``.
*/
public Boolean getEnableMultipleStandardLoadBalancers() {
if (enableMultipleStandardLoadBalancers == null) {
enableMultipleStandardLoadBalancers = false;
}

return enableMultipleStandardLoadBalancers;
}

Expand Down Expand Up @@ -171,7 +167,9 @@ protected ManagedClusterLoadBalancerProfile toClusterLoadBalancerProfile() {
profile.withAllocatedOutboundPorts(getAllocatedOutboundPorts());
}

profile.withEnableMultipleStandardLoadBalancers(getEnableMultipleStandardLoadBalancers());
if (getEnableMultipleStandardLoadBalancers() != null) {
profile.withEnableMultipleStandardLoadBalancers(getEnableMultipleStandardLoadBalancers());
}

if (getIdleTimeoutInMinutes() != null) {
profile.withIdleTimeoutInMinutes(getIdleTimeoutInMinutes());
Expand Down

0 comments on commit 37abdbf

Please sign in to comment.