Skip to content

Commit 459c23b

Browse files
committed
CKS: Public IP not found for VPC networks
1 parent 587f6fe commit 459c23b

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/actionworkers/KubernetesClusterActionWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ protected IpAddress getVpcTierKubernetesPublicIp(Network network) {
361361
return null;
362362
}
363363
IpAddress address = ipAddressDao.findByUuid(detailsVO.getValue());
364-
if (address == null || network.getVpcId() != address.getVpcId()) {
364+
if (address == null || !Objects.equals(network.getVpcId(), address.getVpcId())) {
365365
logger.warn(String.format("Public IP with ID: %s linked to the Kubernetes cluster: %s is not usable", detailsVO.getValue(), kubernetesCluster.getName()));
366366
return null;
367367
}

0 commit comments

Comments
 (0)