Files
velero/pkg
Christian Schlichtherle 2f19c3158b 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-21 11:50:21 +02:00
..
2026-04-17 15:38:44 +08:00
2026-04-07 07:35:25 +00: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-11-26 14:16:42 +08:00
2026-01-14 17:45:01 +08:00