DaanHoogland commented on code in PR #12806:
URL: https://github.com/apache/cloudstack/pull/12806#discussion_r2927256702
##########
plugins/integrations/kubernetes-service/src/main/java/com/cloud/kubernetes/cluster/actionworkers/KubernetesClusterScaleWorker.java:
##########
@@ -124,10 +124,14 @@ private void
scaleKubernetesClusterIsolatedNetworkRules(final List<Long> cluster
// Remove existing SSH firewall rules
FirewallRule firewallRule = removeSshFirewallRule(publicIp);
+ int existingFirewallRuleSourcePortEnd;
if (firewallRule == null) {
- throw new ManagementServerException("Firewall rule for node SSH
access can't be provisioned");
+ logger.warn("SSH firewall rule not found for Kubernetes cluster:
{}. It may have been manually deleted or modified.",
kubernetesCluster.getName());
+ existingFirewallRuleSourcePortEnd =
CLUSTER_NODES_DEFAULT_START_SSH_PORT + clusterVMIds.size() - 1;
+ } else {
+ existingFirewallRuleSourcePortEnd =
firewallRule.getSourcePortEnd();
}
Review Comment:
new method?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]