-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check whether the namespaces specified in namespace filter exist. #7965
Conversation
1f2117e
to
f646b73
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7965 +/- ##
==========================================
- Coverage 58.83% 58.81% -0.02%
==========================================
Files 345 345
Lines 28795 28796 +1
==========================================
- Hits 16941 16936 -5
- Misses 10425 10430 +5
- Partials 1429 1430 +1 ☔ View full report in Codecov by Sentry. |
ff1b059
to
254e492
Compare
Check whether the namespaces specified in the backup.Spec.IncludeNamespaces exist during backup resource collcetion If not, log error to mark the backup as PartiallyFailed. Signed-off-by: Xun Jiang <[email protected]>
Hi. Can partialFailure be avoided with some parameter? Like ignoreMissingNamespaces: true :) |
Check whether the namespaces specified in the
backup.Spec.IncludeNamespaces
exist during backup resource collection.If not, log an error message to mark the backup as
PartiallyFailed
.Thank you for contributing to Velero!
Please add a summary of your change
Create a backup with a namespace filter, and specify a non-existing namespace in the filter.
The backup fails with a validation error.
This is not an ideal behavior. The preferred behavior should be making the backup as
PartiallyFailed
and continues the backup process.#7928 (comment)
Does your change fix a particular issue?
Fixes #7928
Please indicate you've done the following:
/kind changelog-not-required
as a comment on this pull request.site/content/docs/main
.