From 433bf5f493ec7114288e27ca0679def2e4f41f01 Mon Sep 17 00:00:00 2001 From: Marc Villacorta Date: Mon, 15 Apr 2019 20:00:16 +0200 Subject: [PATCH] Add missing namespace to Get function (#896) --- pkg/controller/machineset/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/machineset/status.go b/pkg/controller/machineset/status.go index c22b19ffb7dd..645d0dbb8c4f 100644 --- a/pkg/controller/machineset/status.go +++ b/pkg/controller/machineset/status.go @@ -112,7 +112,7 @@ func updateMachineSetStatus(c client.Client, ms *v1alpha1.MachineSet, newStatus break } // Update the MachineSet with the latest resource version for the next poll - if getErr = c.Get(context.Background(), client.ObjectKey{Name: ms.Name}, ms); getErr != nil { + if getErr = c.Get(context.Background(), client.ObjectKey{Namespace: ms.Namespace, Name: ms.Name}, ms); getErr != nil { // If the GET fails we can't trust status.Replicas anymore. This error // is bound to be more interesting than the update failure. return nil, getErr