Skip to content

Commit

Permalink
Modify namespace filter logic for backup with label selector.
Browse files Browse the repository at this point in the history
Signed-off-by: Xun Jiang <[email protected]>
  • Loading branch information
blackpiglet committed Apr 17, 2024
1 parent b0a8680 commit 976778a
Show file tree
Hide file tree
Showing 5 changed files with 501 additions and 104 deletions.
1 change: 1 addition & 0 deletions changelogs/unreleased/7697-blackpiglet
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Modify namespace filter logic for backup with label selector
6 changes: 0 additions & 6 deletions pkg/backup/backup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4327,10 +4327,6 @@ func TestBackupNamespaces(t *testing.T) {
"resources/namespaces/v1-preferredversion/cluster/ns-1.json",
"resources/deployments.apps/namespaces/ns-1/deploy-1.json",
"resources/deployments.apps/v1-preferredversion/namespaces/ns-1/deploy-1.json",
"resources/namespaces/cluster/ns-2.json",
"resources/namespaces/v1-preferredversion/cluster/ns-2.json",
"resources/namespaces/cluster/ns-3.json",
"resources/namespaces/v1-preferredversion/cluster/ns-3.json",
},
},
{
Expand All @@ -4356,8 +4352,6 @@ func TestBackupNamespaces(t *testing.T) {
"resources/namespaces/v1-preferredversion/cluster/ns-1.json",
"resources/namespaces/cluster/ns-2.json",
"resources/namespaces/v1-preferredversion/cluster/ns-2.json",
"resources/namespaces/cluster/ns-3.json",
"resources/namespaces/v1-preferredversion/cluster/ns-3.json",
"resources/deployments.apps/namespaces/ns-1/deploy-1.json",
"resources/deployments.apps/v1-preferredversion/namespaces/ns-1/deploy-1.json",
"resources/deployments.apps/namespaces/ns-2/deploy-2.json",
Expand Down
Loading

0 comments on commit 976778a

Please sign in to comment.