diff --git a/web/kk-console/src/components/Basic/index.js b/web/kk-console/src/components/Basic/index.js
index 4026e4d99..2f069d04b 100644
--- a/web/kk-console/src/components/Basic/index.js
+++ b/web/kk-console/src/components/Basic/index.js
@@ -1,4 +1,4 @@
-import {Button, Card, Form, Input} from "antd";
+import {Button, Card, Form, Input, Radio, Tooltip} from "antd";
import {useDispatch, useSelector} from "react-redux";
import {
nextStep,
@@ -26,13 +26,11 @@ const Basic = (props) => {
const getMetadata = (configuration) => {
return {
name: configuration.metadata.name,
- registry: configuration.spec.registry.privateRegistry,
- namespace: configuration.spec.registry.namespaceOverride
}
}
const [initValue] = useState(getMetadata(configuration))
-
+ const [inputUserInfo, setInputUserInfo] = useState(false)
const saveMetadata = () => {
const basic = form.getFieldsValue(true)
@@ -41,14 +39,10 @@ const Basic = (props) => {
name: basic.name,
namespace: "kubekey-system"
}
- let registryConfig = {
- privateRegistry: basic.registry !== '' ? basic.registry : '',
- namespaceOverride: basic.namespace !== '' ? basic.namespace : ''
- }
+
dispatch(updateBasic(
{
metadata: metadataConfig,
- registry : registryConfig
}
))
@@ -65,6 +59,80 @@ const Basic = (props) => {
return Promise.reject(new Error('集群' + value + '已存在'));
}
+ const onChangeProduct = () => {
+ const product = form.getFieldsValue(true).managerSoft
+ console.log(product)
+ switch (product) {
+ case "none":
+ setInputUserInfo(false)
+ break
+ default:
+ setInputUserInfo(true)
+ }
+ }
+
+ const userInfo = (inputUserInfo) => {
+ if (inputUserInfo) {
+ return (
+ <>
+
+
+
+
+
+
+
+ ({
+ validator(_, value) {
+ if (!value || getFieldValue('password') === value) {
+ return Promise.resolve();
+ }
+ return Promise.reject(new Error('您两次输入的密码不匹配 !'));
+ },
+ }),
+ ]}
+ >
+
+
+ >
+ )
+ } else {
+ return (
+
+ )
+ }
+
+ }
+
return step === 0 ? (
{
>
-
-
-
-
-
+
+
+
+
+ 无
+
+
+
+
+ KubeSphere
+
+
+
+
+ QKCP
+
+
+
+
+ KSV
+
+
+
+ {userInfo(inputUserInfo)}
+
+
+
+
+
+
diff --git a/web/kk-console/src/components/Results/index.js b/web/kk-console/src/components/Results/index.js
index 5e76b50b4..f25523295 100644
--- a/web/kk-console/src/components/Results/index.js
+++ b/web/kk-console/src/components/Results/index.js
@@ -1,9 +1,12 @@
import React, {useEffect, useState} from 'react'
-import {message, Steps} from "antd";
+import {Button, message, Steps} from "antd";
import CodeMirror from "@uiw/react-codemirror";
import {ViewPlugin} from "@codemirror/view";
import {GetClusterAPI, GetPodLogsApi} from "../../request/api";
import { javascript } from '@codemirror/lang-javascript';
+import {Link} from "react-router-dom";
+import {ReloadOutlined} from "@ant-design/icons";
+import Card from "antd/es/card/Card";
// import {shell} from "@codemirror/legacy-modes/mode/shell";
// import { shell } from '@codemirror/legacy-modes/mode/shell';
// import { StreamLanguage } from '@codemirror/language';
@@ -114,7 +117,20 @@ export default function ShowResults(props) {
}, [count, logs, props.pod])
return (
- <>
+
+
+
+
+
+ } />
+ >
+ }
+ >
{installSteps.map((item)=> (
@@ -138,6 +154,7 @@ export default function ShowResults(props) {
extensions={[scrollBottom]}
/>
- >
+
+
)
}
diff --git a/web/kk-console/src/features/configurations/configurationsSlice.js b/web/kk-console/src/features/configurations/configurationsSlice.js
index a3dcf1279..d50a0b55b 100644
--- a/web/kk-console/src/features/configurations/configurationsSlice.js
+++ b/web/kk-console/src/features/configurations/configurationsSlice.js
@@ -62,7 +62,6 @@ export const configurationsSlice = createSlice({
reducers: {
updateBasic: (state, action) => {
state.cluster.metadata = action.payload.metadata
- state.cluster.spec.registry = action.payload.registry
},
updateHosts: (state, action) => {
state.cluster.spec.hosts = action.payload.hosts
@@ -77,6 +76,7 @@ export const configurationsSlice = createSlice({
},
updateCluster: (state, action) => {
state.cluster.spec.kubernetes = action.payload.kubernetes
+ state.cluster.spec.registry = action.payload.registry
},
updateNetwork: (state, action) => {
state.cluster.spec.network = action.payload.network