We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a84f383 commit 676adb4Copy full SHA for 676adb4
pkg/controller/util/machine.go
@@ -42,7 +42,7 @@ func GetMachineDeploymentNameAndRevisionForMachine(ctx context.Context, machine
42
43
if machineSetName != "" {
44
machineSet := &clusterv1alpha1.MachineSet{}
45
- if err := c.Get(ctx, types.NamespacedName{Name: machineSetName, Namespace: "kube-system"}, machineSet); err != nil {
+ if err := c.Get(ctx, types.NamespacedName{Name: machineSetName, Namespace: machine.Namespace}, machineSet); err != nil {
46
return "", "", err
47
}
48
0 commit comments