CKS: fix CKS creation on an existing Shared and Routed network (#11735)

This commit is contained in:
Wei Zhou 2025-10-03 11:05:43 +02:00 committed by GitHub
parent ca7138b3bd
commit e12813de49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -381,6 +381,9 @@ public class KubernetesClusterManagerImpl extends ManagerBase implements Kuberne
logger.warn("Unable to find the network with ID: {} passed for the Kubernetes cluster", networkId);
return false;
}
if (isDirectAccess(network)) {
return true;
}
networkOffering = networkOfferingDao.findById(network.getNetworkOfferingId());
if (networkOffering == null) {
logger.warn("Unable to find the network offering of the network: {} ({}) to be used for provisioning Kubernetes cluster", network.getName(), network.getUuid());