From 37abdbf48545d1b0b22327266af39e85b35a7683 Mon Sep 17 00:00:00 2001 From: Harshil Sanjay Jain Date: Thu, 8 Aug 2024 17:03:25 -0400 Subject: [PATCH] enableMultipleStandardLoadBalancers shouldnt have a default value --- .../containerservice/ClusterLoadBalancerProfile.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/gyro/azure/containerservice/ClusterLoadBalancerProfile.java b/src/main/java/gyro/azure/containerservice/ClusterLoadBalancerProfile.java index f3c5fa8b..431cffbc 100644 --- a/src/main/java/gyro/azure/containerservice/ClusterLoadBalancerProfile.java +++ b/src/main/java/gyro/azure/containerservice/ClusterLoadBalancerProfile.java @@ -66,10 +66,6 @@ public void setEffectiveOutboundIps(List effectiveOutboundIps) { * If set to ``true`` enables multiple standard load balancer. Defaults to ``false``. */ public Boolean getEnableMultipleStandardLoadBalancers() { - if (enableMultipleStandardLoadBalancers == null) { - enableMultipleStandardLoadBalancers = false; - } - return enableMultipleStandardLoadBalancers; } @@ -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());