chore: 同步前端组件更新 (K8s/Agent/Monitor 相关)

This commit is contained in:
attacker committed 2026-06-26 15:49:31 +00:00
1 parent 09d3f5b6e8
commit 0535f30c87
20 files changed
+42 -5

No files matched your search

+1
View File
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// js-yaml 类型声明兜底
// 项目直接依赖的 js-yaml 包未自带 .d.ts,此处给出最小声明,避免 TS7016。
// 如后续安装 @types/js-yaml,可删除本文件。
+17
View File
@@ -240,6 +240,23 @@ export interface K8sClusterComparison {
}>;
}
// ===== K8s Manifest(可视化编辑器使用的通用 manifest 类型)=====
export interface K8sManifest {
apiVersion?: string;
kind?: string;
metadata: {
name?: string;
namespace?: string;
labels?: Record<string, string>;
annotations?: Record<string, string>;
[key: string]: unknown;
};
spec?: Record<string, unknown>;
data?: Record<string, string>;
type?: string;
[key: string]: unknown;
}
// ===== 通用 YAML 响应 =====
export interface K8sYamlResponse {
yaml: string;