Skip to content

Commit e325dfa

Browse files
h0tbirdk8s-ci-robot
authored andcommitted
Add missing namespace to Get function (#896)
1 parent d21d182 commit e325dfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/machineset/status.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func updateMachineSetStatus(c client.Client, ms *v1alpha1.MachineSet, newStatus
112112
break
113113
}
114114
// Update the MachineSet with the latest resource version for the next poll
115-
if getErr = c.Get(context.Background(), client.ObjectKey{Name: ms.Name}, ms); getErr != nil {
115+
if getErr = c.Get(context.Background(), client.ObjectKey{Namespace: ms.Namespace, Name: ms.Name}, ms); getErr != nil {
116116
// If the GET fails we can't trust status.Replicas anymore. This error
117117
// is bound to be more interesting than the update failure.
118118
return nil, getErr

0 commit comments

Comments
 (0)