Skip to content

Commit

Permalink
fix: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
devthejo committed Jun 20, 2024
1 parent fa7674a commit 01b94c8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/controller/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,8 @@ func updateCluster(dynamicClient *dynamic.DynamicClient, vpa *vpa.VerticalPodAut
return nil, fmt.Errorf("Error creating patch: %s", err.Error())
}

force := true
_, err = dynamicClient.Resource(gvr).Namespace(namespace).Patch(context.TODO(), clusterName, types.MergePatchType, patchBytes, metav1.PatchOptions{
FieldManager: FieldManager,
Force: &force,
})
if err != nil {
return nil, fmt.Errorf("Error applying patch to cluster: %s", err.Error())
Expand Down

0 comments on commit 01b94c8

Please sign in to comment.