Skip to content

Commit 4d025d3

Browse files
Madhu-1mergify[bot]
authored andcommitted
sidecar: dont copy the metadata
if we deepcopy the metadata during the update operations all the annotations gets removed. Signed-off-by: Madhu Rajanna <[email protected]>
1 parent 44f5d84 commit 4d025d3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

sidecar/internal/csiaddonsnode/csiaddonsnode.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,6 @@ func (mgr *Manager) newCSIAddonsNode(node *csiaddonsv1alpha1.CSIAddonsNode) erro
134134
_, err = controllerutil.CreateOrUpdate(ctx, cli, csiaddonNode, func() error {
135135
// update the resourceVersion
136136
resourceVersion := csiaddonNode.ResourceVersion
137-
node.ObjectMeta.DeepCopyInto(&csiaddonNode.ObjectMeta)
138137
if resourceVersion != "" {
139138
csiaddonNode.ResourceVersion = resourceVersion
140139
}

0 commit comments

Comments
 (0)