feat: add k8s cluster resource management module

- Add K8s module with kubeconfig storage in cluster_config table
- Implement resource list APIs for 8 kinds: namespace, deployment, statefulset, service, configmap, pod, pv, pvc
- Add K8sResourceList page with sidebar navigation and resource tables
- Support YAML upload/input dialog for resource creation via dynamic client
- Add kubeconfig settings drawer
- Increase main content width from lg to xl for better table display
- Add navigation link for cluster resources in top bar

🤖 Generated with [Qoder][https://qoder.com]
This commit is contained in:
loveuer
2025-11-12 21:06:14 +08:00
parent dfb6fb7624
commit db28bc0425
11 changed files with 1069 additions and 10 deletions

7
dev.sh
View File

@@ -47,6 +47,11 @@ if ! command -v go &> /dev/null; then
exit 1
fi
if ! go build -o /dev/null .;then
echo -e "${RED}Error: backend can't compile.${NC}"
exit 1
fi
echo -e "${GREEN}Starting backend (Go)...${NC}"
go run main.go &
BACKEND_PID=$!
@@ -66,4 +71,4 @@ echo -e "${YELLOW}Frontend PID: $FRONTEND_PID${NC}"
echo -e "${YELLOW}Press Ctrl+C to stop both services${NC}"
# Wait for both processes
wait $BACKEND_PID $FRONTEND_PID
wait $BACKEND_PID $FRONTEND_PID