chore: create cluster ux

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 55b0a20a4a
commit 62dbd18ef8
26 changed files with 690 additions and 392 deletions
@@ -59,3 +59,12 @@ export const ProviderLabelMap = {
[ProviderValueMap.DigitalOcean]: 'Digital Ocean',
[ProviderValueMap.Custom]: 'Custom'
};
export const generateRegisterCommand = (params: {
server: string;
clusterId: number;
registrationToken: string;
}) => {
return `curl -k -L '${params.server}/v2/clusters/${params.clusterId}/manifests' \\
--header 'Authorization: Bearer ${params.registrationToken}'`;
};