You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: [Brief description] PVCs aren't cleaned up #375
ownerRefs = []v1.OwnerReference{} // Empty - no garbage collection
// And in operator/internal/services/infrastructure.go:64-68
// Add labels for cleanup:
Labels: map[string]string{
"app": "ambient-workspace",
"agentic-session": pvcName,
"vteam.ambient-code/created-at": time.Now().Format(time.RFC3339),
},
Then add a cleanup mechanism:
Background cleanup controller:
// Add to operator main.go
go cleanupOrphanedPVCs(30 * time.Minute)
func cleanupOrphanedPVCs(interval time.Duration) {
for {
time.Sleep(interval)
// List all ambient-workspace PVCs
// For each PVC, check if corresponding session exists
// If session doesn't exist and PVC is > 24 hours old, delete it
}
}
Activity
Gkrumbach07 commentedon Apr 6, 2026
Closing as part of backlog triage — 2026-04-06