Unverified Commit 3c21f3a2 authored by 高岩's avatar 高岩 Committed by GitHub

bug fix, k8s savepoint failed (#1306)

Co-authored-by: steve <woai1998>
parent 7c79c13a
...@@ -755,7 +755,10 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen ...@@ -755,7 +755,10 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
if (GatewayType.KUBERNETES_APPLICATION.equalsValue(cluster.getType())) { if (GatewayType.KUBERNETES_APPLICATION.equalsValue(cluster.getType())) {
Statement statement = statementService.getById(cluster.getTaskId()); Statement statement = statementService.getById(cluster.getTaskId());
Map<String, Object> clusterConfiguration =
clusterConfigurationService.getGatewayConfig(cluster.getClusterConfigurationId());
Map<String, Object> gatewayConfig = JSONUtil.toMap(statement.getStatement(), String.class, Object.class); Map<String, Object> gatewayConfig = JSONUtil.toMap(statement.getStatement(), String.class, Object.class);
gatewayConfig.putAll(clusterConfiguration);
jobConfig.buildGatewayConfig(gatewayConfig); jobConfig.buildGatewayConfig(gatewayConfig);
jobConfig.getGatewayConfig().getClusterConfig().setAppId(cluster.getName()); jobConfig.getGatewayConfig().getClusterConfig().setAppId(cluster.getName());
useGateway = true; useGateway = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment