add infrastructure resource YAML viewer and fix PVC visibility
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-14 13:36:13 +09:00
parent 8ac1047295
commit 47dc9730e1
2 changed files with 71 additions and 19 deletions
+6
View File
@@ -66,6 +66,12 @@ export function loadRuntimeResources(namespace: string) {
return apiRequest<RuntimeResourceResponse>(`/apps/runtime-namespaces/${encodeURIComponent(namespace)}/resources`);
}
export function loadRuntimeResourceYaml(namespace: string, kind: string, name: string) {
return apiRequest<{ namespace: string; kind: string; name: string; yaml: string }>(
`/apps/runtime-namespaces/${encodeURIComponent(namespace)}/resources/${encodeURIComponent(kind)}/${encodeURIComponent(name)}/yaml`
);
}
export function loadRuntimePodMetrics(namespace?: string) {
const query = namespace ? `?namespace=${encodeURIComponent(namespace)}` : '';
return apiRequest<RuntimePodMetric[]>(`/runtime/metrics/pods${query}`);