Unverified Commit 22be7cf2 authored by gaoyan's avatar gaoyan Committed by GitHub

Refactor cluster model,Fix submit bug (#2332)

* refactor ClusterConfiguration Model
parent 7d966bf8
......@@ -20,6 +20,7 @@
package org.dinky.controller;
import org.dinky.data.annotation.Log;
import org.dinky.data.dto.ClusterConfigurationDTO;
import org.dinky.data.enums.BusinessType;
import org.dinky.data.enums.Status;
import org.dinky.data.model.ClusterConfiguration;
......@@ -29,6 +30,7 @@ import org.dinky.gateway.result.TestResult;
import org.dinky.service.ClusterConfigurationService;
import java.util.List;
import java.util.stream.Collectors;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
......@@ -75,11 +77,10 @@ public class ClusterConfigurationController {
paramType = "body",
required = true,
dataTypeClass = ClusterConfiguration.class)
public Result<Void> saveOrUpdateClusterConfig(@RequestBody ClusterConfiguration clusterConfiguration) {
Integer id = clusterConfiguration.getId();
public Result<Void> saveOrUpdateClusterConfig(@RequestBody ClusterConfigurationDTO clusterConfiguration) {
TestResult testResult = clusterConfigurationService.testGateway(clusterConfiguration);
clusterConfiguration.setIsAvailable(testResult.isAvailable());
if (clusterConfigurationService.saveOrUpdate(clusterConfiguration)) {
if (clusterConfigurationService.saveOrUpdate(clusterConfiguration.toBean())) {
return Result.succeed(Status.SAVE_SUCCESS);
} else {
return Result.failed(Status.SAVE_FAILED);
......@@ -100,8 +101,17 @@ public class ClusterConfigurationController {
dataType = "JsonNode",
paramType = "body",
required = true)
public ProTableResult<ClusterConfiguration> listClusterConfigList(@RequestBody JsonNode para) {
return clusterConfigurationService.selectForProTable(para);
public ProTableResult<ClusterConfigurationDTO> listClusterConfigList(@RequestBody JsonNode para) {
ProTableResult<ClusterConfiguration> result = clusterConfigurationService.selectForProTable(para);
List<ClusterConfigurationDTO> dtoList =
result.getData().stream().map(ClusterConfigurationDTO::fromBean).collect(Collectors.toList());
return ProTableResult.<ClusterConfigurationDTO>builder()
.success(true)
.data(dtoList)
.total(result.getTotal())
.current(result.getCurrent())
.pageSize(result.getPageSize())
.build();
}
/**
......@@ -174,7 +184,7 @@ public class ClusterConfigurationController {
paramType = "body",
required = true,
dataTypeClass = ClusterConfiguration.class)
public Result<Void> testConnect(@RequestBody ClusterConfiguration clusterConfiguration) {
public Result<Void> testConnect(@RequestBody ClusterConfigurationDTO clusterConfiguration) {
TestResult testResult = clusterConfigurationService.testGateway(clusterConfiguration);
if (testResult.isAvailable()) {
return Result.succeed(Status.TEST_CONNECTION_SUCCESS);
......
/*
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.dinky.data.dto;
import org.dinky.data.model.ClusterConfiguration;
import org.dinky.gateway.model.FlinkClusterConfig;
import org.dinky.mybatis.annotation.Save;
import org.dinky.utils.JSONUtil;
import javax.validation.constraints.NotNull;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class ClusterConfigurationDTO {
@TableId(value = "id", type = IdType.AUTO)
@ApiModelProperty(value = "ID", required = true, dataType = "Integer", example = "1", notes = "Primary Key")
private Integer id;
@NotNull(
message = "Name cannot be null",
groups = {Save.class})
@ApiModelProperty(value = "Name", required = true, dataType = "String", example = "Name")
private String name;
@NotNull(
message = "Enabled cannot be null",
groups = {Save.class})
@ApiModelProperty(value = "Enabled", required = true, dataType = "Boolean", example = "true")
private Boolean enabled;
@ApiModelProperty(
value = "type",
required = true,
dataType = "String",
example = "test",
notes = "cluster type, such as: yarn ,k8s-native ,k8s-session")
private String type;
@ApiModelProperty(
value = "configJson",
required = true,
dataType = "String",
example = "test",
notes = "cluster config json")
private FlinkClusterConfig config;
@ApiModelProperty(
value = "isAvailable",
required = true,
dataType = "Boolean",
example = "true",
notes = "cluster is available, 0: not available, 1: available")
private Boolean isAvailable;
@ApiModelProperty(value = "note", required = true, dataType = "String", example = "test", notes = "cluster note")
private String note;
public static ClusterConfigurationDTO fromBean(ClusterConfiguration bean) {
ClusterConfigurationDTO clusterConfigurationDTO = new ClusterConfigurationDTO();
BeanUtil.copyProperties(bean, clusterConfigurationDTO);
clusterConfigurationDTO.setConfig(FlinkClusterConfig.create(bean.getType(), bean.getConfigJson()));
return clusterConfigurationDTO;
}
public ClusterConfiguration toBean() {
ClusterConfiguration clusterConfiguration = new ClusterConfiguration();
BeanUtil.copyProperties(this, clusterConfiguration);
clusterConfiguration.setConfigJson(JSONUtil.toJsonString(this.getConfig()));
return clusterConfiguration;
}
}
......@@ -19,13 +19,10 @@
package org.dinky.data.model;
import org.dinky.gateway.enums.GatewayType;
import org.dinky.gateway.model.FlinkClusterConfig;
import org.dinky.mybatis.model.SuperEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.hutool.json.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
......@@ -73,11 +70,4 @@ public class ClusterConfiguration extends SuperEntity {
@ApiModelProperty(value = "note", required = true, dataType = "String", example = "test", notes = "cluster note")
private String note;
public FlinkClusterConfig getFlinkClusterCfg() {
JSONObject json = new JSONObject(getConfigJson());
FlinkClusterConfig flinkClusterConfig = json.toBean(FlinkClusterConfig.class);
flinkClusterConfig.setType(GatewayType.get(type));
return flinkClusterConfig;
}
}
......@@ -19,6 +19,7 @@
package org.dinky.data.model;
import org.dinky.data.dto.ClusterConfigurationDTO;
import org.dinky.data.dto.JobDataDto;
import java.util.HashMap;
......@@ -47,7 +48,7 @@ public class JobInfoDetail {
private Cluster cluster;
@ApiModelProperty(value = "Cluster Configuration", notes = "Details about the cluster configuration")
private ClusterConfiguration clusterConfiguration;
private ClusterConfigurationDTO clusterConfiguration;
@ApiModelProperty(value = "History", notes = "Details about the history")
private History history;
......
......@@ -23,9 +23,9 @@ import org.dinky.api.FlinkAPI;
import org.dinky.assertion.Asserts;
import org.dinky.context.SpringContextUtils;
import org.dinky.data.constant.FlinkRestResultConstant;
import org.dinky.data.dto.ClusterConfigurationDTO;
import org.dinky.data.dto.JobDataDto;
import org.dinky.data.enums.JobStatus;
import org.dinky.data.model.ClusterConfiguration;
import org.dinky.data.model.JobInfoDetail;
import org.dinky.data.model.JobInstance;
import org.dinky.gateway.Gateway;
......@@ -170,13 +170,13 @@ public class JobRefeshHandler {
*/
private static JobStatus getJobStatus(JobInfoDetail jobInfoDetail) {
ClusterConfiguration clusterCfg = jobInfoDetail.getClusterConfiguration();
ClusterConfigurationDTO clusterCfg = jobInfoDetail.getClusterConfiguration();
if (!Asserts.isNull(clusterCfg)) {
try {
String appId = jobInfoDetail.getCluster().getName();
GatewayConfig gatewayConfig = GatewayConfig.build(clusterCfg.getFlinkClusterCfg());
GatewayConfig gatewayConfig = GatewayConfig.build(clusterCfg.getConfig());
gatewayConfig.getClusterConfig().setAppId(appId);
gatewayConfig
.getFlinkConfig()
......
......@@ -19,6 +19,7 @@
package org.dinky.service;
import org.dinky.data.dto.ClusterConfigurationDTO;
import org.dinky.data.model.ClusterConfiguration;
import org.dinky.gateway.model.FlinkClusterConfig;
import org.dinky.gateway.result.TestResult;
......@@ -39,7 +40,7 @@ public interface ClusterConfigurationService extends ISuperService<ClusterConfig
FlinkClusterConfig getFlinkClusterCfg(Integer id);
TestResult testGateway(ClusterConfiguration clusterConfiguration);
TestResult testGateway(ClusterConfigurationDTO clusterConfiguration);
Boolean modifyClusterConfigStatus(Integer id);
}
......@@ -19,8 +19,10 @@
package org.dinky.service.impl;
import org.dinky.data.dto.ClusterConfigurationDTO;
import org.dinky.data.model.ClusterConfiguration;
import org.dinky.gateway.config.GatewayConfig;
import org.dinky.gateway.enums.GatewayType;
import org.dinky.gateway.model.FlinkClusterConfig;
import org.dinky.gateway.result.TestResult;
import org.dinky.job.JobManager;
......@@ -61,16 +63,15 @@ public class ClusterConfigurationServiceImpl extends SuperServiceImpl<ClusterCon
@Override
public FlinkClusterConfig getFlinkClusterCfg(Integer id) {
ClusterConfiguration clusterConfiguration = this.getClusterConfigById(id);
Assert.notNull(clusterConfiguration, "The clusterConfiguration not exists!");
return clusterConfiguration.getFlinkClusterCfg();
ClusterConfiguration cfg = this.getClusterConfigById(id);
Assert.notNull(cfg, "The clusterConfiguration not exists!");
return FlinkClusterConfig.create(cfg.getType(), cfg.getConfigJson());
}
@Override
public TestResult testGateway(ClusterConfiguration clusterConfiguration) {
FlinkClusterConfig config = clusterConfiguration.getFlinkClusterCfg();
GatewayConfig gatewayConfig = GatewayConfig.build(config);
return JobManager.testGateway(gatewayConfig);
public TestResult testGateway(ClusterConfigurationDTO config) {
config.getConfig().setType(GatewayType.get(config.getType()));
return JobManager.testGateway(GatewayConfig.build(config.getConfig()));
}
/**
......
......@@ -174,17 +174,18 @@ public class ClusterInstanceServiceImpl extends SuperServiceImpl<ClusterInstance
@Override
public Cluster deploySessionCluster(Integer id) {
ClusterConfiguration clusterConfiguration = clusterConfigurationService.getClusterConfigById(id);
if (Asserts.isNull(clusterConfiguration)) {
ClusterConfiguration clusterCfg = clusterConfigurationService.getClusterConfigById(id);
if (Asserts.isNull(clusterCfg)) {
throw new GatewayException("The cluster configuration does not exist.");
}
GatewayConfig gatewayConfig = GatewayConfig.build(clusterConfiguration.getFlinkClusterCfg());
GatewayConfig gatewayConfig =
GatewayConfig.build(FlinkClusterConfig.create(clusterCfg.getType(), clusterCfg.getConfigJson()));
GatewayResult gatewayResult = JobManager.deploySessionCluster(gatewayConfig);
return registersCluster(Cluster.autoRegistersCluster(
gatewayResult.getWebURL().replace("http://", ""),
gatewayResult.getId(),
clusterConfiguration.getName() + "_" + LocalDateTime.now(),
clusterConfiguration.getName() + LocalDateTime.now(),
clusterCfg.getName() + "_" + LocalDateTime.now(),
clusterCfg.getName() + LocalDateTime.now(),
id,
null));
}
......
......@@ -23,6 +23,7 @@ import org.dinky.assertion.Asserts;
import org.dinky.context.TenantContextHolder;
import org.dinky.daemon.task.DaemonFactory;
import org.dinky.daemon.task.DaemonTaskConfig;
import org.dinky.data.dto.ClusterConfigurationDTO;
import org.dinky.data.dto.JobDataDto;
import org.dinky.data.enums.JobStatus;
import org.dinky.data.enums.Status;
......@@ -162,9 +163,9 @@ public class JobInstanceServiceImpl extends SuperServiceImpl<JobInstanceMapper,
history.setConfig(JSONUtil.parseObject(history.getConfigJson()));
jobInfoDetail.setHistory(history);
if (Asserts.isNotNull(history.getClusterConfigurationId())) {
ClusterConfiguration clusterConfigById =
ClusterConfiguration clusterConfig =
clusterConfigurationService.getClusterConfigById(history.getClusterConfigurationId());
jobInfoDetail.setClusterConfiguration(clusterConfigById);
jobInfoDetail.setClusterConfiguration(ClusterConfigurationDTO.fromBean(clusterConfig));
}
JobDataDto jobDataDto = jobHistoryService.getJobHistoryDto(jobInstance.getId());
......
......@@ -22,7 +22,6 @@ package org.dinky.service.impl;
import org.dinky.assertion.Assert;
import org.dinky.assertion.Asserts;
import org.dinky.config.Dialect;
import org.dinky.config.Docker;
import org.dinky.context.RowLevelPermissionsContext;
import org.dinky.context.TenantContextHolder;
import org.dinky.data.constant.CommonConstant;
......@@ -95,7 +94,6 @@ import org.dinky.service.TaskService;
import org.dinky.service.TaskVersionService;
import org.dinky.service.UDFTemplateService;
import org.dinky.service.UserService;
import org.dinky.utils.DockerClientUtils;
import org.dinky.utils.FragmentVariableUtils;
import org.dinky.utils.UDFUtils;
......@@ -246,31 +244,31 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
}
private void loadDocker(Integer taskId, Integer clusterConfigurationId, GatewayConfig gatewayConfig) {
Map<String, Object> dockerConfig = clusterCfgService
.getClusterConfigById(clusterConfigurationId)
.getFlinkClusterCfg()
.getKubernetesConfig()
.getDockerConfig();
if (dockerConfig == null) {
return;
}
String[] params = buildParas(
taskId, dockerConfig.getOrDefault("dinky.remote.addr", "").toString());
gatewayConfig.getAppConfig().setUserJarParas(params);
Docker docker = Docker.build(dockerConfig);
if (docker == null || StringUtils.isBlank(docker.getInstance())) {
return;
}
DockerClientUtils dockerClientUtils = new DockerClientUtils(docker);
String tag = dockerClientUtils.getDocker().getTag();
if (StrUtil.isNotBlank(tag)) {
gatewayConfig.getFlinkConfig().getConfiguration().put("kubernetes.container.image", tag);
}
// Map<String, Object> dockerConfig = clusterCfgService
// .getClusterConfigById(clusterConfigurationId)
// .getFlinkClusterCfg()
// .getKubernetesConfig()
// .getDockerConfig();
//
// if (dockerConfig == null) {
// return;
// }
//
// String[] params = buildParas(
// taskId, dockerConfig.getOrDefault("dinky.remote.addr", "").toString());
//
// gatewayConfig.getAppConfig().setUserJarParas(params);
//
// Docker docker = Docker.build(dockerConfig);
// if (docker == null || StringUtils.isBlank(docker.getInstance())) {
// return;
// }
//
// DockerClientUtils dockerClientUtils = new DockerClientUtils(docker);
// String tag = dockerClientUtils.getDocker().getTag();
// if (StrUtil.isNotBlank(tag)) {
// gatewayConfig.getFlinkConfig().getConfiguration().put("kubernetes.container.image", tag);
// }
}
@Override
......
......@@ -24,6 +24,9 @@ import org.dinky.gateway.config.ClusterConfig;
import org.dinky.gateway.config.FlinkConfig;
import org.dinky.gateway.config.K8sConfig;
import org.dinky.gateway.enums.GatewayType;
import org.dinky.utils.JSONUtil;
import java.util.Optional;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
......@@ -66,4 +69,10 @@ public class FlinkClusterConfig {
dataType = "K8sConfig",
notes = "Configuration settings for Kubernetes (if applicable)")
private K8sConfig kubernetesConfig;
public static FlinkClusterConfig create(String type, String json) {
FlinkClusterConfig flinkClusterConfig = JSONUtil.parseObject(json, FlinkClusterConfig.class);
Optional.ofNullable(flinkClusterConfig).ifPresent(config -> config.setType(GatewayType.get(type)));
return flinkClusterConfig;
}
}
......@@ -145,7 +145,6 @@ export default () => {
*/
const handleSubmit = async (value: Partial<Cluster.Config>) => {
await executeAndCallbackRefresh(async () => {
value.configJson = JSON.stringify(value.configJson);
await handleAddOrUpdate(API_CONSTANTS.CLUSTER_CONFIGURATION, value);
await handleCancel();
});
......@@ -175,7 +174,7 @@ export default () => {
setClusterConfigState((prevState) => ({
...prevState,
editOpen: true,
value: { ...item, configJson: JSON.stringify(item?.configJson ?? {}) }
value: { ...item}
}));
};
......
......@@ -28,7 +28,7 @@ const ApplicationConfig = () => {
<ProFormGroup labelLayout={'inline'}>
<ProFormText
width={'xl'}
name={['configJson', 'appConfig', 'userJarPath']}
name={['config', 'appConfig', 'userJarPath']}
placeholder={l('rc.cc.sqlSubmitJarPathHelp')}
label={l('rc.cc.sqlSubmitJarPath')}
tooltip={l('rc.cc.sqlSubmitJarPathHelp')}
......
......@@ -55,7 +55,7 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
<ProFormText
tooltip={item.tooltip}
key={item.name}
name={['configJson', 'kubernetesConfig', 'configuration', item.name]}
name={['config', 'kubernetesConfig', 'configuration', item.name]}
label={item.label}
width={260}
placeholder={item.placeholder}
......@@ -70,10 +70,10 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
key: 'defaultPodTemplate',
label: <TagAlignCenter>Default Pod Template</TagAlignCenter>,
children: (
<ProFormItem key='dpe' name={['configJson', 'kubernetesConfig', 'podTemplate']}>
<ProFormItem key='dpe' name={['config', 'kubernetesConfig', 'podTemplate']}>
<CodeEdit
{...CodeEditProps}
code={value.configJson?.kubernetesConfig?.podTemplate ?? ''}
code={value.config?.kubernetesConfig?.podTemplate ?? ''}
/>
</ProFormItem>
)
......@@ -82,10 +82,10 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
key: 'JMPodTemplate',
label: <TagAlignCenter>JM Pod Template</TagAlignCenter>,
children: (
<ProFormItem key='jmdpe' name={['configJson', 'kubernetesConfig', 'jmPodTemplate']}>
<ProFormItem key='jmdpe' name={['config', 'kubernetesConfig', 'jmPodTemplate']}>
<CodeEdit
{...CodeEditProps}
code={value.configJson?.kubernetesConfig?.jmPodTemplate ?? ''}
code={value.config?.kubernetesConfig?.jmPodTemplate ?? ''}
/>
</ProFormItem>
)
......@@ -94,10 +94,10 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
key: 'TMPodTemplate',
label: <TagAlignCenter>TM Pod Template</TagAlignCenter>,
children: (
<ProFormItem key='tmdpe' name={['configJson', 'kubernetesConfig', 'tmPodTemplate']}>
<ProFormItem key='tmdpe' name={['config', 'kubernetesConfig', 'tmPodTemplate']}>
<CodeEdit
{...CodeEditProps}
code={value.configJson?.kubernetesConfig?.tmPodTemplate ?? ''}
code={value.config?.kubernetesConfig?.tmPodTemplate ?? ''}
/>
</ProFormItem>
)
......@@ -113,7 +113,7 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
{type && type === ClusterType.KUBERNETES_NATIVE && (
<ProFormSelect
name={[
'configJson',
'config',
'kubernetesConfig',
'configuration',
'kubernetes.rest-service.exposed.type'
......@@ -127,7 +127,7 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
)}
{type && type === ClusterType.KUBERNETES_OPERATOR && (
<ProFormSelect
name={['configJson', 'flinkConfig', 'flinkVersion']}
name={['config', 'flinkConfig', 'flinkVersion']}
label={l('rc.cc.k8sOp.version')}
width={250}
placeholder={l('rc.cc.k8sOp.versionHelp')}
......@@ -137,7 +137,7 @@ const FlinkK8s = (props: { type: string; value: any } & connect) => {
{renderK8sConfig()}
</ProFormGroup>
<ProFormList
name={['configJson', 'flinkConfig', 'flinkConfigList']}
name={['config', 'flinkConfig', 'flinkConfigList']}
copyIconProps={false}
deleteIconProps={{ tooltipText: l('rc.cc.deleteConfig') }}
creatorButtonProps={{
......
......@@ -27,7 +27,7 @@ const HighPriorityConfig = () => {
return FLINK_CONFIG_LIST.map((item) => (
<>
<ProFormText
name={['configJson', 'flinkConfig', 'configuration', item.name]}
name={['config', 'flinkConfig', 'configuration', item.name]}
label={item.label}
width={400}
placeholder={item.placeholder}
......@@ -43,7 +43,7 @@ const HighPriorityConfig = () => {
<ProFormGroup direction={'horizontal'} align={'baseline'}>
{renderHighPriorityConfig()}
<ProFormText
name={['configJson', 'clusterConfig', 'flinkConfigPath']}
name={['config', 'clusterConfig', 'flinkConfigPath']}
label={'Flink Conf Yaml Path'}
width={400}
/>
......
......@@ -39,7 +39,7 @@ const YarnConfig = (props: { flinkConfigOptions: DefaultOptionType[] }) => {
<Divider>{l('rc.cc.hadoopConfig')}</Divider>
<ProFormGroup>
<ProFormText
name={['configJson', 'hadoopConfigPath']}
name={['config', 'hadoopConfigPath']}
label={l('rc.cc.hadoopConfigPath')}
width='md'
rules={[
......@@ -54,7 +54,7 @@ const YarnConfig = (props: { flinkConfigOptions: DefaultOptionType[] }) => {
</ProFormGroup>
<Divider>{l('rc.cc.hadoop.defineConfig')}</Divider>
<ProFormList
name={['configJson', 'hadoopConfigList']}
name={['config', 'hadoopConfigList']}
copyIconProps={false}
deleteIconProps={{
tooltipText: l('rc.cc.deleteConfig')
......@@ -79,7 +79,7 @@ const YarnConfig = (props: { flinkConfigOptions: DefaultOptionType[] }) => {
<Divider>{l('rc.cc.flinkConfig')}</Divider>
<ProFormGroup>
<ProFormText
name={['configJson', 'flinkLibPath']}
name={['config', 'flinkLibPath']}
label={l('rc.cc.libPath')}
width='md'
rules={[{ required: true, message: l('rc.cc.libPathPlaceholder') }]}
......@@ -88,7 +88,7 @@ const YarnConfig = (props: { flinkConfigOptions: DefaultOptionType[] }) => {
/>
<ProFormText
name={['configJson', 'flinkConfigPath']}
name={['config', 'flinkConfigPath']}
label={l('rc.cc.flinkConfigPath')}
width='md'
rules={[
......@@ -104,7 +104,7 @@ const YarnConfig = (props: { flinkConfigOptions: DefaultOptionType[] }) => {
<Divider>{l('rc.cc.flink.defineConfig')}</Divider>
<ProFormList
name={['configJson', 'flinkConfigList']}
name={['config', 'flinkConfigList']}
copyIconProps={false}
deleteIconProps={{
tooltipText: l('rc.cc.deleteConfig')
......
......@@ -85,7 +85,6 @@ declare namespace Cluster {
export type Config = BaseBeanColumns & {
type: string;
config?: any;
configJson: any;
isAvailable?: boolean;
note: string;
};
......
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