layer1: migrate runtime loops to snapshots step 3

This commit is contained in:
Naeel
2026-04-26 09:33:36 +03:00
parent 1b4c68ff72
commit e7e5cf2688
5 changed files with 36 additions and 8 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ func (pruner *ArchivePruner) getOrphanArchives(ctx context.Context) {
var archiveID string
// get all pkgs from kubernetes
for _, namespace := range utils.DefaultNSResolver().FissionResourceNS {
for _, namespace := range utils.DefaultNSResolver().Snapshot() {
pkgList, err := pruner.crdClient.CoreV1().Packages(namespace).List(ctx, metav1.ListOptions{})
if err != nil {
pruner.logger.Error("error getting package list from kubernetes", zap.Error(err))