Skip to content

Commit f9a5a25

Browse files
committed
CKS: skip default egress policy check for vpc network offerings
1 parent d160731 commit f9a5a25

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
@@ -473,7 +473,7 @@ private boolean isKubernetesServiceNetworkOfferingConfigured(DataCenter zone, Lo
473473
logger.warn("Network offering: {} does not have necessary services to provision Kubernetes cluster", networkOffering);
474474
return false;
475475
}
476-
if (!networkOffering.isEgressDefaultPolicy()) {
476+
if (!networkOffering.isForVpc() && !networkOffering.isEgressDefaultPolicy()) {
477477
logger.warn("Network offering: {} has egress default policy turned off should be on to provision Kubernetes cluster", networkOffering);
478478
return false;
479479
}

0 commit comments

Comments
 (0)