feat: add watch api in cluster

This commit is contained in:
jialin
2025-09-16 11:26:17 +08:00
parent 07ade24ea1
commit deeee70807
34 changed files with 706 additions and 229 deletions
+2 -2
View File
@@ -56,7 +56,7 @@ export const providerList = [
icon: React.cloneElement(icons.Docker, {
style: { color: 'var(--ant-color-primary)' }
}),
group: 'default'
group: 'Self-Managed'
},
{
label: 'Kubernetes',
@@ -66,7 +66,7 @@ export const providerList = [
icon: React.cloneElement(icons.KubernetesOutlined, {
style: { color: 'var(--ant-color-primary)' }
}),
group: 'default'
group: 'Self-Managed'
},
{
label: 'DigitalOcean',
+13 -11
View File
@@ -22,10 +22,21 @@ export interface CredentialListItem {
updated_at: string;
}
export interface NodePoolListItem {
export interface NodePoolFormData {
name: string;
instance_type: string;
os_image: string;
replicas: number;
batch_size: number;
labels: Record<string, string>;
cloud_options: Record<string, any>;
}
export interface NodePoolListItem extends NodePoolFormData {
id: number;
instance_type: string;
replicas: number;
workers: number;
batch_size: number;
labels: Record<string, string>;
cloud_options: Record<string, any>;
@@ -35,20 +46,11 @@ export interface NodePoolListItem {
cluster_id: number;
}
export interface NodePoolFormData {
instance_type: string;
os_image: string;
replicas: number;
batch_size: number;
labels: Record<string, string>;
cloud_options: Record<string, any>;
}
export interface ClusterListItem {
name: string;
display_name: string;
description: string;
provider: string;
provider: ProviderType;
credential_id: number;
zone: string;
region: string;