Skip to content

Commit 9ba46ac

Browse files
weizhouapachedhslove
authored andcommitted
CKS: fix CKS creation on an existing Shared and Routed network (apache#11735)
1 parent 18bfbe6 commit 9ba46ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,9 @@ private boolean isKubernetesServiceNetworkOfferingConfigured(DataCenter zone, Lo
430430
logger.warn("Unable to find the network with ID: {} passed for the Kubernetes cluster", networkId);
431431
return false;
432432
}
433+
if (isDirectAccess(network)) {
434+
return true;
435+
}
433436
networkOffering = networkOfferingDao.findById(network.getNetworkOfferingId());
434437
if (networkOffering == null) {
435438
logger.warn("Unable to find the network offering of the network: {} ({}) to be used for provisioning Kubernetes cluster", network.getName(), network.getUuid());

0 commit comments

Comments
 (0)