Merge release branch 4.18 to 4.19

* 4.18:
  CKS: fix creation on shared network if HA is enabled (#8588)
This commit is contained in:
João Jandre 2024-09-26 08:50:02 -03:00
commit cb4713fabe
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ public class KubernetesClusterManagerImpl extends ManagerBase implements Kuberne
if (network == null) {
throw new InvalidParameterValueException(String.format("%s parameter must be specified along with %s parameter", ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, ApiConstants.NETWORK_ID));
}
if (Network.GuestType.Shared.equals(network.getGuestType())) {
if (!Network.GuestType.Shared.equals(network.getGuestType())) {
throw new InvalidParameterValueException(String.format("%s parameter must be specified along with %s type of network", ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, Network.GuestType.Shared.toString()));
}
}