Skip to content

Commit 3206e32

Browse files
committed
Fix labels and annotations propagation from pooledremotemachine to remotemachine
Signed-off-by: apedriza <[email protected]>
1 parent 6cec878 commit 3206e32

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

internal/controller/infrastructure/remote_machine_controller.go

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,12 @@ func (r *RemoteMachineController) reservePooledMachine(ctx context.Context, rm *
345345
}
346346
}
347347

348-
rm.Labels = foundPooledMachine.Labels
349-
rm.Annotations = foundPooledMachine.Annotations
348+
for k, v := range foundPooledMachine.Labels {
349+
rm.Labels[k] = v
350+
}
351+
for k, v := range foundPooledMachine.Annotations {
352+
rm.Annotations[k] = v
353+
}
350354
rm.Spec.Address = foundPooledMachine.Spec.Machine.Address
351355
rm.Spec.Port = foundPooledMachine.Spec.Machine.Port
352356
rm.Spec.User = foundPooledMachine.Spec.Machine.User

0 commit comments

Comments
 (0)