Skip to content

Commit

Permalink
Add missing namespace to Get function (kubernetes-sigs#896)
Browse files Browse the repository at this point in the history
  • Loading branch information
h0tbird authored and detiber committed May 2, 2019
1 parent 15db8ec commit 433bf5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/machineset/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 433bf5f

Please sign in to comment.