Open phoenix-bjoern opened 3 days ago
It seems the behavior was changed in https://github.com/vmware-tanzu/velero/issues/7431 by @ywk253100. While I agree that there should be some failure reporting if "--include-namespaces" references namespaces which do not exist, I don't agree that scheduled backups should be skipped entirely.
This behavior is dangerous as the backup could be skipped without being recognized. IMHO the backup should be executed and the status should become PartiallyFailed
instead. This will backup existing items and report that some items (like the namespaces which have been declared to be backed up) were missing.
Ignoring this being in a schedule, has velero ever claimed that includedNamespaces can include namespaces that do not exists?
If we ever implement wildcard/regex for namespaces to include https://github.com/vmware-tanzu/velero/issues/1874 then perhaps you could define that regex which I would expect would not fail a backup if no namespace exists.
@kaovilai Velero doesn't support the wildcard or regular expression in the namespace filter parameters.
@phoenix-bjoern There are some issues similar to this topic, and some requests fail the backup on nonexisting namespaces, and some requests are identical to yours.
@kaovilai Velero doesn't support the wildcard or regular expression in the namespace filter parameters.
Right, referring to potential future implementation. 🤞
What steps did you take and what happened: Create a schedule and include a non-existing namespace:
What did you expect to happen:
Velero before v1.14.0 executed the backup without complaint. Velero v1.14.0 stops the scheduled backup instantly and sets the status
FailedValidation
instead of executing the backup and e.g. setting thePartiallyFailed
status. This new behavior is dangerous (or even critical?) as scheduled backups become fragile and stop working as soon as a defined namespace doesn't exist anymore.