feat: set default cluster

This commit is contained in:
jialin
2025-12-23 20:54:16 +08:00
parent 530e8f7537
commit 1b661bb8cd
17 changed files with 102 additions and 14 deletions
@@ -112,6 +112,11 @@ export const clusterActionList = [
locale: true,
icon: icons.Catalog1
},
{
key: 'isDefault',
label: 'clusters.form.setDefault',
icon: icons.StarOutlined
},
{
key: 'delete',
label: 'common.button.delete',
@@ -52,6 +52,7 @@ export interface NodePoolListItem extends NodePoolFormData {
export interface ClusterListItem {
name: string;
display_name: string;
is_default: boolean;
description: string;
worker_config: Record<string, any>;
provider: ProviderType;
@@ -72,6 +73,7 @@ export interface ClusterFormData {
name: string;
description: string;
provider: ProviderType;
is_default?: boolean;
credential_id: number;
zone: string;
region: string;