Skip to content

Commit

Permalink
sidecar: dont copy the metadata
Browse files Browse the repository at this point in the history
if we deepcopy the metadata during
the update operations all the annotations
gets removed.

Signed-off-by: Madhu Rajanna <[email protected]>
  • Loading branch information
Madhu-1 committed Nov 12, 2024
1 parent 49482ed commit d1f73b2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sidecar/internal/csiaddonsnode/csiaddonsnode.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func (mgr *Manager) newCSIAddonsNode(node *csiaddonsv1alpha1.CSIAddonsNode) erro
_, err = controllerutil.CreateOrUpdate(ctx, cli, csiaddonNode, func() error {
// update the resourceVersion
resourceVersion := csiaddonNode.ResourceVersion
node.ObjectMeta.DeepCopyInto(&csiaddonNode.ObjectMeta)
if resourceVersion != "" {
csiaddonNode.ResourceVersion = resourceVersion
}
Expand Down

0 comments on commit d1f73b2

Please sign in to comment.