Skip to content

Commit 596dd6f

Browse files
committed
try
Signed-off-by: Yuji Ito <llamerada.jp@gmail.com>
1 parent 90adab3 commit 596dd6f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

internal/controller/replication.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,13 @@ func (s *SecondaryServer) CreateOrUpdateMantleBackup(
182182
}
183183

184184
backup.Finalizers = backupReceived.Finalizers
185-
backup.Annotations = backupReceived.Annotations
185+
if backup.Annotations == nil {
186+
backup.Annotations = map[string]string{
187+
annotRemoteUID: remoteUIDReceived,
188+
}
189+
} else {
190+
backup.Annotations[annotRemoteUID] = remoteUIDReceived
191+
}
186192
backup.Labels = backupReceived.Labels
187193
backup.Spec = backupReceived.Spec
188194
return nil

0 commit comments

Comments
 (0)