Don't include excluded items in ItemBlocks

Signed-off-by: Scott Seago <sseago@redhat.com>
This commit is contained in:
Scott Seago
2025-01-02 17:49:14 -05:00
parent 03d0bd9d22
commit 4b09b63c2d
4 changed files with 43 additions and 20 deletions

View File

@@ -176,7 +176,9 @@ type kubernetesResource struct {
preferredGVR schema.GroupVersionResource
namespace, name, path string
orderedResource bool
inItemBlock bool // set to true during backup processing when added to an ItemBlock
// set to true during backup processing when added to an ItemBlock
// or if the item is excluded from backup.
inItemBlockOrExcluded bool
}
// getItemsFromResourceIdentifiers get the kubernetesResources