feat(kubernetes): implement Phase 7 - Real-time updates with Lens Desktop v5.x feature parity (v2) #76

Merged
sarman merged 7 commits from feature/kubernetes-management-v2 into master 2026-06-07 16:52:13 +00:00
2 changed files with 10 additions and 3 deletions
Showing only changes of commit 468a69d89e - Show all commits

View File

@ -72,7 +72,13 @@ pub async fn start_all_resources_watcher(
) -> Result<mpsc::Receiver<serde_json::Value>> {
let (tx, rx) = mpsc::channel(100);
let resources = vec!["pods", "services", "deployments", "replicasets", "daemonsets"];
let resources = vec![
"pods",
"services",
"deployments",
"replicasets",
"daemonsets",
];
for resource_type in resources {
let watcher_tx = tx.clone();
@ -80,7 +86,8 @@ pub async fn start_all_resources_watcher(
let namespace = "default".to_string();
tokio::spawn(async move {
let watcher = Watcher::new(cluster_id, namespace, resource_type.to_string(), watcher_tx);
let watcher =
Watcher::new(cluster_id, namespace, resource_type.to_string(), watcher_tx);
if let Err(e) = watcher.start().await {
tracing::error!("Watcher for {} failed: {}", resource_type, e);
}

View File

@ -87,7 +87,7 @@ export const useKubernetesStore = create<KubernetesState>()((set, get) => ({
namespaces: {},
// Loaded resources tracking
loadedResources: new Set<ResourceType>() as Set<ResourceType>,
loadedResources: new Set<ResourceType>(),
// Terminal sessions
terminalSessions: {},