Skip to content

Commit 676adb4

Browse files
Fix namespace for machinesets (#1795)
Signed-off-by: Waleed Malik <[email protected]> Co-authored-by: Waleed Malik <[email protected]>
1 parent a84f383 commit 676adb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/controller/util/machine.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func GetMachineDeploymentNameAndRevisionForMachine(ctx context.Context, machine
4242

4343
if machineSetName != "" {
4444
machineSet := &clusterv1alpha1.MachineSet{}
45-
if err := c.Get(ctx, types.NamespacedName{Name: machineSetName, Namespace: "kube-system"}, machineSet); err != nil {
45+
if err := c.Get(ctx, types.NamespacedName{Name: machineSetName, Namespace: machine.Namespace}, machineSet); err != nil {
4646
return "", "", err
4747
}
4848

0 commit comments

Comments
 (0)