Add include/exclude policy to resources policy

fixes #8610

This commit extends the resources policy, such that user can define
resource include exclude filters in the policy and reuse it in different backups.

Signed-off-by: Daniel Jiang <daniel.jiang@broadcom.com>
This commit is contained in:
Daniel Jiang
2025-07-21 20:48:51 +08:00
parent a410c316d3
commit 249d8f581a
11 changed files with 537 additions and 215 deletions

View File

@@ -32,9 +32,10 @@ Backup Template:
Excluded: <none>
Resources:
Included: *
Excluded: <none>
Cluster-scoped: auto
Included cluster-scoped: <none>
Excluded cluster-scoped: <none>
Included namespace-scoped: *
Excluded namespace-scoped: <none>
Label selector: <none>
@@ -81,9 +82,10 @@ Backup Template:
Excluded: <none>
Resources:
Included: *
Excluded: <none>
Cluster-scoped: auto
Included cluster-scoped: <none>
Excluded cluster-scoped: <none>
Included namespace-scoped: *
Excluded namespace-scoped: <none>
Label selector: <none>
@@ -127,9 +129,10 @@ Backup Template:
Excluded: <none>
Resources:
Included: *
Excluded: <none>
Cluster-scoped: auto
Included cluster-scoped: <none>
Excluded cluster-scoped: <none>
Included namespace-scoped: *
Excluded namespace-scoped: <none>
Label selector: <none>
@@ -174,9 +177,10 @@ Backup Template:
Excluded: <none>
Resources:
Included: *
Excluded: <none>
Cluster-scoped: auto
Included cluster-scoped: <none>
Excluded cluster-scoped: <none>
Included namespace-scoped: *
Excluded namespace-scoped: <none>
Label selector: <none>