Skip to content

Conversation

kaovilai
Copy link
Collaborator

@kaovilai kaovilai commented Sep 3, 2025

This design proposal addresses issue #7492 by modifying Velero's backup
behavior to include all resources from namespaces selected by labelSelector
or orLabelSelectors, equivalent to explicitly listing them in
includedNamespaces.

Key design decisions:

  • Modify existing LabelSelector behavior (breaking change)
  • Precedence: (includedNamespaces ∪ labelSelector ∪ orLabelSelectors) - excludedNamespaces
  • Support full Kubernetes label selector syntax
  • Enhanced logging for namespace selection transparency

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Thank you for contributing to Velero!

Please add a summary of your change

Does your change fix a particular issue?

Design for #7492

Please indicate you've done the following:

@github-actions github-actions bot requested a review from blackpiglet September 3, 2025 18:37
@kaovilai kaovilai changed the title Add design document for namespace selection by label selector Design: namespace selection by label selector Sep 3, 2025
@github-actions github-actions bot added the Area/Design Design Documents label Sep 3, 2025
Copy link

codecov bot commented Sep 3, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.64%. Comparing base (2dbfbc2) to head (3ed43fa).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9223   +/-   ##
=======================================
  Coverage   59.64%   59.64%           
=======================================
  Files         382      382           
  Lines       43960    43960           
=======================================
  Hits        26221    26221           
  Misses      16193    16193           
  Partials     1546     1546           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

kaovilai and others added 2 commits September 10, 2025 14:20
This design proposal addresses issue vmware-tanzu#7492 by modifying Velero's backup
behavior to include all resources from namespaces selected by labelSelector
or orLabelSelectors, equivalent to explicitly listing them in
includedNamespaces.

Key design decisions:
- Modify existing LabelSelector behavior (breaking change)
- Precedence: (includedNamespaces ∪ labelSelector ∪ orLabelSelectors) - excludedNamespaces
- Support full Kubernetes label selector syntax
- Enhanced logging for namespace selection transparency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Tiger Kaovilai <[email protected]>
Remove multi-phase approach as requested - combine all implementation
work into a single comprehensive plan with 6-week timeline.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Tiger Kaovilai <[email protected]>
Clean up markdown formatting issues detected by linter including:
- Add proper blank lines around lists and headings
- Add trailing newline at end of file
- Improve code block formatting consistency

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
Signed-off-by: Tiger Kaovilai <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant