Skip to content

Commit cb4713f

Browse files
committed
Merge release branch 4.18 to 4.19
* 4.18: CKS: fix creation on shared network if HA is enabled (#8588)
2 parents 53aa921 + bb820f7 commit cb4713f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/KubernetesClusterManagerImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ private void validateManagedKubernetesClusterCreateParameters(final CreateKubern
828828
if (network == null) {
829829
throw new InvalidParameterValueException(String.format("%s parameter must be specified along with %s parameter", ApiConstants.EXTERNAL_LOAD_BALANCER_IP_ADDRESS, ApiConstants.NETWORK_ID));
830830
}
831-
if (Network.GuestType.Shared.equals(network.getGuestType())) {
831+
if (!Network.GuestType.Shared.equals(network.getGuestType())) {
832832
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()));
833833
}
834834
}

0 commit comments

Comments
 (0)