Files
velero/pkg
Christian SchlichtherleandLyndon-Li 2309e98e86 Also skip snapshot-info CM when DataUpload has no owner label
Per review feedback on #9791, the previous revision still let a
DataUpload with an empty velero.io/backup-name label fall through to
genConfigmap, creating a ConfigMap that deleteMovedSnapshots can never
match back to a snapshot. The CM is useless and only adds etcd churn.

Treat the missing-label case the same way as the foreign-owner case:
warn and skip the ConfigMap creation. Use a distinct warn message so
operators can tell the two misconfiguration classes apart in logs
(missing-label vs. owner mismatch from a captured velero namespace).

Test for the missing-label case is updated to assert no ConfigMap is
created and a warn is emitted. The warn assertion is generalized to
match the per-case message substring instead of a fixed string.

Signed-off-by: Christian Schlichtherle <christian@schlichtherle.de>
2026-05-22 15:22:00 +08:00
..
2025-07-22 15:56:04 +08:00
2023-04-16 12:49:55 -04:00
2025-12-31 15:42:14 +08:00
2025-12-18 14:18:04 +08:00
2025-11-26 14:16:42 +08:00
2026-01-14 17:45:01 +08:00
2026-03-16 13:54:57 +08:00