Skip to content

Commit

Permalink
fix: install cluster init (goodrain#1329)
Browse files Browse the repository at this point in the history
* fix: install cluster init

* fix: etcd file

---------

Co-authored-by: songyg <[email protected]>
  • Loading branch information
RainBondsongyg and songyg authored Feb 5, 2024
1 parent 0a15936 commit 26a95ab
Show file tree
Hide file tree
Showing 6 changed files with 1,097 additions and 183 deletions.
33 changes: 33 additions & 0 deletions src/components/Cluster/ACKBuyConfig/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,37 @@
li {
line-height: 24px;
}
}
.selectRow{
:global{
.ant-form-explain{
margin-left: 230px;
}
}
}
.panelTitle{
width: 200px;
display: inline-block;
font-size: 16px;
font-weight: 600;
}
.panelSpan{
width: 540px;
display: inline-block;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: -7px;
font-size: 14px;
color: #8d8d8d;
}
.spanList{
display: inline-block;
width: 340px;
margin-top: 4px;
margin-left: 20px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: -7px;
}
9 changes: 9 additions & 0 deletions src/components/Cluster/RKEClusterAdd/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,15 @@ export default class RKEClusterConfig extends PureComponent {
const { getFieldValue } = form;
const info = {};
const yamls = getFieldValue('yamls') || yamlVal;
const ipArr = dataSource.map(item => {
return {
ip: item.ip,
internalIP: item.internalIP,
}
});
const jsonString = JSON.stringify(ipArr);
// 使用localStorage存储JSON字符串
window.localStorage.setItem("ipAddresses", jsonString);
if (yamls || (dataSource && dataSource.length > 0)) {
if (key === '2') {
info.nodes = dataSource;
Expand Down
Loading

0 comments on commit 26a95ab

Please sign in to comment.