mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-08-15 11:46:06 +00:00
Increment logging for item backupper (#1904)
Signed-off-by: Christopher Phillips <cphillips918@gmail.com>
This commit is contained in:
committed by
KubeKween
parent
2d845683a2
commit
ca6c0a5a3d
@@ -0,0 +1 @@
|
||||
Add check to update resource field during backupItem
|
||||
@@ -119,9 +119,8 @@ func (ib *defaultItemBackupper) backupItem(logger logrus.FieldLogger, obj runtim
|
||||
name := metadata.GetName()
|
||||
|
||||
log := logger.WithField("name", name)
|
||||
if namespace != "" {
|
||||
log = log.WithField("namespace", namespace)
|
||||
}
|
||||
log = log.WithField("resource", groupResource)
|
||||
log = log.WithField("namespace", namespace)
|
||||
|
||||
if metadata.GetLabels()["velero.io/exclude-from-backup"] == "true" {
|
||||
log.Info("Excluding item because it has label velero.io/exclude-from-backup=true")
|
||||
|
||||
Reference in New Issue
Block a user