Skip to content

Commit

Permalink
Fix vmware-tanzu#6752: add namespace exclude check.
Browse files Browse the repository at this point in the history
Add PSA audit and warn labels.

Signed-off-by: Xun Jiang <jxun@vmware.com>
  • Loading branch information
Xun Jiang authored and kaovilai committed Oct 2, 2023
1 parent b2b7cf5 commit c4f2731
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/6760-blackpiglet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix #6752: add namespace exclude check.
3 changes: 3 additions & 0 deletions pkg/backup/item_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,9 @@ func (r *itemCollector) getResourceItems(log logrus.FieldLogger, gv schema.Group
clusterScoped := !resource.Namespaced
namespacesToList := getNamespacesToList(r.backupRequest.NamespaceIncludesExcludes)

clusterScoped := !resource.Namespaced
namespacesToList := getNamespacesToList(r.backupRequest.NamespaceIncludesExcludes)

// If we get here, we're backing up something other than namespaces
if clusterScoped {
namespacesToList = []string{""}
Expand Down

0 comments on commit c4f2731

Please sign in to comment.