Design: namespace selection by label in resource policy#9772
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@kaovilai I think there are some overlaps for these two designs, let's discuss how we are going to handle them. cc @adam-jian-zhang @reasonerjt |
|
Oh hi adam. |
|
hi tiger, |
|
Thank you Adam. From community meeting, it is my understanding that your design will not cover "namespace selection by label" requirement documented in #7492. The requirement states that user can choose namespaces to backup similar to It was suggested to use resource policy for that, hence I retitled the issue in 7492. I will keep my design 9772 here open/draft and try to make it compatible with your design. |
|
@kaovilai , version: v1
namespacedFilterPolicies:
- namespaceLabelSelector: # New to address the use cases for this design
environment: production
excludedNamespaceLabelSelector: # New to address the use cases for this design
skip-selective-backup: "true"
resourceFilters:
- kinds: [ConfigMap, Secret, Deployment]
labelSelector:
app: my-appWhat do you think? |
|
That works! Thank you |
|
@kaovilai, But during the review we all thought it was too complicated. |
Adds design document for extending includeExcludePolicy in ResourcePolicy ConfigMap with includedNamespacesByLabel and excludedNamespacesByLabel fields. Terminology aligned with Fine Grained Backup Filters design (PR velero-io#9783): - Glossary & Abbreviation section - Consistent BackupSpec.Field notation - Cross-references to Fine Grained Backup Filters design - User Perspective section - velero.io/exclude-from-backup=true precedence - namespacedFilterPolicies interaction documentation Fixes velero-io#7492 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Tiger Kaovilai <tkaovila@redhat.com>
107ec98 to
1ef4917
Compare
Summary
includeExcludePolicyin ResourcePolicy configmap withincludedNamespacesByLabelandexcludedNamespacesByLabelfieldsBackupSpecor schedule specsTest plan
Fixes #7492
Note
Responses generated with Claude