Skip to content

Commit

Permalink
fix: dbprovider resource already exists problem (#4560)
Browse files Browse the repository at this point in the history
Signed-off-by: jingyang <3161362058@qq.com>
  • Loading branch information
zjy365 committed Mar 6, 2024
1 parent c921451 commit 1e54b69
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 11 deletions.
10 changes: 5 additions & 5 deletions frontend/providers/dbprovider/src/pages/db/edit/index.tsx
Expand Up @@ -66,18 +66,18 @@ const EditApp = ({ dbName, tabType }: { dbName?: string; tabType?: 'form' | 'yam

const generateYamlList = (data: DBEditType) => {
return [
{
filename: 'cluster.yaml',
value: json2CreateCluster(data)
},
...(isEdit
? []
: [
{
filename: 'account.yaml',
value: json2Account(data)
}
])
]),
{
filename: 'cluster.yaml',
value: json2CreateCluster(data)
}
];
};

Expand Down
12 changes: 9 additions & 3 deletions frontend/providers/kubepanel/public/logo.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions service/license/src/pages/cluster/components/ConfigForm.tsx
Expand Up @@ -62,8 +62,8 @@ export default function CommandForm({
},
k8sVersion: '1.25.6',
podSubnet: '100.64.0.0/10',
serviceSubnet: '100.96.0.0/22',
selfSigned: false,
serviceSubnet: '10.96.0.0/22',
selfSigned: true,
cloudPort: '443',
useImageRegistry: true,
imageRegistry: 'registry.cn-shanghai.aliyuncs.com',
Expand Down Expand Up @@ -132,7 +132,8 @@ export default function CommandForm({
data?.certKeyPath ? ` --key-path=${data?.certKeyPath} ` : '',
data?.ssh.useKey
? ` --ssh-private-key=${data?.ssh.path} `
: ` --ssh-password=${data?.ssh.password} `
: ` --ssh-password=${data?.ssh.password} `,
data?.k8sVersion ? ` --kubernetes-version=${data.k8sVersion} ` : ''
];
const displayCommand = commandParts.filter(Boolean).join('\\\n');
setCopyCommand(displayCommand);
Expand Down

0 comments on commit 1e54b69

Please sign in to comment.