Skip to content

Commit

Permalink
Patch Hive ClusterDeployment rather than update it (Azure#3244)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsatam authored Nov 1, 2023
1 parent 9100c81 commit a0cc0ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/hive/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,12 @@ func (hr *clusterManager) ResetCorrelationData(ctx context.Context, doc *api.Ope
return err
}

err = utillog.ResetHiveCorrelationData(cd)
modified := cd.DeepCopy()
err = utillog.ResetHiveCorrelationData(modified)
if err != nil {
return err
}

return hr.hiveClientset.Update(ctx, cd)
return hr.hiveClientset.Patch(ctx, modified, client.MergeFrom(cd))
})
}

0 comments on commit a0cc0ee

Please sign in to comment.