Skip to content

Commit

Permalink
Cleanup ownerRef on Machine upon pivot
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <[email protected]>
  • Loading branch information
vincepri committed Feb 21, 2019
1 parent f228667 commit 6db6c41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/clusterctl/clusterdeployer/clusterdeployer.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ func pivotNamespace(from, to clusterclient.Client, namespace string) error {
for _, machine := range machines {
// New objects cannot have a specified resource version. Clear it out.
machine.SetResourceVersion("")
machine.SetOwnerReferences(nil)
if err = to.CreateMachineObjects([]*clusterv1.Machine{machine}, namespace); err != nil {
return errors.Wrapf(err, "error moving Machine %q", machine.GetName())
}
Expand Down

0 comments on commit 6db6c41

Please sign in to comment.