We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90adab3 commit 596dd6fCopy full SHA for 596dd6f
1 file changed
internal/controller/replication.go
@@ -182,7 +182,13 @@ func (s *SecondaryServer) CreateOrUpdateMantleBackup(
182
}
183
184
backup.Finalizers = backupReceived.Finalizers
185
- backup.Annotations = backupReceived.Annotations
+ if backup.Annotations == nil {
186
+ backup.Annotations = map[string]string{
187
+ annotRemoteUID: remoteUIDReceived,
188
+ }
189
+ } else {
190
+ backup.Annotations[annotRemoteUID] = remoteUIDReceived
191
192
backup.Labels = backupReceived.Labels
193
backup.Spec = backupReceived.Spec
194
return nil
0 commit comments