diff --git a/src/pages/AddCluster/HuaweiList/index.js b/src/pages/AddCluster/HuaweiList/index.js
index bba0ffe64..df80ff823 100644
--- a/src/pages/AddCluster/HuaweiList/index.js
+++ b/src/pages/AddCluster/HuaweiList/index.js
@@ -1,6 +1,6 @@
/* eslint-disable no-param-reassign */
/* eslint-disable consistent-return */
-import { Button, Card, Form, Input, Row, Steps } from 'antd';
+import { Button, Card, Form, Input, Row, Steps, Radio } from 'antd';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import Qs from 'qs';
@@ -18,6 +18,7 @@ const FormItem = Form.Item;
const { Step } = Steps;
const dataObj = {
enableHA: true,
+ runtime: 'docker',
gatewayIngressIPs: '',
imageHub: {
enable: false,
@@ -153,6 +154,7 @@ export default class ClusterLink extends PureComponent {
if (err) return;
if (values) {
+ dataObj.runtime = values.runtime || '';
dataObj.gatewayIngressIPs = values.gatewayIngressIPs || '';
dataObj.nodesForGateway.nodes = values.nodesForGateway || [];
// 镜像仓库
@@ -389,6 +391,29 @@ export default class ClusterLink extends PureComponent {
})(
)}
+
+
+
+ 容器运行时:
+
+
+
+ {getFieldDecorator('runtime', {
+ initialValue: 'docker',
+ rules: [
+ { required: true },
+ ]
+ })(
+
+ Docker
+ Containerd
+
+ )}
+
+
diff --git a/src/pages/AddCluster/TencentList/index.js b/src/pages/AddCluster/TencentList/index.js
index 77e0cd613..b3f4a8583 100644
--- a/src/pages/AddCluster/TencentList/index.js
+++ b/src/pages/AddCluster/TencentList/index.js
@@ -1,6 +1,6 @@
/* eslint-disable no-param-reassign */
/* eslint-disable consistent-return */
-import { Button, Card, Form, Input, Row, Steps } from 'antd';
+import { Button, Card, Form, Input, Row, Steps, Radio } from 'antd';
import { connect } from 'dva';
import { routerRedux } from 'dva/router';
import Qs from 'qs';
@@ -18,6 +18,7 @@ const FormItem = Form.Item;
const { Step } = Steps;
const dataObj = {
enableHA: true,
+ runtime: 'docker',
gatewayIngressIPs: '',
imageHub: {
enable: false,
@@ -140,6 +141,7 @@ export default class ClusterLink extends PureComponent {
if (err) return;
if (values) {
+ dataObj.runtime = values.runtime || '';
dataObj.gatewayIngressIPs = values.gatewayIngressIPs || '';
dataObj.nodesForGateway.nodes = values.nodesForGateway || [];
// 镜像仓库
@@ -362,6 +364,29 @@ export default class ClusterLink extends PureComponent {
})(
)}
+
+
+
+ 容器运行时:
+
+
+
+ {getFieldDecorator('runtime', {
+ initialValue: 'docker',
+ rules: [
+ { required: true },
+ ]
+ })(
+
+ Docker
+ Containerd
+
+ )}
+
+
diff --git a/src/services/region.js b/src/services/region.js
index 87f878cf7..663fd45ae 100644
--- a/src/services/region.js
+++ b/src/services/region.js
@@ -137,6 +137,7 @@ export async function fetchHelmCommand(param) {
nodesForChaos: param.data.nodesForChaos,
nodesForGateway: param.data.nodesForGateway,
DockingType:param.data.type,
+ runtime: param.data.runtime,
appui: false,
cloudserver: param.cloudserver ? param.cloudserver : ''
}