Skip to content

Commit

Permalink
Fix namespace for machinesets (#1793)
Browse files Browse the repository at this point in the history
Signed-off-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
Co-authored-by: Waleed Malik <ahmedwaleedmalik@gmail.com>
  • Loading branch information
kubermatic-bot and ahmedwaleedmalik authored May 6, 2024
1 parent 9901f63 commit dfa65ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/controller/util/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func GetMachineDeploymentNameAndRevisionForMachine(ctx context.Context, machine

if machineSetName != "" {
machineSet := &clusterv1alpha1.MachineSet{}
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 {
return "", "", err
}

Expand Down

0 comments on commit dfa65ae

Please sign in to comment.